3.15.3
3.15.3
π₯ Breaking Change
Observermodule renamed toHistory, accessed viaJodit.historyJodit.observerfield deprecated and will be removed in future releases- Changed to
historyinobserversettings. Theobserverfield has been deprecated. - Removed
stackfield fromHistoryclass (formerObserver). - Separated default editor timeout and
history.timeout. Now the second setting is just for history.
Timeouts for all asynchronous operations in Jodit now apply thedefaultTimeoutsetting
Before:
const editor = Jodit.make({
observer: {
timeout: 122,
maxHistoryLength: 100
}
});
console.log(editor.defaultTimeout); // 122
editor.observer.stack.clear();Now:
const editor = Jodit.make({
defaultTimeout: 122,
history: {
timeout: 1000,
maxHistoryLength: 100
}
});
console.log(editor.defaultTimeout); // 122
editor.history.clear();- When adding information to the editor via
Jodit.value, the history of changes will be process immediately,
without a timeout. Read more #792