Expand my Community achievements bar.

text-decoration:none doesn't remove text decoration

Avatar

Former Community Member

I have created a new Stikethrough plugin in RTE. It is working perfectly fine, but, whenever I am trying to remove the line-through from the text, its removing the last applied tag (ex. font size, color), not the line-through tag. Please see the snippet of code below which I am using for removing line-through:

 nodeList.surround(execDef.editContext, "addstrike", { style: "text-decoration:" + execDef.value });

Here, execDef.value is 'none'.

But it doesn't seem to work for me. Anybody knows the fix for this ? I am already done trying a lot :(

0 Replies