We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17707dd commit 8799b46Copy full SHA for 8799b46
components/wysiwyg-editor.js
@@ -53,13 +53,8 @@ class WYSIWYGEditor extends LitElement {
53
const editor = this.renderRoot.querySelector('#editor')
54
console.log("firstUpdated() editor ", editor)
55
56
- if (this.content) {
57
- editor.innerHTML = this.content
58
- }
59
-
60
editor.addEventListener('paste', (e) => {
61
e.preventDefault();
62
63
console.log("pasing: ", e);
64
65
let text = e.clipboardData.getData('text/plain');
@@ -70,7 +65,7 @@ class WYSIWYGEditor extends LitElement {
70
updated(changedProperties) {
71
66
console.log("updated()", changedProperties);
72
67
73
- if (changedProperties.has('content')) {
68
+ if (!changedProperties.get('content')) {
74
69
75
editor.innerHTML = this.content || ""
76
}
0 commit comments