jchartrand/CWRCEditor — Issue #5: select to end of paragraph incorrectly crosses paragraphs
Author: jchartrand
Created: 2011-11-29 15:02:53+00:00
State: open

1. create two paragraphs in the editor
2. select the text at the end of the top paragraph (one or two words), taking care to extend the selection (the part that gets highlighted) beyond the end of the paragraph, onto the line below, but without actually selecting (highlighting) any part of the second paragraph.
3. click a tag

The following error appears:

"Please ensure that the beginning and end of your selection have a common parent.
For example, your selection cannot begin in one paragraph and end in another, or begin in bolded text and end outside of that text."

It seems the selection is inadvertently extending into the next paragraph even though the highlight doesn't indicate that it has.

If you take care to select text only to the end of the first paragraph, without letting the mouse move down onto the line below then everything is fine. Nevertheless, we need to correct the inadvertent crossing over.