(changedProperties: Map<string, any>)
| 89 | } |
| 90 | |
| 91 | updated(changedProperties: Map<string, any>) { |
| 92 | if (changedProperties.has('startText')) { |
| 93 | this.editorState = getEditorState(this.startText || '', this.editorStateType, [], !this.readOnly); |
| 94 | |
| 95 | if (this.editorView) { |
| 96 | this.editorView.setState(this.editorState); |
| 97 | } else { |
| 98 | this.editorView = new EditorView({ |
| 99 | state: this.editorState, |
| 100 | root: this.shadowRoot || undefined, |
| 101 | parent: this.shadowRoot?.getElementById(this.editorId) || undefined, |
| 102 | }); |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | async copyCode() { |
| 108 |
nothing calls this directly
no test coverage detected