GrapesJS / ckeditor

This plugin replaces the default Rich Text Editor with the one from CKEditor
BSD 3-Clause "New" or "Revised" License
105 stars 103 forks source link

Add Custom Plugin through onBeforeLoad #80

Closed estooksberry closed 2 months ago

estooksberry commented 9 months ago

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);
    }}
/>