chmln / vue-wysiwyg

A lightweight WYSIWYG HTML editor for Vue.js
https://chmln.github.io/vue-wysiwyg/
MIT License
555 stars 134 forks source link

restrict tags #158

Open hdrodel opened 2 years ago

hdrodel commented 2 years ago

Hey i would like to only allow<b>, <br> and<i> tags to be added to the text. While it's possible to only show bold and italics in the menu, the editor still keeps adding <div> tags and also stuff like <span style="color: inherit; font-family: inherit; font-size: 0.875rem; letter-spacing: 0.00714286em;"> by itself . Is there a way that the editor can only have it add the mentioned tags?