Highlight specific characters in OWA

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
NicoAMP
Posts: 98
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Highlight specific characters in OWA

Post by NicoAMP »

Hello all,

I'd like to create a new feature for content proofreaders: highlight specific spaces used in textual content.

Let's take the case of non-breaking spaces.
If I use the   entity in my content, I can highlight it using the following CSS:

Code: Select all

oxy|entity[name='#160']
{
    background-color: blue !important;
}
But sometimes editors don't use the entity but the non-breaking space character directly.
In this case, CSS doesn't work.

Is there a way in Oxygen Web Author to highlight specific characters?

Thanks a lot for your help.

Regards,
Nicolas
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
cosminef
Site Admin
Posts: 128
Joined: Wed Aug 30, 2023 2:33 pm

Re: Highlight specific characters in OWA

Post by cosminef »

Hello,

We have recorded an internal issue (WA-7665) regarding this aspect, it will be checked, and once it is resolved, you will be notified.

As a workaround, you can use this plugin [1] and add the following rule to the file web/static/style.css:

.oxy-document div[data-reference="true"][data-role="entity"][data-ent="#160"] {
background-color: green;
}


[1] https://github.com/oxygenxml/web-author ... i-with-css

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Post Reply