@portabletext/editor 1.0.16 → 1.0.17

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.
package/lib/index.js CHANGED
@@ -1160,13 +1160,7 @@ function createWithEditableAPI(portableTextEditor, types$1, keyGenerator) {
1160
1160
  at: editor.selection,
1161
1161
  match: (n) => n._type === types$1.span.name
1162
1162
  }
1163
- ), editor.onChange(), editor.selection && slate.Transforms.insertNodes(
1164
- editor,
1165
- [{ _type: "span", text: "", marks: [], _key: keyGenerator() }],
1166
- {
1167
- at: slate.Range.end(editor.selection)
1168
- }
1169
- );
1163
+ ), editor.onChange();
1170
1164
  const newPortableTextEditorSelection = toPortableTextRange(
1171
1165
  fromSlateValue(editor.children, types$1.block.name, KEY_TO_VALUE_ELEMENT.get(editor)),
1172
1166
  editor.selection,