@paperbits/prosemirror
Advanced tools
Comparing version 0.1.56 to 0.1.57
{ | ||
"name": "@paperbits/prosemirror", | ||
"version": "0.1.56", | ||
"version": "0.1.57", | ||
"description": "Paperbits HTML editor based on ProseMirror.", | ||
@@ -19,3 +19,3 @@ "author": "Paperbits", | ||
"dependencies": { | ||
"@paperbits/common": "0.1.56", | ||
"@paperbits/common": "0.1.57", | ||
"prosemirror-commands": "^1.0.7", | ||
@@ -22,0 +22,0 @@ "prosemirror-history": "^1.0.3", |
@@ -55,3 +55,7 @@ import { IEventManager } from "@paperbits/common/events"; | ||
public getState(): Object { | ||
return this.editorView.state.toJSON()["doc"]["content"]; | ||
if (this.editorView) { | ||
return this.editorView.state.toJSON()["doc"]["content"]; | ||
} | ||
return this.content.doc.content; | ||
} | ||
@@ -423,3 +427,3 @@ | ||
}); | ||
const handleUpdates = this.handleUpdates; | ||
@@ -426,0 +430,0 @@ |
37256
822
+ Added@paperbits/common@0.1.57(transitive)
- Removed@paperbits/common@0.1.56(transitive)
Updated@paperbits/common@0.1.57