TinyMCE:API/tinymce.Editor/onRemove

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Event: onRemove

Summary

This event gets executed when a editor instance is removed from the document.

Syntax

event_callback(<tinymce.Editor> ed)

Parameters

ed
Sender object/Editor instance reference.

Examples

// Adds an observer to the onRemove event using tinyMCE.init
tinyMCE.init({
   ...
   setup : function(ed) {
      ed.onRemove.add(function(ed) {
          console.debug('Editor was removed: ' + ed.id);
      });
   }
});

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

ed.onRemove.add(function(ed) {
   console.debug('Editor was removed: ' + ed.id);
});

ed.render();
Personal tools