galetahub/ckeditor

Ckeditor not getting custom config

Closed this issue · 5 comments

Hi, im trying to use a custom config using the config.js file but its not working. I have cleared the cache and I have tried a bunch of different configurations in order to try another stuff but its not working. Here is my config.js:

Captura

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hi,

have you solved your issue? I have the exact same problem... I'm interessted by your solution if you have any.

thanks

I've been unable to solve this on 5.x. Reverting to 4.3 lets us use the bundled CKEditor with a config file.

This is still a problem for me, I'm trying to include my custom config.js in my app/javascript/active_admin.js file, but then the gem includes config.js which seems to override my config so i cant use my custom toolbars.

any tips?

more details of my setup here:
Rails 7
importmap-rails
ckeditor gem 4.3

https://stackoverflow.com/questions/76914116/configure-a-new-toolbar-for-ckeditor-with-rails-7

Solved, and now i feel silly. I dont think I realised that I can still use the asset pipeline for javascript, if needed.

so i moved my config to /app/assets/ckeditor/config.js and now that is used instead of the default.