Open AnthonyMagnus opened 3 years ago
Hi @AnthonyMagnus,
I am sorry I am responding to your issue a bit late, I missed the notification. Is this still an issue that requires addressing? If it is, are you using TypeScript for this project?
I changed the code from the config object to the editor object and now it's working. I'm using Javascript.
Code:
<CKEditor
editor={Editor}
config={config}
data={text}
onChange={(event, editor) => {
const data = editor.getData();
setText(data);
}}
onError={(error) => {
console.log(error);
}}
onReady={(editor) => {
editor.plugins.get('FileRepository').createUploadAdapter = (loader) => new CloudinaryUnsigned(loader, 'xxxx', 'xxxx');
}}
/>
I changed the code from the config object to the editor object and now it's working. I'm using Javascript.
Code:
<CKEditor editor={Editor} config={config} data={text} onChange={(event, editor) => { const data = editor.getData(); setText(data); }} onError={(error) => { console.log(error); }} onReady={(editor) => { editor.plugins.get('FileRepository').createUploadAdapter = (loader) => new CloudinaryUnsigned(loader, 'xxxx', 'xxxx'); }} />
It saves my life, thank you so much.
I'm getting a TypeError when adding the plugin to the extraPlugins array of the editor. I'm using the ckeditor5 react package with a custom build. I was able to install the puff-puff package and write the plugin just like in the example. When putting it all together the plugin is unable to load.