@seafile/seafile-editor 1.0.63 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,8 +101,9 @@ const withParagraph = editor => {
101
101
  if (fragment.length === 1 && firstChild.type === _elementTypes.TABLE) {
102
102
  const hasVoidNode = paragraphEntry[0].children.some(item => _slate.Editor.isVoid(newEditor, item));
103
103
  if (_slate.Node.string(paragraphEntry[0]).length === 0 && !hasVoidNode) {
104
- _slate.Transforms.removeNodes(newEditor);
105
- _slate.Transforms.insertNodes(newEditor, fragment);
104
+ _slate.Transforms.insertNodes(newEditor, fragment, {
105
+ at: paragraphEntry[1]
106
+ });
106
107
  return;
107
108
  }
108
109
  const nextPath = _slate.Path.next(paragraphEntry[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {