In FireFox, I can click anywhere in CKEditor (350px x 250px) to place focus on a single paragraph of text located at the top of the editor. However, in IE6 (I know, but our client insists) I must click directly atop the paragraph to focus the cursor and subsequently edit the text.
CKEditor creates the following:
<iframe>
<html>
<head>...</head>
<body spellcheck="true">
<p>some text to edit</p>
</body>
</html>
</iframe>
I suspect this is an IE6 problem; any ideas???
EDIT: Apparently a known problem.
In FireFox, I can click anywhere in CKEditor (350px x 250px) to place focus on a single paragraph of text located at the top of the editor. However, in IE6 (I know, but our client insists) I must click directly atop the paragraph to focus the cursor and subsequently edit the text.
CKEditor creates the following:
<iframe>
<html>
<head>...</head>
<body spellcheck="true">
<p>some text to edit</p>
</body>
</html>
</iframe>
I suspect this is an IE6 problem; any ideas???
EDIT: Apparently a known problem.
Share Improve this question edited Jan 11, 2010 at 18:59 Upperstage asked Jan 8, 2010 at 15:33 UpperstageUpperstage 3,7678 gold badges46 silver badges68 bronze badges 2- Doesn't the ticket say fixed in 3.1? Are you using 3.1? – Pekka Commented Jan 11, 2010 at 19:03
- I am not using 3.1; not sure when or if the patch made the baseline. The patch is here: dev.fckeditor/attachment/ticket/1659/1659_9.patch – Upperstage Commented Jan 11, 2010 at 19:40
3 Answers
Reset to default 2This is a known problem apparently fixed in v3.1.
I just had the same problem with the 4.2.2 release and IE 8 and was able to fix it with this code in the instanceReady
event. It sets the focus when the user clicks anywhere in the CKEditor edit region.
CKEDITOR.on( 'instanceReady', function( ev ) {
$('iframe.cke_wysiwyg_frame', ev.editor.container.$).contents().on('click', function() {
ev.editor.focus();
});
});
As the ticket date shows, the bug is still present, it hasn't been fixed in the 3.1 release.