setContentSerializer static method

void setContentSerializer(
  1. dynamic serializerFunction,
  2. JsObject context
)

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. Dynamic 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). js.Proxy context, the aAloha editable context ,usually Aloha.Editable

Implementation

static void setContentSerializer(
    dynamic serializerFunction, js.JsObject context) {
  context['contentSerializer'] = serializerFunction;
}