Closed rgalea closed 3 years ago
What I did:
CKEDITOR.plugins.addExternal('youtube', '<%=asset_path 'ckeditor/plugins/youtube/plugin.js'%>');
to the head of the html pageassets.rb
Rails.application.config.assets.precompile += ['ckeditor/plugins/youtube/plugin.js']
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.
Thank you for creating and supporting this gem.
The documentation under "Install additional plugins" is not correct. I am specifically talking about trying to add a plugin not supported by the CDN (in my case codemirror). If I just add a
config.extraPlugins
line to the config ckeditor.js will try and pull the assets from the CDN which will result in a 404.My solution was:
CKEDITOR.plugins.addExternal( 'codemirror', '/ckeditor/plugins/codemirror/' );
to the config.js fileconfig.extraPlugins = 'codemirror,';
to the config.js file