Configuring content completion that interferes with CSS
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
Vince
- Posts: 68
- Joined: Wed Dec 03, 2014 11:25 am
Configuring content completion that interferes with CSS
Hello,
Following the documentation at: https://www.oxygenxml.com/doc/versions/ ... ually.html, I define in cc_config_ext.xml :
Given en existing list item :
When I insert an item :
Then the new item does not render as expected :
Looking at the CSS inspector, I see that the li element does not match the *[class~='topic/li'] selector
Expected:
I encountered thie issue in Oxygen Desktop and in Web Author.
Any workaround available ?
Thank you for your help.
Environment:
Following the documentation at: https://www.oxygenxml.com/doc/versions/ ... ually.html, I define in cc_config_ext.xml :
Code: Select all
<config xmlns="http://www.oxygenxml.com/ns/ccfilter/config">
<elementProposals path="li" rejectAttributes="class"/>
</config>
image.png
When I insert an item :
image.png
Then the new item does not render as expected :
image.png
Looking at the CSS inspector, I see that the li element does not match the *[class~='topic/li'] selector
image.png
Expected:
image.png
I encountered thie issue in Oxygen Desktop and in Web Author.
Any workaround available ?
Thank you for your help.
Environment:
- Oxygen XML Editor (Desktop): version 27.1
- Oxygen XML Web Author: version 27.1
- Custom framework
You do not have the required permissions to view the files attached to this post.
-
Radu
- Posts: 9592
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Configuring content completion that interferes with CSS
Hi Vince,
The @class attribute is very important when working with DITA XML content, it usually has a default value which is used in this case to match elements in the CSS used for the Author visual editor mode.
Once you reject adding in the cc_config.xml the default @class attribute (which is not serialized in the XML) to the list item, then Oxygen stops understanding it as a DITA XML element and you get these visual rendering problems. Probably if you save and press F5 the rendering problem goes away as Oxygen reloads default @class attributes for all elements in the document.
Regards,
Radu
The @class attribute is very important when working with DITA XML content, it usually has a default value which is used in this case to match elements in the CSS used for the Author visual editor mode.
Once you reject adding in the cc_config.xml the default @class attribute (which is not serialized in the XML) to the list item, then Oxygen stops understanding it as a DITA XML element and you get these visual rendering problems. Probably if you save and press F5 the rendering problem goes away as Oxygen reloads default @class attributes for all elements in the document.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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