In the Oxygen editor, can I add a tooltip to a processing instruction?
Posted: Fri Mar 24, 2023 7:15 pm
Hello,
We use a <?snps-gentext?> processing instruction in our DITA files to indicate cross-book links whose target text is dynamic and should be recomputed as needed:
We use some CSS to style this processing instruction as an icon in the Oxygen editor (more details here):
Currently, if a user hovers over this PI icon, the tooltip looks like this:
Is there some editor CSS that allows tooltips to be specified? I didn't see a tooltip CSS property here:
Framework and Author Mode Customization > CSS Support in Author Mode > CSS Extensions > Additional CSS Properties
It would be nice to put a helpful comment for curious novice users to explain its meaning.
Thanks!
We use a <?snps-gentext?> processing instruction in our DITA files to indicate cross-book links whose target text is dynamic and should be recomputed as needed:
Code: Select all
<xref keyref="bookB.topic">Topic Title<?snps-gentext?></xref>
Code: Select all
oxy|processing-instruction[snps-gentext] {
-oxy-display-tags: none;
-oxy-editable: false;`
visibility: -oxy-collapse-text;
-oxy-alt-text: 'foo';
background-color: red;
}
oxy|processing-instruction[snps-gentext]:before {
content: oxy_url('snps-gentext.png');
}
Is there some editor CSS that allows tooltips to be specified? I didn't see a tooltip CSS property here:
Framework and Author Mode Customization > CSS Support in Author Mode > CSS Extensions > Additional CSS Properties
It would be nice to put a helpful comment for curious novice users to explain its meaning.
Thanks!