Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i control br tag? #393

Open
bang-star opened this issue Oct 27, 2023 · 1 comment
Open

How can i control br tag? #393

bang-star opened this issue Oct 27, 2023 · 1 comment
Labels

Comments

@bang-star
Copy link

** 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.

@exalate-issue-sync
Copy link

Ref: INT-3244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant