TinyMCE:API/tinymce.dom.Event/cancel

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: cancel

Summary

Cancels an event for both bubbeling and the default browser behavior.

Syntax

<bool> cancel(<Event> e)

Parameters

e
Event object to cancel.

Returns

Always false.

Examples

// Cancels all mousedown events in the active editor
tinyMCE.activeEditor.onMouseDown.add(function(ed, e) {
   return tinymce.dom.Event.cancel(e);
});
Personal tools