Bitrix Site Manager

oBXEditorUtils.addContentParser

void
oBXEditorUtils.addContentParser(
   function handler  
);

The oBXEditorUtils.addContentParser method adds a specified handler function to which the document content will be passed to be processed, in the HTML format.
A handler function added using this method will process the document content at the load time, and when switching from the HTML mode to WYSIWYG.

Parameters

Parameter Description
handler Globally declared handler function.

A handler receives a string with the content. The handler function returns a string if any change took place, or false otherwise.