Hide specific element attribute from editor view
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 34
- Joined: Fri Jan 26, 2024 3:31 pm
Hide specific element attribute from editor view
Post by vitorhugovm »
I'm currently using content: oxy_name() oxy_attributes() in CSS to personalize the elements render in the XML Editor, but all attributes are shown, including the id, which is really polluting the editor view.
I didn't find any parameters that could be applied to oxy_attributes() in the documentation. I wanted to omit the id and possibly other element attributes in the future, is there a way of doing that?
Thanks!
Vitor
I didn't find any parameters that could be applied to oxy_attributes() in the documentation. I wanted to omit the id and possibly other element attributes in the future, is there a way of doing that?
Thanks!
Vitor
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Hide specific element attribute from editor view
Hi Vitor,
How about if you use our oxy_replace over the value returned by oxy_attributes to apply a regexp which removes part of the displayed attributes string?
https://www.oxygenxml.com/doc/ug-editor ... ction.html
Regards,
Radu
How about if you use our oxy_replace over the value returned by oxy_attributes to apply a regexp which removes part of the displayed attributes string?
https://www.oxygenxml.com/doc/ug-editor ... ction.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 34
- Joined: Fri Jan 26, 2024 3:31 pm
Re: Hide specific element attribute from editor view
Post by vitorhugovm »
For sure the best and most efficient way of doing it, worked perfectly!
If anyone wonders anytime, I used oxy_replace(oxy_attributes(), ' id="[^"]*"', '', true) to make it work.
Thank you very much Radu!
Vitor
If anyone wonders anytime, I used oxy_replace(oxy_attributes(), ' id="[^"]*"', '', true) to make it work.
Thank you very much Radu!
Vitor
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