Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

text-decoration:none doesn't remove text decoration


Not applicable

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