Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.96k stars 606 forks source link

Template plugin #1454

Open stefanarsicdev opened 2 months ago

stefanarsicdev commented 2 months ago

Description

How to reproduce?

When using the template plugin, when I apply the html code inside the textbox, the first div is replaced with a p tag. And when triggering the source view, the editor replaces each div with a p tag.

The initial problem is that when the template is first displayed, the div is replaced with a p tag.

Is it possible to solve this problem within core js or will this be solved with a new version of the editor.

template-code-view-source

template-code

template-preview

template-code-view-source-2