We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bdf459 commit f8f4417Copy full SHA for f8f4417
blocks/edit/da-editor/da-editor.js
@@ -84,11 +84,11 @@ export default class DaEditor extends LitElement {
84
85
updated(props) {
86
if (!this._imsLoaded) return;
87
- this.disconnectWebsocket();
88
if (!(props.has('version') || props.has('_versionDom'))) {
+ this.disconnectWebsocket();
89
const prose = this.shadowRoot.querySelector('.da-prose-mirror');
90
prose.innerHTML = '';
91
- initProse({ editor: prose, path: this.path });
+ this.wsProvider = initProse({ editor: prose, path: this.path });
92
}
93
94
0 commit comments