@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.esm.js CHANGED
@@ -1176,13 +1176,7 @@ function createWithEditableAPI(portableTextEditor, types, keyGenerator) {
1176
1176
  at: editor.selection,
1177
1177
  match: (n) => n._type === types.span.name
1178
1178
  }
1179
- ), editor.onChange(), editor.selection && Transforms.insertNodes(
1180
- editor,
1181
- [{ _type: "span", text: "", marks: [], _key: keyGenerator() }],
1182
- {
1183
- at: Range.end(editor.selection)
1184
- }
1185
- );
1179
+ ), editor.onChange();
1186
1180
  const newPortableTextEditorSelection = toPortableTextRange(
1187
1181
  fromSlateValue(editor.children, types.block.name, KEY_TO_VALUE_ELEMENT.get(editor)),
1188
1182
  editor.selection,