Skip to content

v0.17.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@bago bago released this 22 Mar 13:54
· 205 commits to master since this release

Post-release notes

We have feedback of flickering issues while editing in Safari (see #430), so we don't recommend using this in production.

New

  • Added image tool to browser the gallery
  • Improvements on the TinyMCE binding:
    • Option ko.bindingHandlers.wysiwyg.getContentOptions = {}; to use standard getContent instead of "raw" getContent (it could work better) with regard to empty contents (see #428 and #426).
    • Option ko.bindingHandlers.wysiwyg.useTarget = true; to stop creating id attributes for every editable element and run tinymce against the dom element instead of the selector.
    • Option ko.bindingHandlers.wysiwyg.initializingClass = 'yourclass'; defaulting to "wysiwyg-loading" that will add the class to the element during the tinymce initialization.
    • Option ko.bindingHandlers.wysiwyg.removeSelectionOnBlur = false; defaulting to "true" that will force browser selection to be emptied when you unfocus an editor (set this to false to revert to the old behaviour).
    • Option ko.bindingHandlers.wysiwyg.emptyClass = 'emptyclass'; defaulting to "wysiwyg-empty", that will add the class on contents with no "text" (remove html tags and trims to check this), so you can add CSS to add behaviour. By default we don't include styles related to this class.
    • Use inline-block for inline editables, force a min-width, add hacks to prevent element from collapsing + new debug console error when wysiwyg is started on inline elements (inline-block or block support is better)
    • Also added some CSS to prevent the editable to be clickable during initialization and show a fade animation in that timeframe.

Fix

  • Revert dependency declaration for load-image and canvas to keep npm3 compatibility