[oXygen-sdk] Adding listener to a certain attribute
Oxygen XML Editor Support
support at oxygenxml.com
Fri Feb 15 03:40:34 CST 2013
Hi Jan,
So somehow you would like an extension in the Attributes view from the
Author page/mode, right?
If the user clicks a certain attribute there and tries to edit it, he
would be presented with a wizard for it.
Right now we have some API on the document type customization side (and
not on the plugin side):
> ro.sync.ecss.extensions.api.ExtensionsBundle.createAttributesValueEditor(boolean)
but such an attribute value editor (if you would overwrite the method in
your custom DITAExtensionsBundle implementation) would be called for all
attributes, so we do not have API to say that only a certain named
attribute must be edited in the custom attributes value editor. I will
add an improvement request for this.
My suggested approach:
What you could maybe do for now would be to hide that specific attribute
in the attributes view using:
> WSAuthorEditorPageBase.addAuthorAttributesDisplayFilter(AuthorAttributesDisplayFilter)
and maybe to add to the toolbar a special action for setting the
attribute on the current element by showing a wizard.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 2/15/2013 10:27 AM, Jan Bevers wrote:
> Hi
>
> I have a custom attribute defined in my DITA customization called
> ‘ishcondition’. I’d like to capture when a user adds/edits this
> attribute so I can show a wizard.
>
> How can I do this through the oXygen API?
>
> Thanks in advance
>
> *Jan Bevers |* Developer *|*SDL *| *Content Management Technologies
> Division *| *+32 (0)15 400 970*|* jbevers at sdl.com
> image001
>
>
>
> _______________________________________________
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>
More information about the oXygen-sdk
mailing list