Framework: ChangeAttributeOperation
Posted: Mon Jun 27, 2022 10:10 pm
Hi,
I try to use the ChangeAttributeOperation.
It works to add an attribute to the selected element when the given attribute is empty.
However, when there is already an attribute value in my selected element, it simply overrides the existing attribute value.
I would like to add it as a second attribute value.
This is my current action: Simple example
Before:
<p nr_jqs="first">this is a paragraph</p>
After clicking the change operation I would like to get:
<p nr_jqs="first 2_jq">this is a paragraph</p>
How can I do this? Thanks a lot in advance.
Kind regards,
Pieterjan
I try to use the ChangeAttributeOperation.
It works to add an attribute to the selected element when the given attribute is empty.
However, when there is already an attribute value in my selected element, it simply overrides the existing attribute value.
I would like to add it as a second attribute value.
This is my current action: Simple example
Before:
<p nr_jqs="first">this is a paragraph</p>
After clicking the change operation I would like to get:
<p nr_jqs="first 2_jq">this is a paragraph</p>
How can I do this? Thanks a lot in advance.
Kind regards,
Pieterjan