How to use the @ckeditor/ckeditor5-build-decoupled-document.create function in @ckeditor/ckeditor5-build-decoupled-document

To help you get started, we’ve selected a few @ckeditor/ckeditor5-build-decoupled-document examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github medkey-org / medkey / frontend / modules / document / entry.js View on Github external
window.registerDocumentEdit = function () {
    DecoupledEditor
        .create( document.querySelector( '#editor' ) )
        .then( editor => {
            const toolbarContainer = document.querySelector( '#toolbar-container' );

            toolbarContainer.appendChild( editor.ui.view.toolbar.element );
        } )
        .catch( error => {
            console.error( error );
        } );
};

@ckeditor/ckeditor5-build-decoupled-document

The document editor build of CKEditor 5 – the best browser-based rich text editor.

GPL-2.0-or-later
Latest version published 2 days ago

Package Health Score

89 / 100
Full package analysis

Popular @ckeditor/ckeditor5-build-decoupled-document functions