I wanted to add some HTML tags in RTE; with CSS class names how can I achieve that? If there is any possible way to do so.
For Del tag, I tried creating it from text component policy but
Now if I click on Paragraph it won't let me select, once Strikethrough (del) tag is selected
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Ronnie09 ,
If you want to use tags in RTE, I suggest using data-sly-element.
<div data-sly-element="${properties.tagName}">Blah</div>
<!--/* outputs: */-->
<h1>Blah</h1>
Not like this but using style or paraformat
Hi @Ronnie09 ,
You can use "Styles", which is another RTE plugin. The styles are implemented by adding <span> around the selected content therefore it will support multiple styles as well. Please see the documentation,
Thanks,