🚀 New Feature
- #1530 The media popup has an Edit button that opens a video properties dialog: the size, poster, Autoplay, Loop, Muted and Controls of a video, the size of an embed and the playback settings of audio. Autoplay also mutes the video and lets it play inline, and Controls can only be turned off while Autoplay is on. New
videoPropertiesplugin, opened witheditor.events.fire('openVideoProperties', media). Thanks @brendon. - #1530 The media popup has a Replace button that opens the video popup's Upload, Link and Code tabs. What's inserted takes the old media's place and keeps its classes, size and playback settings, in one undo step. Thanks @brendon.
- #1530 Videos can be resized with the resize frame:
allowResizeTagsandresizer.useAspectRationow includevideo. A video with no height of its own is given only a width, so it keeps its ratio. Media injodit-mediaor in amediaWrapperswrapper is resized through its wrapper, and an embed through its ownjoditwrapper. Thanks @brendon.
🐛 Bug Fix
- #1577 The resize frame stays on its image, table or embed while the editor's content or the page scrolls, clipped at the edge of the editing area, instead of being hidden on the first scroll. Thanks @brendon.
- #1620 Pressing on an embed or a video in a wrapper no longer paints its whole line with the selection highlight in Safari. Thanks @brendon.
🏠 Internal
imageAlignClassesis deprecated in favour ofalignClasses.img, which takes the same value; whenalignClasses.imgisn't set the editor copiesimageAlignClassesinto it, so existing configs keep working. Thanks @brendon.