galetahub / ckeditor

Ckeditor 4.x integration gem for rails
https://ckeditor.com/ckeditor-4/
MIT License
2.22k stars 881 forks source link

Ckeditor not getting custom config #909

Closed jesupadial closed 3 years ago

jesupadial commented 3 years ago

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[bot] commented 3 years ago

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.

demo360o2 commented 3 years ago

Hi,

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

thanks

PatrickKing commented 1 year ago

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

asecondwill commented 11 months ago

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

asecondwill commented 11 months ago

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.