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

Enclosing content in a defined tag #37

Closed lcini17 closed 6 years ago

lcini17 commented 6 years ago

Currently it seems that any content included in the editor is enclosed within a default div tag. Are there any plans to improve this and include a specific tag, for example, [p] ..[/p]?

Thanks in advance.

isaacsant commented 6 years ago

Following ticket as I'm experiencing a similar issue. Thanks

chmln commented 6 years ago

Hello,

Yes, this should be possible. Instead of divs, paragraphs can be separated by p tags instead. https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Editable_content#Differences_in_markup_generation

Is this what you meant?