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

TinyMCE wraps content in a paragraph #261

Open
J4bbi opened this issue Nov 11, 2024 · 0 comments
Open

TinyMCE wraps content in a paragraph #261

J4bbi opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@J4bbi
Copy link

J4bbi commented Nov 11, 2024

Package version (if known): v4.3.0

Describe the bug

TinyMCE which was added with #222 uses a <p> element as a root element as a default block element. It injects this element into the content.

Before version 6 of TinyMCE this could be tampered with using the forced_root_block configuration parameter. But now it can only by used to change what element is used. There is a lengthy discussion about possible workarounds.

As far as I can tell, every time a description field is changed using the editor, provided there is not already a root element, one will be added.

As a side note (I saw @ntarocco mention this on discord) apparently there are possible issues with the licensing of TinyMCE (see here).

Steps to Reproduce

  1. Create a new record
  2. Make sure to not use any html or styling in the description, just write text
  3. Look up the record on the API, it will be nested in a paragraph.

Expected behavior

The editor should not inject markup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant