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 replaceOldTags doesn't seem to do anything #728

Closed
presleyd opened this issue Oct 6, 2021 · 1 comment
Closed

cleanHTML replaceOldTags doesn't seem to do anything #728

presleyd opened this issue Oct 6, 2021 · 1 comment
Labels

Comments

@presleyd
Copy link

presleyd commented Oct 6, 2021

Jodit Version: 3.8.5

Browser: FF
OS: Windows
Is React App: False

Code

var editor = new Jodit('#editor', {
    "cleanHTML": {
        "replaceOldTags": {
            'i':'em',
            'b':'strong',
            'h1':'p',
         },
     }
});

Expected behavior:

Any < i> tags will get converted to < em> tags, < b> to < strong> and < h1> to < p> when pasting in HTML

Actual behavior:

Nothing seems to happen to any of the existing tags. allowTags works fine for completely removing a tag.

@xdan xdan added the bug label Oct 6, 2021
@xdan xdan closed this as completed Oct 26, 2021
@waynecamara061
Copy link

ldlçskd
kdlsdksldks]lçsldl
kldskdlskd
kdlsdks

vinhtranchau added a commit to vinhtranchau/jodit-repo that referenced this issue Jan 18, 2023
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

3 participants