Pages
Mail Settings
Users & Permissions
Transactions Report
Users
Al Pacino
alpacino@left4code.com
Al Pacino
alpacino@left4code.com
Nicolas Cage
nicolascage@left4code.com
Johnny Depp
johnnydepp@left4code.com
Products
Dell XPS 13
PC & Laptop
Sony A7 III
Photography
Apple MacBook Pro 13
PC & Laptop
Oppo Find X2 Pro
Smartphone & Tablet

## CKEditor

## Document Editor

Show example code

Content of the editor.

      HTMLOpenTagdiv class="editor document-editor"HTMLCloseTag HTMLOpenTagdiv class="document-editor__toolbar"HTMLCloseTagHTMLOpenTag/divHTMLCloseTag HTMLOpenTagdiv class="document-editor__editable-container"HTMLCloseTag HTMLOpenTagdiv class="document-editor__editable"HTMLCloseTag HTMLOpenTagpHTMLCloseTagContent of the editor.HTMLOpenTag/pHTMLCloseTag HTMLOpenTag/divHTMLCloseTag HTMLOpenTag/divHTMLCloseTag HTMLOpenTag/divHTMLCloseTag

      import DocumentEditor from "@ckeditor/ckeditor5-build-decoupled-document"; $(".editor").each(function () { const el = this; DocumentEditor.create($(el).find(".document-editor__editable")[0]) .then((editor) =HTMLCloseTag { $(el) .closest(".editor") .find(".document-editor__toolbar") .append(editor.ui.view.toolbar.element); }) .catch((error) =HTMLCloseTag { console.error(error); }); });

Dark Mode