@portabletext/editor 1.55.7 → 1.55.8

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.cjs CHANGED
@@ -5211,7 +5211,11 @@ function pluginUpdateValue(context, editor) {
5211
5211
  apply2(operation);
5212
5212
  return;
5213
5213
  }
5214
- editor.value = applyOperationToPortableText(context, editor.value, operation), buildIndexMaps({
5214
+ if (editor.value = applyOperationToPortableText(context, editor.value, operation), operation.type === "insert_text" || operation.type === "remove_text") {
5215
+ apply2(operation);
5216
+ return;
5217
+ }
5218
+ buildIndexMaps({
5215
5219
  schema: context.schema,
5216
5220
  value: editor.value
5217
5221
  }, {