@ooxml-sanad/editor
v0.2.0
Published
Caret, selection, input proxy, IME, clipboard, undo, accessibility mirror.
Readme
@ooxml/editor
Editing runtime: caret, selection, input proxy, IME composition, clipboard, undo/redo, and accessibility mirror.
Install
npm install @ooxml/editorOverview
Provides the interactive editing layer on top of @ooxml/layout and @ooxml/paint:
- Caret — Cursor positioning and blinking
- Selection — Range selection with geometry calculation
- Input proxy — Transparent input element management
- IME — Input method editor composition handling
- Clipboard — Cut/copy/paste with format conversion
- Commands — Command pattern with undo/redo history
- Mutation API — Document modification with layout invalidation
- Hit testing — Point-to-document-position mapping
- Navigation — Keyboard navigation (arrow keys, Home/End, Ctrl+arrow)
- Accessibility — Screen reader mirror DOM
- Paint scheduler — Coalesced repaint scheduling
- Performance — Input latency tracking
Usage
import { createEditor, createSelectionModel } from '@ooxml/editor';License
MIT
