Method
changePicker
(view: EditorView, canBeEdited: boolean)
Source from the content-addressed store, hash-verified
| 391 | } |
| 392 | |
| 393 | changePicker(view: EditorView, canBeEdited: boolean): void { |
| 394 | const doms = view.contentDOM.querySelectorAll("input[type=color]"); |
| 395 | doms.forEach((inp) => { |
| 396 | const input = inp as HTMLInputElement; |
| 397 | if (canBeEdited) { |
| 398 | input.removeAttribute("disabled"); |
| 399 | } else { |
| 400 | input.setAttribute("disabled", ""); |
| 401 | } |
| 402 | }); |
| 403 | } |
| 404 | |
| 405 | destroy(): void { |
| 406 | if (this.flushTimer) { |
Tested by
no test coverage detected