react-v1.11.0
·
37 commits
to stable
since this release
What's New
- Textbox content editing β Click to edit text inside textboxes in body, headers, footers, and table cells with full selection and caret support.
- Zoom modes and fit-width β Choose zoom mode (
manualorfit-widthfor auto-fit) and read state, calculations, bounds, and viewport metrics fromui.zoom. - Viewport change events β Listen for
viewport-changewhen the container resizes to receive document width, available width, and calculated fit-zoom. - Font family combobox β Search for fonts in the toolbar by name and see per-document options with substitution evidence.
- Comments activation API β Highlight comments without scrolling using
ui.comments.setActive(), and access the captured selection from pending comment events. - Text range viewport rects β Pass Document API text targets to
ui.viewport.getRect()to get painted rects for overlay positioning. - Scroll container access β Call
ui.viewport.getScrollContainer()to find the element that actually scrolls, or null for window scroll. - Sidebar geometry updates β
ui.viewport.observefires when the comments rail opens or closes. - TOC interactions β Hover highlights sections in the table of contents, and click navigates to them.
Improvements
- Column balancing β Multi-column sections balance at continuous section breaks, matching Word's behavior.
- Grouped tracked changes β Inline cell changes inside a whole-table tracked change now group as one review item.
- Line break serialization β Newlines in text mutations serialize as
<w:br/>and round-trip without loss. - Tab and soft-break carets β Tab carets anchor to line top, and soft-break carets position at line start with alignment awareness.
- Page break suppression β Removed blank pages when
pageBreakBeforeappears directly after an explicit page break. - Textbox table rendering β Tables inside textboxes render with correct alignment and text flow.
- Block identity repair β Duplicate block identities fix automatically on compile.
- Font substitution evidence β Font reports carry per-face evidence (metric-safe, visual-only, glyph exceptions).
Fixes
- Empty table cell selection β Dragging a selection into an empty cell no longer collapses.
- Multiline selection rendering β Interior lines of multi-line selections render full-width highlights.
- Empty cell geometry β Empty cell paragraphs resolve to a valid position for interaction.
- Image alpha on export β Images with transparency now preserve alpha on DOCX export.
- Linebreak text selection β Search spans and selections spanning text+linebreak+text now coalesce correctly.
- Font toolbar updates β Toolbar rebuilds when document fonts change or editor switches.