Skip to content

Commit f8f4417

Browse files
authored
Update da-editor.js
1 parent 2bdf459 commit f8f4417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blocks/edit/da-editor/da-editor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export default class DaEditor extends LitElement {
8484

8585
updated(props) {
8686
if (!this._imsLoaded) return;
87-
this.disconnectWebsocket();
8887
if (!(props.has('version') || props.has('_versionDom'))) {
88+
this.disconnectWebsocket();
8989
const prose = this.shadowRoot.querySelector('.da-prose-mirror');
9090
prose.innerHTML = '';
91-
initProse({ editor: prose, path: this.path });
91+
this.wsProvider = initProse({ editor: prose, path: this.path });
9292
}
9393
}
9494
}

0 commit comments

Comments
 (0)