🐛 Bug Fix
- #1601
history.timeoutnow groups changes into undo steps. A step holds the changes made withinhistory.timeout(1000ms by default) of its first change, so typing is undone about a second at a time instead of a letter or two. The option had had no effect since 3.4.1. Thanks @brendon. - #1605 Blocks pasted or inserted in the middle of a paragraph or heading now split it at the caret instead of going after it, and (#1606) a horizontal line inserted in a list item or table cell stays in it, with the caret right after it. Thanks @brendon.
- #1603 Inserting a table from the toolbar in a table cell, a list item or a
<div>now puts the new table inside it, instead of splitting the table, list or<div>in two. Thanks @brendon. - #1608 A heading, quote or list made in an empty table cell no longer gets an empty second line. Thanks @brendon.
- #1593 Cells added by Insert row, Insert column and Tab, a cell merged from empty cells and an emptied cell now hold a
<br>, so they keep their height whencleanHTML.fillEmptyParagraphis off. Tab into an empty cell puts the caret in it. Thanks @brendon. - #1595 After Delete row or Delete column, the caret moves to the nearest remaining cell. It was left between rows, where Safari typed into the table's markup. Thanks @brendon.
- #1597 Deleting a table's last row or column deletes the table instead of leaving an empty one, and deleting a table puts the caret where it was. Thanks @brendon.
- #1591 Enter at the start or end of a link no longer leaves an empty link on one of the lines, and in Safari the text typed next goes on the new line. Thanks @brendon.
- #1589 Pasting from Google Docs no longer puts the pasted blocks inside a
<strong>, and a cleaned paste (INSERT_CLEAR_HTML) of Docs content is no longer all bold. Thanks @brendon. - #1587
<b>and<i>in a value set witheditor.valueare now replaced with<strong>and<em>straight away, so Bold and Italic recognise them. When the background cleaner replaces old tags that arrive later, as in pasted content, the caret stays where it was. Thanks @brendon. - #1583 In Safari, Backspace removes a clicked embed, and Delete and Backspace no longer throw when the editor has focus but no selection. Thanks @brendon.
- #1584 Clicking an embed no longer rewrites its
widthandheightattributes, which became pixel values withpx; resizing it writes plain numbers. Thanks @brendon. - #1576 Delete and Backspace remove a clicked video with its wrapper, instead of joining the next line to it. A clicked media wrapper is now selected, as a clicked image is. Thanks @brendon.
- #1575 The inline popup for an image, embed or video opens clear of the resize frame's handles, which it used to cover. Thanks @brendon.
- #1610 In iframe mode a click on an embedded video selects it, as it does without
iframe: true, instead of going to the player. Thanks @brendon. - #1599 A YouTube or Vimeo link pasted as an embed now goes in its
mediaWrapperswrapper and is aligned withmediaDefaultAlign, as the video popup's embed is. Thanks @brendon. - #1612 A click on a video or audio in a
mediaWrapperswrapper selects it and opens the media popup, as one injodit-mediadoes, rather than playing it. Thanks @brendon. - #1613 The media popup opens beside the media in a
mediaWrapperswrapper, not at the edge of a wrapper that fills the line. Thanks @brendon. - #1614 The video popup's Upload tab label is no longer cut off. Thanks @brendon.