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

Event 'limit.limit' not triggered when the number of limitChars is exceded #1181

Open
snjpost opened this issue Sep 19, 2024 · 1 comment
Open
Labels

Comments

@snjpost
Copy link

snjpost commented Sep 19, 2024

Jodit Version: 4.2.27

Browser: Chrome/FF
OS: Linux
Is React App: False
Reproduced on xdsoft.net: False (not able to set limitChars)

Code

import { Jodit } from 'jodit';

const editor = Jodit.make('#editor', {
    limitChars: 10
});

editor.e.on('limit.limit', () => {
    console.error('Limit reached!');
    editor.message.error('Limit reached!');
    return false;
});

Expected behavior:
A warning when more than 10 chars have been typed.

Actual behavior:
No warning.

@xdan xdan added the bug label Oct 13, 2024
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
@xdan @snjpost and others