Namespace: Aloha.Editable

Aloha Defined in: editable.js.

Class Methods

Class Method Detail

getContentSerializer
Gets the content serializer function.
Returns:
!Function The serializer function.
See:
Aloha.Editable.setContentSerializer()
setContentSerializer

Sets the content serializer function.

The default content serializer will just call the jQuery.html() function on the editable element (which gets the innerHTML property).

This method is a static class method and will affect the result of editable.getContents() for all editables that have been or will be constructed.

Parameters:
!Function serializerFunction
A function that accepts a DOM element and returns the serialized XHTML of the element contents (excluding the start and end tag of the passed element).
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 08 2014 13:30:50 GMT+0100 (CET)