Only remove span or space elements if the text content is empty
AND there are no character-related children within the text span
* Added more tests to ensure movement around tabs is correct
commit 5080cb788a9be95fd4a0b756bf6844010a44d9c7
Author: Aditya Bhatt <aditya@adityabhatt.org>
Date: Thu May 16 13:08:33 2013 +0000
Emit a signalCursorMoved after text deletion. This signals to the editor
that it might be time to change the current paragraph style view
commit c0a2230bafd3de8654fcb3e1f1e77d856d00532e
Author: Aditya Bhatt <aditya@adityabhatt.org>
Date: Thu May 16 12:47:33 2013 +0000
Better tests: add style attributes to nodes in merge tests
commit ac73c68373b211103af92ea2a4f74f9c95962c93
Author: Aditya Bhatt <aditya@adityabhatt.org>
Date: Thu May 16 12:34:24 2013 +0000
Change Remove_deleteMergeBig and move it tofailingtests
commit 98ec814c016e533c39b3dcb533bc55559ae493e5
Author: Aditya Bhatt <aditya@adityabhatt.org>
Date: Thu May 16 12:21:10 2013 +0000
Refactor OpRemoveText
commit 6d633d22255eaad488adfa4a15e2aa14de9a6739
Author: Aditya Bhatt <aditya@adityabhatt.org>
Date: Wed May 15 18:36:24 2013 +0000
Paragraph merging is here!!!
* A method in OdtDocument to get the neighboring paragraph in any
direction.
* OpRemoveText is rewritten and now does some preprocessing before generating
neighborhoods. Paragraph merging logic implemented with a new function
mergeParagraphs.
* A bunch of nontrivial XML tests for the new paragraph merging, and
* they all pass
the last character. Deleting it breaks things currently because the position
iterator is very much dependent on a 'container' which, because of
having an inline cursor, happens to be the text node that was deleted.
The root node element of the flat ODF, <document>, is not a direct child of the
variable "sizer" in the odf.OdfCanvas code) which is used to implement the
zooming feature, by using the scale() transformation via the styles.
Problem is that this scaling does not also scale the actual space used by the
element. To fix this there is a method fixContainerSize() which is used to adapt
the size of the canvas element to the actual rendering size of the document
content. This code then sets the width and height properties to fixed values.
But all this results in another problem: the canvas element is not resized
automatically by the usual DOM behaviour if the content below the <document>
node or the CSS applied to it parts is changed.
The initial plan was to use DOMSubtreeModified & friends, to have the
odf.OdfCanvas care for updates itself. But as it seems outdated and has quite
some overhead on larger changes to the document, in the end it was decided to go
for now with the approach that was chosen for the style changes, to rely on the
document modifying ops to trigger the needed canvas updates themselves. Not
perfect, but seemed consistent at least.
Also:
* merge paragraphEdited event of ops.OdtDocument into paragraphChanged event of ops.Session
* remove any event subscription/emitting from ops.OdtDocument
Idea here is to create abstraction as much as possible for all ODF-related
objects, e.g. the cursor objects now belong to and know the ODF document model
they run around in.
Some avatar tests still need fixing/adaption, but from manually testing it
looks good, so commiting now to prevent too much differences.