Ticket #7143 (confirmed Bug)

Opened 4 years ago

Last modified 4 years ago

Text Cursor loses position when document-overflow is modified

Reported by: emeerson 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

comment:1 Changed 4 years ago by j.swiderski

  • Cc changed from emeerson@ngpvan.com; rbudigelli@ngpvan.com to emeerson@ngpvan.com, rbudigelli@ngpvan.com
  • Status changed from new to confirmed
  • Keywords Firefox added; cursor position removed

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.

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