@portabletext/editor 1.11.0 → 1.11.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portabletext/editor",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Portable Text Editor made in React",
5
5
  "keywords": [
6
6
  "sanity",
@@ -14,6 +14,7 @@ export function createWithMaxBlocks(editorActor: EditorActor) {
14
14
  const {apply} = editor
15
15
  editor.apply = (operation) => {
16
16
  if (editorActor.getSnapshot().context.readOnly) {
17
+ apply(operation)
17
18
  return
18
19
  }
19
20
 
@@ -22,6 +22,7 @@ export function createWithPlaceholderBlock(
22
22
 
23
23
  editor.apply = (op) => {
24
24
  if (editorActor.getSnapshot().context.readOnly) {
25
+ apply(op)
25
26
  return
26
27
  }
27
28
 
@@ -115,6 +115,7 @@ export function createWithUndoRedo(
115
115
  const {apply} = editor
116
116
  editor.apply = (op: Operation) => {
117
117
  if (editorActor.getSnapshot().context.readOnly) {
118
+ apply(op)
118
119
  return
119
120
  }
120
121