RichTextEditor를 사용하기 위해서는 아래와 같은 선언문을 포함한 뒤.
<SCRIPT SRC=isomorphic/system/modules/ISC_RichTextEditor.js></SCRIPT><SCRIPT>isc._lastModule='RichTextEditor';</SCRIPT>
------------
isc.VLayout.create({
       membersMargin:5,
       members:[
            isc.RichTextEditor.create({
                autoDraw:false,
                ID:"contentEditor",
                height:155,
               
                overflow:"hidden",
                canDragResize:true, showEdges:true,
 
                 // Standard control group options include
                 // "fontControls", "formatControls", "styleControls" and "colorControls"
                 controlGroups:["fontControls", "formatControls", "styleControls", "colorControls"],
                 value:''
            })
           ]
   });
 
와 같이 선언을 하여 사용한다.
(참조 URL : http://www.smartclient.com/docs/9.0/a/system/reference/SmartClient_Explorer.html#RichTextEditor
)
위의 RichTextEditor 를 DynamicForm 에 붙여서 사용하기 위해서는
DynamicForm에서 사용하고자 하는 field의 타입을 'canvas'로 선언해서 사용하면 된다.
추가적으로 해당 RichTextEditor 에서 사용하고자 하는 font를 더 추가하고자 하는 경우,
isomorphic/system/modules/ISC_RichTextEditor.js 파일의 82 line부근의 fontControls이 정의된 곳에 추가하고자 하는 Font 를 추가하면 된다.
추가하는 형식은 "font":"font 라벨(콤보에 표시되는 값)" 으로 "," 로 구분하여 추가하면 된다.
댓글 없음:
댓글 쓰기