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 am trying to add the CodeSnippet plugin to CKEditor (installed in my Rails app using ckeditor-rails).
To do this, I first added the CodeSnippet plugin folder and all of its dependencies to the directory app > assets > javascripts > ckeditor > plugins (so my plugins folder contains folders for codesnippet, dialog, dialogui, lineutils, and widget).
I then updated my app/assets/javascripts/ckeditor/config.js.coffee to include the following:
I am using the plugin in my project without any problem.you should do the download CodeSnippet and import the plugin again.if the error is still then remove all plugins and just keep config.extraPlugins = 'codesnippet'.
Hope it can help you out.good luck
I am trying to add the CodeSnippet plugin to CKEditor (installed in my Rails app using ckeditor-rails).
To do this, I first added the CodeSnippet plugin folder and all of its dependencies to the directory app > assets > javascripts > ckeditor > plugins (so my plugins folder contains folders for codesnippet, dialog, dialogui, lineutils, and widget).
I then updated my app/assets/javascripts/ckeditor/config.js.coffee to include the following:
When I try to load a webpage with the CKEditor, I get the following errors in my javascript console:
referring to this line of widgets/plugin.js:
and the same error
referring to this line of codesnippets/plugin.js:
Anyone able to configure this CKEditor to use the CodeSnippet plugin using this gem?
Stackoverflow question posted here: http://stackoverflow.com/questions/28119912/adding-codesnippet-plugin-to-ckeditor-in-rails-app
The text was updated successfully, but these errors were encountered: