Activation Xpath for a custom javascript framework action
Posted: Thu Nov 30, 2023 12:11 pm
Hello,
When I create a custom framework action via the UI, I can setup an "activation Xpath" that permit to control when my action is available.
When I create a custom framework action with javascript I can use following function :
But it seems that it's not possible to use an "activation Xpath" here.
So the question is : is it possible to setup an "activation Xpath" for a custom javascript framework action?
Thanks.
Regards,
Nicolas
When I create a custom framework action via the UI, I can setup an "activation Xpath" that permit to control when my action is available.
When I create a custom framework action with javascript I can use following function :
Code: Select all
MyAction.prototype.isEnabled = function () {
return !this.editor.getReadOnlyState().readOnly;
};
So the question is : is it possible to setup an "activation Xpath" for a custom javascript framework action?
Thanks.
Regards,
Nicolas