Attributes are removing after undo
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Attributes are removing after undo
Hi Team,
I am working on copy and paste attributes from one tag to another similar tag.
In the below screenshot. I am copying the attributes from first cite.query and pasting to the second empty cite.query.
after paste i got below result
Now if i do undo i am getting below result
So in above screenshot when i do undo it should retain the original attributes but here the attributes are removing.
the java code used is
Please help me on this.
Thanks & Regards
Shilpa.P
I am working on copy and paste attributes from one tag to another similar tag.
In the below screenshot. I am copying the attributes from first cite.query and pasting to the second empty cite.query.
- image.png (12.49 KiB) Viewed 391 times
- image.png (13.29 KiB) Viewed 391 times
- image.png (10.4 KiB) Viewed 391 times
the java code used is
- image.png (86.84 KiB) Viewed 391 times
Thanks & Regards
Shilpa.P
-
- Posts: 496
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Attributes are removing after undo
Post by cristi_talau »
Hello,
The problem is that "element.removeAttribute()" is a low-level method that modifies the element outside of the undoable edit. You should use "controller.removeAttribute(element, ...)" instead.
Best,
Cristian
The problem is that "element.removeAttribute()" is a low-level method that modifies the element outside of the undoable edit. You should use "controller.removeAttribute(element, ...)" instead.
Best,
Cristian
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service