Skip to content
Jeongkyu Shin edited this page Sep 25, 2012 · 1 revision

에디터

  • 위지윅 에디터는 자바스크립트 객체로 제작되어야 함.

  • textarea id는 editWindow

  • div id는 미정

  • 자바스크립트 객체에 필수적으로 추가되어야 하는 변수들.

    • this.propertyWindowId = "";
    • this.propertyHeader = "";
    • this.propertyFilename1 = "";
    • this.propertyFilename2 = "";
    • this.propertyFilename3 = "";
    • this.propertyFilePath = "";
    • this.propertyCurrentProportion1 = 0;
    • this.propertyCurrentProportion2 = 0;
    • this.propertyCurrentProportion3 = 0;
    • this.propertyCurrentImage = "";
    • this.propertyOffsetTop = null;
    • this.fixPosition = ;
    • this.hasGD = ;
    • this.propertyFilePath = "/attach//";
    • this.editMode = "";
    • this.editorCSS = path;
  • 자바스크립트 객체에 필수적으로 추가되어야 하는 함수들

    • this.syncTextarea()
    • textarea에 저장되는 값을 위지윅에서 번역하여 갱신한다.
    • this.syncEditorWindow()
    • 위지윅에 보여지는 값을 textarea값으로부터 읽어들여 갱신한다.
    • this.initialize(객체id)
    • this.finalize()
    • handle들을 전부 제거한다.
    • eventListener들을 전부 제거한다.
    • 현재 내용을 전부 textarea와 동기화한다.
  • 에디터가 ttml을 지원하기 위해서는 ttml2html/html2ttml 루틴이 추가적으로 필요함.