[oXygen-user] Multiple but independent inline editors
Felix Sasaki
fsasaki at w3.org
Mon Nov 11 10:13:26 CST 2013
Hi all,
another newbie question I assume.
I want to add a set of inline editors. With a dedicated CSS style and given
<span its:translate="no">...
an editor for editing the "translate" attribute, a combo box editor
should be available for editing the attribute.
The issue is that there are many of such attributes, e.g.
<span its:translate="no" its:locNote="..." its:storageSize="..."
its:term="..."> ...
First I thought of creating a combobox for each of these. But CSS
selectors don't allow you to match several rules at once. So if I have
*[its|translate]:before { combobox def here }
and later in the stylesheet
*[its|term]:before { combobox def here }
an element like above that contains both attributes will only show the
combox for "its:term". I can write
*[its|translate][its|term]:before { combobox def here }
but this will show comboxes for all attributes even if they are not present.
I tried a workaround: defining CSS rules for all potential combinations,
that is: only translate, only term, both translate+term, ... but since
there are a lot of attributes to consider, the CSS stylesheet looks
really bad.
Maybe there is a workaround that does not rely on CSS selectors?
Thanks,
Felix
More information about the oXygen-user
mailing list