mirror of
https://github.com/codex-team/editor.js
synced 2026-03-17 16:10:07 +01:00
* Fixing: #843 problem with onchange callback * Update docs/CHANGELOG.md Co-authored-by: Peter Savchenko <specc.dev@gmail.com> Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
c1f9dd637f
commit
83131d6251
4 changed files with 4 additions and 2 deletions
2
dist/editor.js
vendored
2
dist/editor.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -17,6 +17,7 @@
|
|||
- `Fix` - Fixed issue with enter key in inputs and textareas [#920](https://github.com/codex-team/editor.js/issues/920)
|
||||
- `Improvements` - Allowed to set `false` as `toolbox` config in order to hide Toolbox button [#1221](https://github.com/codex-team/editor.js/issues/1221)
|
||||
- `Fix` - blocks.getBlockByIndex() API method now returns void for indexes out of range [#1270](https://github.com/codex-team/editor.js/issues/1270)
|
||||
- `Fix` - Fixed the `onChange` callback issue. This method didn't be called for native inputs before some contentedtable element changed [#843](https://github.com/codex-team/editor.js/issues/843)
|
||||
|
||||
### 2.18
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export default class MoveUpTune implements BlockTune {
|
|||
const currentBlock = this.api.blocks.getBlockByIndex(currentBlockIndex);
|
||||
const previousBlock = this.api.blocks.getBlockByIndex(currentBlockIndex - 1);
|
||||
|
||||
if (!currentBlock || !previousBlock){
|
||||
if (!currentBlock || !previousBlock) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ export default class ModificationsObserver extends Module {
|
|||
*/
|
||||
window.setTimeout(() => {
|
||||
this.setObserver();
|
||||
this.updateNativeInputs();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue