Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

bug with plugin on multi instances #7

Open
simogeo opened this issue Jun 29, 2017 · 0 comments
Open

bug with plugin on multi instances #7

simogeo opened this issue Jun 29, 2017 · 0 comments

Comments

@simogeo
Copy link

simogeo commented Jun 29, 2017

Hi,
firts of all, thanks for imgur plugins. It works well except when working with multiple instances.

Here is the foloowing code :

`CKEDITOR.disableAutoInline = true;
$("div.body[contenteditable='true']").each(function( index ) {

			var element_id = $(this).attr('id');
			var comment_id = $(this).attr('data-comment-id');
			console.log(element_id);

			CKEDITOR.inline( element_id, {
				 customConfig: 'config-file-with-imgur.js',
			      on: {
			        blur: function( event ) {
			          var data = event.editor.getData();
			          alert('Sending: ' + data + ' to ' + comment_id );
			      }
				});
			});`

As result, the first item as inline editor but following are not and imgure problem trigger the following error - in web dev console :

TypeError: editor.window.getFrame(...) is null

thanks again !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant