onPostProcess

public event onPostProcess(sender:tinymce.Editor, obj:Object)
Fires when the Serializer does a postProcess on the contents.

Examples

// Adds an observer to the onPostProcess event using tinyMCE.init
tinyMCE.init({
   ...
   setup : function(ed) {
      ed.onPostProcess.add(function(ed, o) {
           // Remove all paragraphs and replace with BR
           o.content = o.content.replace(/<p[^>]+>|<p>/g, '');
           o.content = o.content.replace(/<\/p>/g, '<br />');
      });
   }
});

Params

Name Type Description
sender tinymce.Editor Editor instance.
obj Object PreProcess object.