Class | tinymce |
Type | Singleton |
Property | Defined By |
---|---|
Currently active editor instance.
|
tinymce |
Absolute baseURI for the installation path of TinyMCE.
|
tinymce |
editors : Object
Collection of editor instances.
|
tinymce |
i18n : Object
Collection of language pack data.
|
tinymce |
isAir : Boolean
[static] Constant that is true if the runtime is Adobe Air.
|
tinymce |
isGecko : Boolean
[static] Constant that is true if the browser is Gecko.
|
tinymce |
isIDevice : Boolean
[static] Constant that tells if the current browser is an iPhone or iPad.
|
tinymce |
isIE : Boolean
[static] Constant that is true if the browser is IE.
|
tinymce |
isIE6 : Boolean
[static] Constant that is true if the browser is IE 6 or older.
|
tinymce |
isIE7 : Boolean
[static] Constant that is true if the browser is IE 7.
|
tinymce |
isIE8 : Boolean
[static] Constant that is true if the browser is IE 8.
|
tinymce |
isIE9 : Boolean
[static] Constant that is true if the browser is IE 9.
|
tinymce |
isIOS5 : Boolean
[static] Constant that is true if the current browser is running on iOS 5 or greater.
|
tinymce |
isMac : Boolean
[static] Constant that is true if the os is Mac OS.
|
tinymce |
isOpera : Boolean
[static] Constant that is true if the browser is Opera.
|
tinymce |
isWebKit : Boolean
[static] Constant that is true if the browser is WebKit (Safari/Chrome).
|
tinymce |
majorVersion : String
[static] Major version of TinyMCE build.
|
tinymce |
minorVersion : String
[static] Major version of TinyMCE build.
|
tinymce |
releaseDate : String
[static] Release date of TinyMCE build.
|
tinymce |
Method | Defined By |
---|---|
Adds an editor instance to the editor collection.
|
tinymce |
addI18n(p:String, o:Object):void
Adds a language pack, this gets called by the loaded language files like en.
|
tinymce |
addUnload(f:function, s:Object):function
[static] Adds an unload handler to the document.
|
tinymce |
create(s:String, p:Object, root:Object):void
[static] Creates a class, subclass or static singleton.
|
tinymce |
createNS(n:String, o:Object):Object
[static] Creates a namespace on a specific object.
|
tinymce |
each(o:Object, cb:function, s:Object):void
[static] Performs an iteration of all items in a collection such as an object or array.
|
tinymce |
execCommand(c:String, u:Boolean, v:String):Boolean
Executes a specific command on the currently active editor.
|
tinymce |
execInstanceCommand(id:String, c:String, u:Boolean, v:String):Boolean
Deprecated: Use the execCommand method of a editor instance instead.
|
tinymce |
explode(s:string, d:string):void
[static] Splits a string but removes the whitespace before and after each value.
|
tinymce |
extend(obj:Object, ext..n:Object):Object
[static] Extends an object with the specified other object(s).
|
tinymce |
Returns a editor instance by id.
|
tinymce |
getInstanceById(id:String):Editor
Deprecated: Use get method instead.
|
tinymce |
grep(a:Array, f:function):Array
[static] Filters out items from the input array by calling the specified function for each item.
|
tinymce |
inArray(a:Array, v:Object):Number/String
[static] Returns the index of a value in an array, this method will return -1 if the item wasn't found.
|
tinymce |
init(s:Object):void
Initializes a set of editors.
|
tinymce |
is(o:Object, t:string):Boolean
[static] Checks if a object is of a specific type for example an array.
|
tinymce |
isArray(obj:Object):boolean
[static] Returns true/false if the object is an array or not.
|
tinymce |
makeMap(items:Array/String, delim:String, map:Object):Object
[static] Makes a name/object map out of an array with names.
|
tinymce |
map(a:Array, f:function):Array
[static] Creates a new array by the return value of each iteration function call.
|
tinymce |
Removes a editor instance from the collection.
|
tinymce |
removeUnload(f:function):function
[static] Removes the specified function form the unload handler list.
|
tinymce |
resolve(n:String, o:Object):Object
[static] Resolves a string and returns the object from a specific structure.
|
tinymce |
triggerSave():void
Calls the save method on all editor instances in the collection.
|
tinymce |
trim(s:String):String
[static] Removes whitespace from the beginning and end of a string.
|
tinymce |
walk(o:Object, f:function, n:String, s:String):void
[static] Executed the specified function for each item in a object tree.
|
tinymce |
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 |
public editors : Object
public i18n : Object
public static isAir : Boolean
public static isGecko : Boolean
public static isIDevice : Boolean
public static isIE : Boolean
public static isIE6 : Boolean
public static isIE7 : Boolean
public static isIE8 : Boolean
public static isIE9 : Boolean
public static isIOS5 : Boolean
public static isMac : Boolean
public static isOpera : Boolean
public static isWebKit : Boolean
public static majorVersion : String
public static minorVersion : String
public static releaseDate : String
public
function add(editor:Editor):Editor
editor:Editor | Editor instance to add to the collection. |
public
function addI18n(p:String, o:Object):void
p:String | Prefix for the language items. For example en.myplugin |
o:Object | Name/Value collection with items to add to the language group. |
public static
function addUnload(f:function, s:Object):function
f:function | Function to execute before the document gets unloaded. |
s:Object | Optional scope to execute the function in. |
public static
function create(s:String, p:Object, root:Object):void
s:String | Class name, inheritage and prefix. |
p:Object | Collection of methods to add to the class. |
root:Object | Optional root object defaults to the global window object. |
public static
function createNS(n:String, o:Object):Object
n:String | Namespace to create for example a.b.c.d. |
o:Object | Optional object to add namespace to, defaults to window. |
public static
function each(o:Object, cb:function, s:Object):void
o:Object | Collection to iterate. |
cb:function | Callback function to execute for each item. |
s:Object | Optional scope to execute the callback in. |
public
function execCommand(c:String, u:Boolean, v:String):Boolean
c:String | Command to perform for example Bold. |
u:Boolean | Optional boolean state if a UI should be presented for the command or not. |
v:String | Optional value parameter like for example an URL to a link. |
public
function execInstanceCommand(id:String, c:String, u:Boolean, v:String):Boolean
id:String | Editor id to perform the command on. |
c:String | Command to perform for example Bold. |
u:Boolean | Optional boolean state if a UI should be presented for the command or not. |
v:String | Optional value parameter like for example an URL to a link. |
public static
function explode(s:string, d:string):void
s:string | String to split. |
d:string | Delimiter to split by. |
public static
function extend(obj:Object, ext..n:Object):Object
obj:Object | Object to extend with new items. |
ext..n:Object | Object(s) to extend the specified object with. |
public
function get(id:String/Number):Editor
id:String/Number | Editor instance id or index to return. |
public
function getInstanceById(id:String):Editor
id:String | Editor instance id to return. |
public static
function grep(a:Array, f:function):Array
a:Array | Array of items to loop though. |
f:function | Function to call for each item. Include/exclude depends on it's return value. |
public static
function inArray(a:Array, v:Object):Number/String
a:Array | Array/Object to search for value in. |
v:Object | Value to check for inside the array. |
public
function init(s:Object):void
s:Object | Settings object to be passed to each editor instance. |
public static
function is(o:Object, t:string):Boolean
o:Object | Object to check type of. |
t:string | Optional type to check for. |
public static
function isArray(obj:Object):boolean
obj:Object | Object to check. |
public static
function makeMap(items:Array/String, delim:String, map:Object):Object
items:Array/String | Items to make map out of. |
delim:String | Optional delimiter to split string by. |
map:Object | Optional map to add items to. |
public static
function map(a:Array, f:function):Array
a:Array | Array of items to iterate. |
f:function | Function to call for each item. It's return value will be the new value. |
public
function remove(e:Editor):Editor
e:Editor | Editor instance to remove. |
public static
function removeUnload(f:function):function
f:function | Function to remove from unload handler list. |
public static
function resolve(n:String, o:Object):Object
n:String | Path to resolve for example a.b.c.d. |
o:Object | Optional object to search though, defaults to window. |
public
function triggerSave():void
public static
function trim(s:String):String
s:String | String to remove whitespace from. |
public static
function walk(o:Object, f:function, n:String, s:String):void
o:Object | Object tree to walk though. |
f:function | Function to call for each item. |
n:String | Optional name of collection inside the objects to walk for example childNodes. |
s:String | Optional scope to execute the function in. |