Opened 10 years ago
Closed 10 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)
Change History (3)
comment:1 Changed 10 years ago by
Changed 10 years ago by
Attachment: | inlinebycode.html added |
---|
comment:2 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
If i do :
ev.editor.removeAllListeners();
into blur event function it works well but editors not works anymore