@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.js CHANGED
@@ -5240,7 +5240,11 @@ function pluginUpdateValue(context, editor) {
5240
5240
  apply2(operation);
5241
5241
  return;
5242
5242
  }
5243
- editor.value = applyOperationToPortableText(context, editor.value, operation), buildIndexMaps({
5243
+ if (editor.value = applyOperationToPortableText(context, editor.value, operation), operation.type === "insert_text" || operation.type === "remove_text") {
5244
+ apply2(operation);
5245
+ return;
5246
+ }
5247
+ buildIndexMaps({
5244
5248
  schema: context.schema,
5245
5249
  value: editor.value
5246
5250
  }, {