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

Post by Vince »

Hello,

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>
Given en existing list item :
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

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply