tinymce

Core namespace with core functionality for the TinyMCE API all sub classes will be added to this namespace/object.

Examples

// Using each method
tinymce.each([1, 2, 3], function(v, i) {
  console.log(i + '=' + v);
});

// Checking for a specific browser
if (tinymce.isIE)
  console.log("IE");

Properties

Property Defined By
Absolute baseURI for the installation path of TinyMCE.
tinymce
Collection of editor instances.
tinymce
Collection of language pack data.
tinymce
Currently active editor instance.
tinymce
Major version of TinyMCE build.
tinymce
Major version of TinyMCE build.
tinymce
Release date of TinyMCE build.
tinymce
Constant that is true if the browser is Opera.
tinymce
Constant that is true if the browser is WebKit (Safari/Chrome).
tinymce
Constant that is true if the browser is IE.
tinymce
Constant that is true if the browser is IE 6 or older.
tinymce
Constant that is true if the browser is IE 7.
tinymce
Constant that is true if the browser is IE 8.
tinymce
Constant that is true if the browser is IE 9.
tinymce
Constant that is true if the browser is Gecko.
tinymce
Constant that is true if the os is Mac OS.
tinymce
Constant that is true if the runtime is Adobe Air.
tinymce
Constant that tells if the current browser is an iPhone or iPad.
tinymce
Constant that is true if the current browser is running on iOS 5 or greater.
tinymce

Events

Event Defined By
Fires when a new editor instance is added to the tinymce collection.
tinymce
Fires when an editor instance is removed from the tinymce collection.
tinymce

Methods

Method Defined By
Initializes a set of editors.
tinymce
Returns a editor instance by id.
tinymce
Returns a editor instance by id.
tinymce
Adds an editor instance to the editor collection.
tinymce
Removes a editor instance from the collection.
tinymce
Executes a specific command on the currently active editor.
tinymce
Executes a command on a specific editor by id.
tinymce
Calls the save method on all editor instances in the collection.
tinymce
Adds a language pack, this gets called by the loaded language files like en.
tinymce
Checks if a object is of a specific type for example an array.
tinymce
Makes a name/object map out of an array with names.
tinymce
Performs an iteration of all items in a collection such as an object or array.
tinymce
Creates a new array by the return value of each iteration function call.
tinymce
Filters out items from the input array by calling the specified function for each item.
tinymce
Returns the index of a value in an array, this method will return -1 if the item wasn't found.
tinymce
Extends an object with the specified other object(s).
tinymce
Removes whitespace from the beginning and end of a string.
tinymce
Creates a class, subclass or static singleton.
tinymce
Executed the specified function for each item in a object tree.
tinymce
Creates a namespace on a specific object.
tinymce
Resolves a string and returns the object from a specific structure.
tinymce
Adds an unload handler to the document.
tinymce
Removes the specified function form the unload handler list.
tinymce
Splits a string but removes the whitespace before and after each value.
tinymce