@slate-yjs/core
Advanced tools
Comparing version 0.3.0 to 0.3.1
# @slate-yjs/core | ||
## 0.3.1 | ||
### Patch Changes | ||
- [#369](https://github.com/BitPhinix/slate-yjs/pull/369) [`aa10864`](https://github.com/BitPhinix/slate-yjs/commit/aa108641f44ca00559124cca8277a7c1e4354c00) Thanks [@BitPhinix](https://github.com/BitPhinix)! - Normalize editor on connect to avoid rendering denormalized state | ||
## 0.3.0 | ||
@@ -4,0 +10,0 @@ |
@@ -949,3 +949,6 @@ var __defProp = Object.defineProperty; | ||
CONNECTED.add(e); | ||
e.onChange(); | ||
Editor3.normalize(editor, { force: true }); | ||
if (!editor.operations.length) { | ||
editor.onChange(); | ||
} | ||
}; | ||
@@ -952,0 +955,0 @@ e.disconnect = () => { |
{ | ||
"name": "@slate-yjs/core", | ||
"sideEffects": false, | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Yjs binding for Slate.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -213,3 +213,7 @@ import { BaseEditor, Descendant, Editor, Operation, Point } from 'slate'; | ||
CONNECTED.add(e); | ||
e.onChange(); | ||
Editor.normalize(editor, { force: true }); | ||
if (!editor.operations.length) { | ||
editor.onChange(); | ||
} | ||
}; | ||
@@ -216,0 +220,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1744772
16602