Carlos Villegas wrote:
I think we had the same behaviour in this case, but the I think the undo is 
acting on the structural change (Cut in this case). And the editor seems to be 
storing (correctly) the previous state together with the property.
So when the Undo action executes, it restores the node with its property. Which 
is what I expected, I think this is correct.

Yes.



However, if I add the property and I try to undo just the property addition, standalone, it doesn't work. In fact, I can't, it looks like nothing is added to the Undo history and the Undo button remains disabled. I think the first screenshot shows that.

Correct. Changing a node property is not considered to be a change in the document model and, as such, except for the READ_ONLY_PROPERTY, has never been handled by the UndoManager.



So maybe if I pair it with another XML change like an attribute change, then it will work.

Yes, almost certainly (never tested this).



Can I hide an attribute from the interface?

Yes, in the case of XXE Desktop; not yet supported by XXEW (but could be, without any problem).

See configuration element <attributeVisibility>, https://www.xmlmind.com/xmleditor/_distrib/doc/configure/attributeVisibility.html

See "Appendix A. How to adapt an existing ".xxe" configuration file to XXEW", https://www.xmlmind.com/xmleditor/_web/doc/manual/adapt_config_file.html

However, all attributes which do have a value, whether listed in <attributeVisibility> or not, are visible in the UI.




Well in that case, I may as well use this hidden attribute to store my metadata 
instead of properties...

I'm sorry but I don't have any suggestion which could help you.




--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to