Opened 5 years ago

Closed 5 years ago

#12437 closed Bug (invalid)

multiple inline editor instance on chrome onblur issue

Reported by: joy Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: inline editor Cc:

Description

I have to enable 2 divs as inline ckeditor in one page. First time blur event fires once, second time blur event fires on 2 different editor instance.

Here is my code:

for cicle ---

var ck_editor_inline_id = field.htmlElement.replace("#",""); if (CKEDITOR.instances[ck_editor_inline_id]==undefined) {

CKEDITOR.inline(ck_editor_inline_id, { extraPlugins : 'EPVTexts,EPVSaveTexts', startupFocus : true, enterMode : CKEDITOR.ENTER_BR, shiftEnterMode: CKEDITOR.ENTER_P, on:{

focus: function(event){

event.editor.on( 'click', function( ev ) {

editButton.fadeOut(); ev.data.stopPropagation();

});

}, blur: function(ev){

editButton.fadeIn(); var curE=CKEDITOR.instances[ev.editor.name]; if (curE.checkDirty()) {

field.value=curE.getData(); SetField(s,c,field);

}

}

}

});

}

end for cicle ---

How can i pass parameters on plugin of each editor instance ? I need to pass params like (field , s,c vars) to EPVTexts and EPVSaveTexts

Attachments (1)

inlinebycode.html (10.5 KB) - added by Jakub Ś 5 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 5 years ago by joy

If i do :

ev.editor.removeAllListeners();

into blur event function it works well but editors not works anymore

Changed 5 years ago by Jakub Ś

Attachment: inlinebycode.html added

comment:2 Changed 5 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I haven't been able to reproduce this issue in default editor with attached sample file.

To be honest I don't see a problem here thus I'm closing this issue as invalid.

@joy if you think there is error in editor, please provide sample HTML file that allows reproducing this issue in default editor. I'm talking about file that can be put in samples folder and will show this problem.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy