tinymce / tinymce-vue

Official TinyMCE Vue component
MIT License
2.01k stars 202 forks source link

How can i control br tag? #393

Open bang-star opened 8 months ago

bang-star commented 8 months ago

** environment

What is the current behavior? Describe the bug

The data was set as follows.

const content = `
<blockquote>
   <p>ABCDEF
       <br>  ABCDEF
   </p>
</blockquote>
`;

converted html

<blockquote>
   <br>
   <p>ABCDEF
       <br>  ABCDEF
   </p>
   <br>
</blockquote>

I want to remove additional br tags.

What is the expected behavior?

In the official document, it was possible to remove the trailing br tag using remove_trailing_brs.

However, I don't know how to remove the br tag created in front.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?

I try to edit init options.

force_br_newlines : false,
forced_root_block: ''

but I cant solve it.

exalate-issue-sync[bot] commented 8 months ago

Ref: INT-3244