Hi Markus,

Unfortunately you can't define custom CSS functions. What if you keep the CSS rule as it is and use a StylesFilter only to correct these read-only contexts?

if (!styles.isEditable()) {
  // Read-only context. The XPath will not give any values for this context.
  StaticContent[] contentProp = (StaticContent[]) styles.getProperty(Styles.KEY_MIXED_CONTENT);
  EditorContent editorContent = (EditorContent) contentProp[0];
  editorContent.getProperties().put(InplaceEditorArgumentKeys.PROPERTY_VALUES, getValues());
}

Best regards,
Alex
-- 
Alex Jitianu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com 
On 8/19/2014 6:02 PM, practice innovation wrote:

Hi Alex,

 

as my :before rule is a little bit more complex StylesFilter is not the way I really like.

Is there a way to implement a custom function getMyOwnValues(), which I can include like this:

oxy_editor(

            type, popupSelection,

            edit, "@attribute",

            values, getMyOwnValues(),

            labels, getMyOwnValues(),

            resultSeparator, "|",

            columns, 10,

            selectionMode, "multiple",

            fontInherit, true);

 

Thanks for your support

Markus

 

 



_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-user