TinyMCE:API/tinymce.Editor/onPostRender

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Event: onPostRender

Summary

This event gets executed after the UI has been rendered. This is when the different UI controls will bind their event listeners to the DOM.

Syntax

event_callback(<tinymce.Editor> ed, <tinymce.ControlManager> cm)

Parameters

ed
Sender object/Editor instance reference.
cm
ControlManager instance used to render the UI controls.

Examples

// Adds an observer to the onPostRender event using tinyMCE.init
tinyMCE.init({
   ...
   setup : function(ed) {
      ed.onPostRender.add(function(ed, cm) {
          console.debug('After render: ' + ed.id);
      });
   }
});

// Adds an observer to the onPostRenderevent using the render method
var ed = new tinymce.Editor('someid', {
   .. Some settings
});

ed.onPostRender.add(function(ed, cm) {
   console.debug('After render: ' + ed.id);
});

ed.render();
Personal tools