Changes with Aloha.Editor 0.22.1


Feature

core: Added method Aloha.getEditableHost() to get the editable, that contains the given jQuery object.


Feature

repository browser: If one of the repositories runs into a timeout during query, the browser will now call the method handleTimeout().


Feature

abbr-plugin: We added a remove abbreviation button to make the functionality more consistent with the wai-lang plugin.


Feature

metaview: We now also display HR tags in the metaview. We also removed the dependency to the flag-icons plugin.


Feature

list-plugin: When transforming a list from ul to ol or back all sub elements that are selected are also transformed.


Enhancement

Aloha Editor will no longer annotate end
tags, which
are used to prop up empty block-level elements that would be
otherwise rendererd invisbly, with the “aloha-end-br” class.
This should result in cleaner markup.


Enhancement

Aloha Blocks will now publish a message on the channel “aloha.blocks.initialized” when a block is fully initialized.


Enhancement

The Block Plugin now allows you to configure your own root tags for block creation. Every time you create a new block, the block plugin will check if its root node is supported. You may now change the roots nodes and use your own list root tags. If you want to use Aloha Blocks drag‘n drop functionalities we strongly suggest that you do not use other root tags than div and span. See the guides at http://www.aloha-editor.org/guides/plugin_block.html for further information.


Bugfix

Rangy Core: Patches Rangy to include a workaround for html5shiv‘s
violation of document.createElement().

As detailed in this discussion:
https://github.com/aFarkas/html5shiv/issues/64: html5shiv monkey
patches the native document.createElement() function in browsers like
IE8 and older, which do no support HTML5. However, it does in a way
that seriously deviates from the contract that the native
document.createElement() function establishes, because it creates
elements which have non-null siblings and parentNode.

This violation causes Rangy to throw an exception in IE8 or IE7.

The workaround prevents this error by detaching the element that was
created via html4shiv‘s implementation of document.createElement() from
its parentNode, near the critical area of code where the exception
occurs.


Bugfix


Bugfix

Added missing icon for the block plugins toggledragdrop button


Bugfix

Moved call to execCommand(‘enableObjectResizing‘, false, false) to init method of editable. Otherwise, FF 15 (and above) will throw a JS error, if execCommand(‘enableObjectResizing‘, false, false) is called with no contenteditable elements found in the page.


Bugfix

Fixed Javascript error when doing searches in the repository browser (which caused to search to not be done).


Bugfix

characterpicker-plugin: Fixed a bug that when inserting a special character using the character picker plugin, the focus would be sometimes set to the start of the active editable (e.g. when inserting into a table cell).


Bugfix

listenforcer-plugin: Fixed a bug that would only mark the first editable matching a configured selector as an enforced editable. Also when leaving an editable, we now remove the added list properly.


Bugfix

core: Sometimes when putting the cursor at the first position of an editable, the cursor would vanish or be put outside the editable. This has been fixed.