Param

Method

Event

 

 

GetDocumentSizev1.1 or higher

현재 편집 중인 문서의 크기를 구하여 byte 단위로 얻어옵니다.

이때 현재 문서에 포함된 이미지와 파일의 크기까지 합산됩니다.

 

Return Values

현재 작성 중인 문서의 크기

정상적으로 실행한 경우

0

정상적으로 실행되지 않은 경우

 

Sample Codes

var CrossEditor = new NamoSE("test");
CrossEditor.EditorStart();

function OnInitCompleted(e) {
   var info = CrossEditor.GetDocumentSize();
   alert(info);
}