![]() Then call BalloonEditor.create() to attach Balloon editor to the element: BalloonEditorĪdd the elements where CKEditor should initialize the toolbar and the editable to your page: The only difference is that you need to use the BalloonEditor.create() method.Īdd an element where CKEditor should initialize to your page: The procedure is the same as for Inline editor. Then call InlineEditor.create() to attach Inline editor to the element: InlineEditor Similarly to the previous example, add an element where CKEditor should initialize to your page: The data is used to initialize the editor content. In this case the element is hidden and replaced with an editor. create( document.querySelector( '#editor' ) ) Then call ClassicEditor.create() to replace the element with a Classic editor: ClassicEditor ![]() Here goes the initial content of the editor. ![]() # Example – Classic editorĪdd an element that CKEditor should replace to your HTML page: Regardless of the chosen build, creating an editor is done using the static create() method. Using builds is the simplest way to include the editor in your application, but you can also use the editor classes and plugins directly for greater flexibility. A CKEditor 5 build compiles a specific editor class and a set of plugins. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |