Hello All,
A while ago I built two selection based plugins for FCK then ported them over to CKEditor (3.1) and everything worked great. Now I'm trying to upgrade to CKeditor 3.4.2 and my plugins don't work in IE (anything) anymore.
Basically the plugin gets the selection from the editor (like the link plugin) then in the dialog you input extra content then onOk it inserts an <a> tag around the selection from the editor and then inserts a span tag after the <a> tag.
Of course the plugins work fine in chrome, firefox etc but in ie only the span tag is getting inserted, it's like it's loosing the selection when the dialog loads.
After a lot of testing I found - by accident - that putting an Alert message in the onLoad() function it would work in ie as expected, so I'm thinking it is focus thing?
I get the initial selection by the following code -
(e being my editor instance)
var start_element = e.getSelection().getStartElement();
I know that IE has a difficult time with the getSelection but this code has been working for 18 months in FCK and CK 3.1
I've been looking at it too long at this point and I'm sure that I'm missing something simple.
Thanks for any help or if you need more info.
Jim
A while ago I built two selection based plugins for FCK then ported them over to CKEditor (3.1) and everything worked great. Now I'm trying to upgrade to CKeditor 3.4.2 and my plugins don't work in IE (anything) anymore.
Basically the plugin gets the selection from the editor (like the link plugin) then in the dialog you input extra content then onOk it inserts an <a> tag around the selection from the editor and then inserts a span tag after the <a> tag.
Of course the plugins work fine in chrome, firefox etc but in ie only the span tag is getting inserted, it's like it's loosing the selection when the dialog loads.
After a lot of testing I found - by accident - that putting an Alert message in the onLoad() function it would work in ie as expected, so I'm thinking it is focus thing?
I get the initial selection by the following code -
(e being my editor instance)
var start_element = e.getSelection().getStartElement();
I know that IE has a difficult time with the getSelection but this code has been working for 18 months in FCK and CK 3.1
I've been looking at it too long at this point and I'm sure that I'm missing something simple.
Thanks for any help or if you need more info.
Jim