JiHong88 / suneditor

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

Question - How to use attributesWhitelist #1413

Open Nirav2021 opened 1 week ago

Nirav2021 commented 1 week 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.