New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After add plugins - "Uncaught TypeError: CKEDITOR.tools.getIndex is not a function" #588
Comments
+1 for codesnippet both released versions, same message. |
Same error, tried addons for both 4.5 and 4.4 version of CKEditor |
gambala, I tried. It does not help |
image2 plugin is created for CKEditor 4.5.0 which adds the CKEDITOR.tools.getIndex method which the new widget.js needs. So it doesn't(?) work on CKEditor 4.4.x Also, Rails is pretty aggressive with caching assets from gems. If you install CKEditor 4.5, try shutting down the Rails server, deleting tmp/cache directory, and starting Rails server. And also clearing the cache in your browser :) |
_darep_ |
This is happening with Wordcount and Notification plugin as well. |
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. |
config.plugins = 'dialogui,dialog,lineutils,widget,image2';
console output:
Uncaught TypeError: CKEDITOR.tools.getIndex is not a function
in * var index = CKEDITOR.tools.getIndex( widgetsRepo._.upcasts, function( element ) {*
addUpcast @ plugin.js?t=F0RD:1952
addWidgetProcessors @ plugin.js?t=F0RD:1947
Repository.add @ plugin.js?t=F0RD:223
CKEDITOR.plugins.add.init @ plugin.js?t=F0RD:90
(anonymous function) @ ckeditor.js?body=1:242
CKEDITOR.scriptLoader.load.m @ ckeditor.js?body=1:222
CKEDITOR.scriptLoader.load.y @ ckeditor.js?body=1:222
CKEDITOR.scriptLoader.load.s @ ckeditor.js?body=1:222
(anonymous function) @ ckeditor.js?body=1:223
Modified versions of the plugins does not change the situation
Which way to watch?
thanks in advance
The text was updated successfully, but these errors were encountered: