grapesjs-plugin-ckeditor icon indicating copy to clipboard operation
grapesjs-plugin-ckeditor copied to clipboard

Add Custom Plugin through onBeforeLoad

Open estooksberry opened this issue 1 year ago • 0 comments

In standalone CKEditor4 I am able to add custom plugins to my React project through the onBeforeLoad. How can this be achieved with the Grapes JS CKEditor plugin? As this is not part of the CK Editor standard or full plugins, I cannot enable it through the config, and as this is React, I do not have an actual plugin directory to place the "file".


<CKEditor
    initData={}
    config={
        extraPlugins: 'myPlugin'
        toolbar:[{name: 'insert', items:['myPluginButton'] },
    }
    onInstanceReady={handleInstanceReady}
    onBeforeLoad={(CKEDITOR) => {
        myPlugin(CKEDITOR);
    }}
/>

estooksberry avatar Feb 10 '24 03:02 estooksberry