Skip to content
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

Closed
postbud opened this issue Jul 4, 2015 · 7 comments
Labels

Comments

@postbud
Copy link

postbud commented Jul 4, 2015

  1. Download 'image2' plugins and dependencies
  2. Create 'ckeditor/plugins', unpack plugins .zip
  3. Add to 'config.js':
    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

@chrisvel
Copy link

+1 for codesnippet both released versions, same message.

@gambala
Copy link

gambala commented Aug 10, 2015

Same error, tried addons for both 4.5 and 4.4 version of CKEditor

@postbud
Copy link
Author

postbud commented Aug 10, 2015

gambala, I tried. It does not help

@Darep
Copy link

Darep commented Aug 11, 2015

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 :)

@postbud
Copy link
Author

postbud commented Aug 22, 2015

_darep_
My current gem version CKEditor 4.4.7 (revision 3a35b3d).
Rails is used in production or development mode, the cache is updated , server restar (no difference). Аll dependencies for manual installation are met. They were used version "image2" plugin: 4.5.3, 4.4.8, 4.3.5

@ktdmedia
Copy link

ktdmedia commented Oct 1, 2015

This is happening with Wordcount and Notification plugin as well.

@stale
Copy link

stale bot commented Dec 4, 2018

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.

@stale stale bot added the wontfix label Dec 4, 2018
@stale stale bot closed this as completed Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants