@tiptap/core 3.6.3 → 3.6.5
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/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/Editor.ts +5 -0
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
|
+
"version": "3.6.5",
|
|
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.
|
|
55
|
+
"@tiptap/pm": "^3.6.5"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@tiptap/pm": "^3.6.
|
|
58
|
+
"@tiptap/pm": "^3.6.5"
|
|
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
|