Loading...
Loading...
Main editor methods (editor.method())
에디터 인스턴스에는 모든 하위 시스템을 구동하는 내부 엔진인 코어($)가 포함되어 있습니다. editor.$를 통해 접근할 수 있습니다. 예: editor.$.store, editor.$.selection, editor.$.format 등.
editor.isEmptyfcoptionalFrame context, if not present, currently selected frame context.
booleanplaceholder.resetOptionsnewOptionsOptions
voidAdd or reset option property (Editor is reloaded)
// Change toolbar buttons and height
editor.resetOptions({
buttonList: [['bold', 'italic'], ['image']],
height: '500px',
});changeFrameContextrootKeyRoot frame key.
voidChange the current root index.
// Switch to the 'body' frame in a multi-root editor
editor.changeFrameContext('body');
// Switch back to the 'header' frame
editor.changeFrameContext('header');destroyanyDestroy the suneditor