Releases: xdan/jodit
Releases · xdan/jodit
3.1.12 Hotkeys
Added Hotkeys plugin
Now for all Commands you can add custom shortcust
Shortcuts now:
- ctrl+b - Bold
- ctrl+i - Italic
- ctrl+u - Underline
- ctrl+shift+i - Open special character dialog
- ctrl+r - Open find and replace dialog
- ctrl+f - Open find dialog
- ctrl+z - Undo
- ctrl+y - Redo
You can override default shortcut or add custom to default value:
var jodit = new Jodit('#editor', {
commandToHotkeys: {
bold: 'ctrl+shift+b',
italic: ['ctrl+i', 'ctrl+b'],
}
})
3.1.11 Symbols
3.1.10
3.1.9
3.1.8
- Fixed bug in About button
- Completely rewritten the Events class.
Now events with DOM elements and Jodit events are configured via a single interface
var jodit = new Jodit('#editor');
jodit.events.on('someEvent', function () {
console.log(111);
});
jodit.events.fire('someEvent'); // 111
var someObject = {};
jodit.events.on(someObject, 'someEvent', function () {
console.log(222);
});
jodit.events.fire(someObject, 'someEvent') // 222
var someDOMObject = document.body;
jodit.events.on(someDOMObject, 'click', function () {
console.log(222);
});
jodit.events.fire(someDOMObject, 'click') // 222