webodf / WebODF

WebODF - JavaScript Document Engine
http://webodf.org/
792 stars 167 forks source link

<annotation-end> tag wrongly placed in the new paragraph on paragraph split at the end of an annotation #63

Open kossebau opened 11 years ago

kossebau commented 11 years ago

Splitting a paragraph at the end of an annotated text area results in broken model: the annotation-end tag is before the cursor, not after the cursor. The created annotationHighlight span is before the annotation-end tag, but for that reason does not catch the cursor and any new inserted text

How to reproduce:

  1. Open the welcome.odt with the sample annotations
  2. Put the cursor behind the "s" of the annotated text "translate the documents"
  3. Press "Return"
  4. See the mess in the inspector

Similar problem also with splitting paragraph at the end of a span, new paragraph gets an empty span at the beginning

adityab commented 10 years ago

Should be fixable by refreshing annotations at the end of a SplitParagraph op.

adityab commented 10 years ago

Moved to milestone v0.6.0, since this is a UX quirk and not a UI misrepresentation of the annotated range, therefore not a release blocker for v0.5.0.