tinymce-vue icon indicating copy to clipboard operation
tinymce-vue copied to clipboard

How can i control br tag?

Open bang-star opened this issue 2 years ago • 1 comments

** environment

  • tiny MCE v5

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.

bang-star avatar Oct 27 '23 08:10 bang-star

Ref: INT-3244

exalate-issue-sync[bot] avatar Oct 27 '23 08:10 exalate-issue-sync[bot]

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 avatar Jul 09 '24 00:07 tiny-stale-bot

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

tiny-stale-bot avatar Jul 16 '24 00:07 tiny-stale-bot