Type Editor / @type-editor/dom-change-util / parse-change/should-create-type-over-change
parse-change/should-create-type-over-change
Functions
| Function | Description |
|---|---|
Checks if a change should be created for typing over a selection. When typing with a selection active, the editor should replace the selected content. However, sometimes no DOM change is detected (perhaps because the browser hasn't yet processed the change). This function detects if we're in that situation and should create a synthetic change. The conditions checked are:
|