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

cleanHTML fillEmptyParagraph and removeEmptyElements seem broken #1149

Open
Paul-Yves opened this issue Jun 10, 2024 · 2 comments
Open

cleanHTML fillEmptyParagraph and removeEmptyElements seem broken #1149

Paul-Yves opened this issue Jun 10, 2024 · 2 comments
Labels

Comments

@Paul-Yves
Copy link

Jodit Version: 4.2.25

Browser: firefox
OS: linux
Is React App: False
Reproduced on xdsoft.net: False
Code

import { Jodit } from 'jodit/esm/index.js'
import 'jodit/esm/plugins/clean-html/clean-html.js'
Jodit.make($('textarea'), {
    cleanHTML: {
      fillEmptyParagraph: false,
      removeEmptyElements: true
    }
  })

Expected behavior:
When textarea is empty at start, if I write thing in the jodit editor then delete everything, the textarea value submitted in a form should be empty
Actual behavior:
When textarea is empty at start, if I write thing in the jodit editor then delete everything, the textarea value submitted in a form is <p><br/></p>

@xdan xdan added the bug label Jun 26, 2024
@hardikaspl
Copy link

@xdan Any update on this issue ?

@jeroentja
Copy link

I have the same problem

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

4 participants