Refresh document after "Replace All"
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Refresh document after "Replace All"
Hello,
We used the version 25.0.0.0 of oxygen sdk.
After modification in an element, we add a blue horizontal bar next to the element thanks to css.
But when user made modifications in elements thanks to "Replace All" action, document is updated but css is not refresh and we don't see the blue bar.
Is it possible to force refresh css after a "Replace All" action ?
Thanks,
Regards,
Isabelle
We used the version 25.0.0.0 of oxygen sdk.
After modification in an element, we add a blue horizontal bar next to the element thanks to css.
But when user made modifications in elements thanks to "Replace All" action, document is updated but css is not refresh and we don't see the blue bar.
Is it possible to force refresh css after a "Replace All" action ?
Thanks,
Regards,
Isabelle
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refresh document after "Replace All"
Hi Isabelle,
I will need more details.
Regards,
Radu
I will need more details.
How does the CSS selector look like?we add a blue horizontal bar next to the element thanks to css.
I'm not sure what you mean by that. Do you dynamically modify on disk the CSS used for visual editing?document is updated but css is not refresh and we don't see the blue bar.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Refresh document after "Replace All"
Hello,
When user modify an element (add new element'child, change text or attribute value),
a specific attribut (changeMark) is set on the element like this :
Before modification :
After modification :
A blue vertical line is displayed when changeMark is set to 1.
When we use "Replace All" button on search box, the changeMark attribut is well set but the css vertical line is not displayed.
Regards,
Isabelle
When user modify an element (add new element'child, change text or attribute value),
a specific attribut (changeMark) is set on the element like this :
Before modification :
Code: Select all
<element>
<para>First para</para>
</element>
Code: Select all
<element>
<para>First para</para>
<para changeMark="1">New para</para>
</element>
When we use "Replace All" button on search box, the changeMark attribut is well set but the css vertical line is not displayed.
Regards,
Isabelle
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refresh document after "Replace All"
Hi Isabelle,
I assume that "Replace All" button you are discussing is from your own find/replace functionality as Oxygen's Find/Replace dialog does not allow chancing attributes.
When you change attributes in the Author visual editor you must always use this method:
https://www.oxygenxml.com/InstData/Edit ... orElement-
so do not set the attribute directly on the AuthorElement, use the AuthorDocumentController to set the attribute, this should properly update the document and make undo/redo properly work.
Regards,
Radu
I assume that "Replace All" button you are discussing is from your own find/replace functionality as Oxygen's Find/Replace dialog does not allow chancing attributes.
When you change attributes in the Author visual editor you must always use this method:
https://www.oxygenxml.com/InstData/Edit ... orElement-
so do not set the attribute directly on the AuthorElement, use the AuthorDocumentController to set the attribute, this should properly update the document and make undo/redo properly work.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Refresh document after "Replace All"
Hi Radu,
We add changeMark attribute thanks to our own AuthorDocumentFilter, and we already use AuthorDocumentController.setAttribute function.
Regards,
Isabelle
No, it is from Oxygen's Find/Replace dialog.
We add changeMark attribute thanks to our own AuthorDocumentFilter, and we already use AuthorDocumentController.setAttribute function.
Regards,
Isabelle
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refresh document after "Replace All"
Hi Isabelle,
I'm not sure why this does not work, I would need to see some sample Java code from where in the AuthorDocumentFilter you are setting the attribute plus the CSS selector which matches the attribute and adds a border.
So after the replace all, if you save the XML and re-open it the border is shown right?
Regards,
Radu
I'm not sure why this does not work, I would need to see some sample Java code from where in the AuthorDocumentFilter you are setting the attribute plus the CSS selector which matches the attribute and adds a border.
So after the replace all, if you save the XML and re-open it the border is shown right?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Refresh document after "Replace All"
Radu,
Regards,
Isabelle
I understand and I will try to provide you an exemple asap.
Yes, as the changeMarker are set, when re-open the document, the border are displayed.
Regards,
Isabelle
Return to “SDK-API, Frameworks - Document Types”
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