You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying the v2.0.0 of the plugin on strapi v4.5.6 with typescript. I have tried putting copying the example from readme to /config/ckeditor.txt but it doesn't get picked up. I checked the debugger on the browser and found that the injected script is 'globalThis.CKEditorConfig = null'.
Based on the source code, if it is typescript project, it tries to read from the /dist folder. But when building the strapi project, it would not copy/compile ckeditor.txt file because it isn't a typescript file.
If I change the line to const filename = `${appDir}/config/ckeditor.txt`;, it works as intended. Is there additional configs I need to do for the ckeditor.txt file to be copied during build or should we just remove the isTSProject condition?
The text was updated successfully, but these errors were encountered:
Yeah, I missed that, it probably will be better to remove these isTSProject and jsDir variables and remain only appDir than invent a way to copy that config to the dist directory, since usually, the whole app folder is included and even the config folder isn't excluded.
I'm trying the v2.0.0 of the plugin on strapi v4.5.6 with typescript. I have tried putting copying the example from readme to
/config/ckeditor.txt
but it doesn't get picked up. I checked the debugger on the browser and found that the injected script is'globalThis.CKEditorConfig = null'
.Based on the source code, if it is typescript project, it tries to read from the
/dist
folder. But when building the strapi project, it would not copy/compileckeditor.txt
file because it isn't a typescript file.strapi-plugin-ckeditor/server/services/config.js
Lines 10 to 19 in e782475
If I change the line to
const filename = `${appDir}/config/ckeditor.txt`;
, it works as intended. Is there additional configs I need to do for theckeditor.txt
file to be copied during build or should we just remove the isTSProject condition?The text was updated successfully, but these errors were encountered: