Answers for "ckeditor custom plugin"

0

ckeditor custom plugin

import ClassicEditor from '@ckeditor/ckeditor5-build-classic';

function MyUploadAdapterPlugin( editor ) {
    editor.plugins.get( 'FileRepository' ).createUploadAdapter = function( loader ) {
        // ...
    };
}

// Load the custom upload adapter as a plugin of the editor.
ClassicEditor
    .create( document.querySelector( '#editor' ), {
        extraPlugins: [ MyUploadAdapterPlugin ],

        // ...
    } )
    .catch( error => {
        console.log( error );
    } );
Posted by: Guest on October-11-2021

Code answers related to "ckeditor custom plugin"

Browse Popular Code Answers by Language