I am passing a html to sun editor. The HTML contains style and class. Even though I have passed attribute to the suneditor that white lists the class, it’s not visible in the DOM.
attributesWhitelist: {
all: 'style class'
}
Is there any better approach to display a text editor which supports style and in which we can make a part of text as non editable ?
Thanks in advance.
New contributor
Sushmitha J is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.