Delete selected multiple elements
Posted: Mon Jul 04, 2022 10:35 am
Hi,
We changed to display the definition list as table style.
And our writer requested to add the action to delete dlentry elements because the table style does not show dlentry elements corresponding to row.
I tried DeleteElementsOperation like this:
Xpath activation: ancestor-or-self::*[contains(@class," topic/dlentry ")]
elementLocations: ancestor-or-self::*[contains(@class," topic/dlentry ")]
However, this works if single dlentry is selected. If you select multiple dlentry or inside elements, the last dlentry is deleted.
How can I implement to delete multiple dlentry at once?
We changed to display the definition list as table style.
And our writer requested to add the action to delete dlentry elements because the table style does not show dlentry elements corresponding to row.
I tried DeleteElementsOperation like this:
Xpath activation: ancestor-or-self::*[contains(@class," topic/dlentry ")]
elementLocations: ancestor-or-self::*[contains(@class," topic/dlentry ")]
However, this works if single dlentry is selected. If you select multiple dlentry or inside elements, the last dlentry is deleted.
How can I implement to delete multiple dlentry at once?