-
Notifications
You must be signed in to change notification settings - Fork 345
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
Jodit and Tributejs #32
Comments
Hi try this https://github.com/jodit/jodit-tributejs |
var editor = new Jodit('#editor', {
events: {
beforeEnter: function (event) {
if (tribute.isActive) {
return true; // prevent enter plugin but not prevent default behavior
}
}
}
}); // or editor.events.on('beforeEnter', function (event) {
if (tribute.isActive) {
return true; // prevent enter plugin but not prevent default behavior
}
}); |
Thanks again @xdan! However, the only event I'm able to make work is I'm using |
Unfortunately i don't know how return value from
and export class AppComponent {
title = 'app';
handleEvent() {
console.log('triggered');
return false;
}
} It is triggered but not return false |
For that approach, events via But I'm a bit puzzled why the I then tested the options approach again (with the latest version of Template:
Component:
|
Ok, replicated and can confirm that |
Also, Removing The easiest way around this is to make sure you do not assign the new value on the first |
Jodit Version: 3.1.71
Jodit angular: 1.0.29
Tributejs: 3.2.0
Code
Attaching zurb/tribute to Jodit works fine, here's the essential:
Everything works, except selecting item with keypress enter, which Jodit captures.
Expected behavior:
Should be able to configure Jodit to disable capturing keypress when Tribute (or other) is open.
See this Quill with Tribute comment
Actual behavior:
Jodit captures keypress enter and inserts the configured enter type
The text was updated successfully, but these errors were encountered: