(sharedRoot: Y.XmlText, editorRoot: Node, op: RemoveTextOperation)
| 3 | import { getYTarget } from '@editablejs/yjs-transform' |
| 4 | |
| 5 | export function removeText(sharedRoot: Y.XmlText, editorRoot: Node, op: RemoveTextOperation): void { |
| 6 | const { yParent: target, textRange } = getYTarget(sharedRoot, editorRoot, op.path) |
| 7 | target.delete(textRange.start + op.offset, op.text.length) |
| 8 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…