8000 bug with plugin on multi instances · Issue #7 · yfxie/ckeditor-imgur · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
bug with plugin on multi instances  #7
Open
@simogeo

Description

@simogeo

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0