tinymce / tinymce-vue

Official TinyMCE Vue component
MIT License
2.08k stars 208 forks source link

How can i control br tag? #393

Closed bang-star closed 4 months ago

bang-star commented 1 year 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 1 year ago

Ref: INT-3244

tiny-stale-bot commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Please comment if you wish to keep this issue open or it will be closed in 7 days.

tiny-stale-bot commented 4 months ago

This issue was closed because it has been stalled for 7 days with no activity.