angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Suppress the generation of font tag <font> in the HTML content while typing inside the editor

Open centhil747 opened this issue 6 years ago • 1 comments

Hi, I doesn't want the font tag <font> to be in the HTML that gets generated while I type inside the editor. Is there a way to suppress the generation of that font tag instead which a <p> in its place will be enough. I actually use a parser to convert this HTML into a markdown so that parser doesn't support font tag. So, I want it to suppressed in the editor itself.

Eg: <p><font face="Times New Roman" size="3"><b>hello</b></font></p> Which needs to be generated like the following <p><b>hello</b></p>

centhil747 avatar Jun 30 '20 10:06 centhil747

Same as #264 and #226 - execCommand generates tags.

This is standard browser behavior. Will be addressed in v4.0.

Workaround: Use customClasses or sanitize output to convert font tags to CSS.

Questions? New issue!

kolkov avatar Nov 22 '25 01:11 kolkov