🚀 New Feature
- #1715 Anchors: the new
anchorplugin's Insert anchor button puts<a id="name"></a>at the caret, refusing a name with spaces or one already used. Each anchor shows as a marker in the editor only, and a click on it opens a form to rename the anchor, which updates the links to it, or to remove it. Older empty<a name>anchors count too and keepname. The link popup's URL field lists the document's anchors in a dropdown under "On this page", and picking one fills in its#name. Thanks @brendon. - The default toolbar gains the Insert anchor button, in the
insertgroup, so every editor with the defaultbuttonsshows it.removeButtons: ['anchor']leaves it out. - Empty
<a id>and<a name>anchors already in a document now show a marker in the editor, and a click on one opens the anchor form.disablePlugins: ['anchor']leaves them as they were. - #1752 Upload and file browser handlers get
items, one{ file, isImage, name }object per file.uploader.processand servers can answer withitemsinstead offilesandisImages. Thanks @brendon. - #1741 A button in an element's popup (cells, image, media, link, the selection toolbar) leaves that popup open beside its element and closes only the list it opened; the popup still closes on a click outside, on a key that moves the caret off the element and when a button removes the element. The new option
toolbarInlineKeepOpen(defaulttrue) turns it off.
💥 Breaking Change
- Inline popups no longer close after one of their buttons runs. Set
toolbarInlineKeepOpen: falseto get the old behaviour, where every button firedcloseAllPopups.
🏠 Internal
- #1752 Deprecated:
files,isImagesandfileNamesin the data upload and file browser handlers get. Useitems. They will be removed in 5.0. Until then they win overitemswhilefilesis set, so a handler that editsitemsand passes the data on to a default handler deletesfilesfirst. Thanks @brendon.
🐛 Bug Fix
- #1768 A double click past the end of a line, or a drag from there to the start of the next, no longer selects only the line break (the caret goes to the end of the line and the selection toolbar does not open), and a drag that does not pass a video or iframe on its own line leaves it out; a selected video gets the selection tint over its own box.