Loading...
Loading...
Main editor methods (editor.method())
ឧទាហរណ៍របស់កម្មវិធីនិពន្ធមាន Core ($) ដែលជាម៉ាស៊ីនខាងក្នុងដែលផ្តល់ថាមពលដល់ប្រព័ន្ធរងទាំងអស់។ ចូលប្រើប្រាស់វាតាមរយៈ editor.$ — ឧ. editor.$.store, editor.$.selection, editor.$.format ជាដើម។
editor.isEmptyfcoptionalFrame context, if not present, currently selected frame context.booleanplaceholder.resetOptionsnewOptionsOptionsvoidAdd 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