Page 1 of 1

Delete functionality pulling data up.

Posted: Wed Jul 12, 2017 7:12 pm
by jacobBocaj
Hello,
I am having this issue while using XML WebAuthor. Pressing "Delete" when the cursor is just inside the end tag of an element results in the content of subsequent elements being pulled up to the current cursor location (See screenshots below). I would like to have the editor do nothing if delete is pressed with the cursor at this location. How can I do this? Is the described functionality in error?

Screen shots:

Image

Image

Thank you,
Jacob

Re: Delete functionality pulling data up.

Posted: Thu Jul 13, 2017 11:02 am
by cristi_talau
Hello,

First of all, we do not consider this behaviour to be a problem. The content is still valid after the delete and also this is the behaviour encountered in a normal word processor.

If you are not happy with it, we have an option that can disable this "Smart Delete" feature [1]. Here are some instructions about how to set this option in Web Author here [2] - follow the procedure that tells you how to export options from oXygen Desktop.

Another option would be to implement the AuthorSchemaAwareEditingHandler [3] API to fully customize the behavior of the Delete.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... aware.html
[2] https://www.oxygenxml.com/doc/versions/ ... tions.html
[3] https://www.oxygenxml.com/InstData/Edit ... ndler.html