3.15.3
💥 Breaking Change
Observer
module renamed toHistory
, accessed viaJodit.history
Jodit.observer
field deprecated and will be removed in future releases- Changed to
history
inobserver
settings. Theobserver
field has been deprecated. - Removed
stack
field fromHistory
class (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 thedefaultTimeout
setting
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