Opened 9 years ago

#14304 new Bug

fixing position of range.endOffset moves to range.startOffset on moving the place of a word

Reported by: newdegate Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.6
Keywords: Cc:

Description

Steps to reproduce

  1. Get previous word of the selected cursor position, in this case the last word of a sentance.
  2. Chain this through different cases, replacing the original word each time (mimic microsoft word shift+f3)

Expected result

from: test this nice sentence To: test this nice Sentence

Actual result

  • removal of words in between and change of endOffset to startOffset even though endOffset is fixed...

test Sentence

---range object contents--- C…R.dom.range {startContainer: C…R.dom.text, startOffset: 5, endContainer: C…R.dom.text, endOffset: 40, collapsed: true…}collapsed: truedocument: CKEDITOR.dom.document$: documentproto: CKEDITOR.dom.domObjectendContainer: CKEDITOR.dom.element$: pgetName: ()proto: CKEDITOR.dom.nodeendOffset: 15root: CKEDITOR.tools.createClass.$startContainer: CKEDITOR.dom.element$: pgetName: ()proto: CKEDITOR.dom.nodestartOffset: 15proto: Object

Other details (browser, OS, CKEditor version, installed plugins)

CKEDITOR 4.5.6

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy