JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.77k stars 316 forks source link

Question - How to use attributesWhitelist #1413

Open Nirav2021 opened 5 months ago

Nirav2021 commented 5 months ago

One issue i m facing with attributesWhitelist is - tag is not retained and deleted by the SunEditor's Code view. This is the html that i am using in Code view <h4><em class="fas fa-eye mr-2"> </em> At a glance</h4> I am using attributesWhitelist: { em: "class" } to retain em tag. Can you please help to not remove em tag from my html content. Note: I am using version 3.6.1 for SunEditor-React.