()
| 59 | }; |
| 60 | |
| 61 | function isContentEditableBeingEdited(): boolean { |
| 62 | const activeElement = document.activeElement; |
| 63 | return ( |
| 64 | activeElement && |
| 65 | activeElement.getAttribute("contenteditable") !== null && |
| 66 | activeElement.getAttribute("contenteditable") !== "false" |
| 67 | ); |
| 68 | } |
| 69 | |
| 70 | function canEnablePaste(): boolean { |
| 71 | const activeElement = document.activeElement; |