@tiptap/core 3.6.4 → 3.6.6

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "3.6.4",
4
+ "version": "3.6.6",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -52,10 +52,10 @@
52
52
  "jsx-dev-runtime"
53
53
  ],
54
54
  "devDependencies": {
55
- "@tiptap/pm": "^3.6.4"
55
+ "@tiptap/pm": "^3.6.6"
56
56
  },
57
57
  "peerDependencies": {
58
- "@tiptap/pm": "^3.6.4"
58
+ "@tiptap/pm": "^3.6.6"
59
59
  },
60
60
  "repository": {
61
61
  "type": "git",
package/src/Editor.ts CHANGED
@@ -315,6 +315,11 @@ export class Editor extends EventEmitter<EditorEvents> {
315
315
  } as EditorView,
316
316
  {
317
317
  get: (obj, key) => {
318
+ if (this.editorView) {
319
+ // If the editor view is available, but the caller has a stale reference to the proxy,
320
+ // Just return what the editor view has.
321
+ return this.editorView[key as keyof EditorView]
322
+ }
318
323
  // Specifically always return the most recent editorState
319
324
  if (key === 'state') {
320
325
  return this.editorState