Opened 14 years ago
Last modified 14 years ago
#7143 confirmed Bug
Text Cursor loses position when document-overflow is modified
Reported by: | Elijah | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.2.1 |
Keywords: | Firefox | Cc: | emeerson@…, rbudigelli@… |
Description
Steps to reproduce: 1) Add text to editor instance window such that cursor is not at the beginning 2) execute (in firebug's console, for example):
if no scroll is present document.body.style.overflow = "scroll"; or, if scroll is already present document.body.style.overflow = "hidden"; CKEDITOR.instances.MyInstance.insertText('Test');
3) Note that the text has been inserted at the beginning of the text editor.
This is an issue in Firefox 3.6.13 (and I believe earlier FF versions). Not certain if it is an issue in IE.
Change History (1)
comment:1 Changed 14 years ago by
Cc: | emeerson@ngpvan.com; rbudigelli@ngpvan.com → emeerson@ngpvan.com, rbudigelli@ngpvan.com |
---|---|
Keywords: | Firefox added; cursor position removed |
Status: | new → confirmed |
This works all browser except for Firefox.
Till CKEditor 3.2 it was ok.
From 3.2.1 to 3.2.2 the above TC caused text being pasted at the beginning of text.
From 3.3 to 3.4.1 the above TC caused JS error.
From 3.4.2 till current the above TC has no effect. Scroll is hidden or shown but the text is not inserted. To insert text you have to click on editor and execute document.body.style.overflow = "hidden"; CKEDITOR.instances.editor2.insertText('Test'); (or just CKEDITOR.instances.editor2.insertText('Test');) once more to see the effect.