What's New
Release notes and changelog for all packages.0.7.16
New Features
RichTextEditorToolbar's Link button, and Cmd/Ctrl+K in the editor, open a popover anchored to the button instead of a modal dialog. The popover holds one URL field, applied with Enter, and Apply, Remove (when the selection is in a link), and Cancel icon buttons with tooltips. It is not modal: Escape or Cancel closes it and returns focus and the selection to the editor, and a URL that cannot be linked shows an error under the field, which keeps focus. The URL rules (sanitizeUrl),hasNewTabLinks, andpromptForUrlare unchanged; withpromptForUrlthe Link button opens no popover, as it opened no dialog. (#8717) The popover opens above the toolbar and flips below it only when there is no room above. Apply and Cancel use the sharedcheckandcloseicons, so a theme that restyles those icons restyles them too; Remove's glyph is fixed artwork.RICHTEXT_ICON_KEYSis unchanged.
Fixes
- Pasting into a
RichTextEditortable no longer drops the paste or empties cells. A pasted table fills the cells one by one from the caret's cell, or within the selected cells. A merged cell in it fills only the cell where it starts instead of emptying the cells it covered, and a table whose rows differ in length arrives whole. A table pasted together with other content, as a web page copies it, goes into the cell as text instead of being discarded. (#8577) - A link typed without a scheme, whose host has a dot or is
localhost, followed by a port, such asexample.com:8080,www.example.com:8080/docsorlocalhost:3000, now gets the defaulthttps://likeexample.comdoes, instead of being read as an unknown scheme and turned intoabout:blank(#11042)
Contributors
Thanks to everyone who contributed to this release:
0.7.15
Fixes
- useLinkify and RichTextEditorAutoLinkPlugin: email detection now takes linear time. A long word with no email in it, such as a pasted hash or base64 string, no longer freezes the page for seconds. Valid email addresses link as before, with three exceptions. In the rich-text editor, an address directly after a period no longer links, and a quoted local part ends at the next quote. In useLinkify, a fragment glued to the end of an earlier address no longer links on its own. (#11306)
- RichTextEditor: importing Markdown no longer freezes the page on a block that has a backtick and, below its first line, a line with a
|, a dash and a long run of spaces. The check for a table delimiter row now takes linear time; which lines count as delimiter rows is unchanged. (#11338)
Contributors
Thanks to everyone who contributed to this release:
0.7.14
No changes in this release.
0.7.13
No changes in this release.
0.7.12
New Features
- In
RichTextEditor, Tab and Shift+Tab in a code block indent and outdent every line the selection touches, by the indent the block already uses (a tab when one of its lines starts with a tab, otherwise the fewest leading spaces of any indented line, kept between 2 and 8, otherwise 2 spaces). The selection stays on the same characters and each press is one undo step. Tab used to put a tab character in place of the selection, and Shift+Tab did the same. Escape then Tab still moves focus out of the editor. (#8579)
Fixes
- Declare renderer-owned DOM boundaries so decorator overlays mount outside managed content without changing safe inline hosting. RichTextEditor also mirrors its
dirprop onto the wrapper around the editable surface, so the editing surface and its content blocks, the placeholder, UI rendered throughplugins, and relocated overlays followdir; the editing surface previously kept the surrounding direction. (#7633) RichTextEditorAutoLinkPluginno longer turns a URL inside a code block into a link. A URL typed or pasted into a code block, or one in an imported fence, now stays code. Before, the link nested inside the code block, and the exported Markdown fence lost it. (#10664)- In
RichTextEditor, pasting rich content into a code block inserts plain text: the plain text on the clipboard, or, when there is none, each pasted block as one line of its text. Headings, lists, tables, and formatting used to land inside the code block, where the Markdown export wrote them as plain lines of the fence, so the document read back differently from what the editor showed. (#8580) - A link inside a disabled
RichTextEditorno longer navigates, shows no pointer cursor, and is not a tab stop. Before, a disabled editor's links acted as live links: a click or Enter opened them, and Tab stopped on each one. (#10679) - TextInput, TextArea, NumberInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, Tokenizer, Typeahead, PowerSearch, ChatComposer and RichTextEditor: when the primary pointer is coarse (a phone or tablet), the focus look shows at once, with no fade, so a tapped field repaints once while the keyboard rises. With a fine primary pointer, such as a mouse, a click and the Tab key keep the fade. ChatComposer's focus depth also shows at once under reduced motion, as the other fields' focus look already does. (#10611)
Documentation
RichTextView,RichTextEditorToolbarandRichTextEditorAutoLinkPlugineach ship a doc file, soastryx component,astryx discoverand the docs list their props, defaults and usage. (#10407)- A source comment in the editor theme now says that core
Markdowngives each block the direction of its own text, while the editor keeps blocks in the surface's direction. (#10293) - RichTextEditor documents how to switch between reading and editing in place without reflow: set the field's inset and border outside the reading width with
xstyle, so every paragraph keeps its line count across the switch. A standalone editor keeps its form width. (#10429)
Contributors
Thanks to everyone who contributed to this release: