I noticed DITA and DocBook defines CSS for built-in profiling attributes, for example following is the CSS from DITA for audience
Code: Select all
border: 1px solid green;
content: ' (if audience is ' oxy_label(text, oxy_concat("'", oxy_replace(attr(audience), ' ', "' or '"), "'"), color, #0000ff) ') ';
I have a dynamic list of profiling attributes for which I like to add similar CSS. Is it possible to inject CSS into editor at runtime using plugin, perhaps right before loading the document?