|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--TinyMCE_Engine
Defined in TinyMCE_Engine.class.js
Field Summary | |
Object |
buttonMap
|
Object |
configs
|
Object |
currentConfig
|
Object |
dialogCounter
|
Object |
eventHandlers
|
Object |
idCounter
|
Object |
instances
|
Object |
isGecko
|
Object |
isLoaded
|
Object |
isMac
|
Object |
isMSIE
|
Object |
isMSIE5
|
Object |
isMSIE5_0
|
Object |
isNS7
|
Object |
isNS71
|
Object |
isOpera
|
Object |
isSafari
|
Object |
loadedFiles
|
Object |
loadedPlugins
|
Object |
majorVersion
|
Object |
minorVersion
|
Object |
plugins
|
Object |
releaseDate
|
Object |
switchClassCache
|
Object |
themes
|
Object |
windowArgs
|
Constructor Summary | |
TinyMCE_Engine
()
Core engine class for TinyMCE, a instance of this class is available as a global called tinyMCE. |
Method Summary | |
HTMLElement
|
_getElementById(<string> id)
Returns a element by id, this will also search the form names to match the id. |
Object
|
accessibleEventHandler(<DOMEvent> e)
Accessibility handler that gets executed when the user hits a key in a select element. |
void
|
addButtonMap(<string> m)
Adds a list of buttons available in the tiled button image used by the button_tile_map option. |
void
|
addEvent(<HTMLElement> o, <string> n, <function> h)
Adds a event handler function to the specified object. |
void
|
addEventHandlers(<string> editor_id)
Adds the handleEvent function to the specified editor instance. |
void
|
addMCEControl(<HTMLElement> replace_element, <string> form_element_name, <DOMDocument> target_document)
Adds a TinyMCE editor control instance to a specific form element. |
void
|
addPlugin(n, <TinyMCE_Plugin> p)
Adds the specified plugin to the list of loaded plugins, this will also setup the baseURL property of the plugin. |
Object
|
addSelectAccessibility(<DOMEvent> e, <HTMLElement> s, <DOMWindow> w)
Adds accessibility keydown handler to the specified select element. |
void
|
addTheme(&l<TinyMCE_Theme> t;string> n, t)
Adds the specified theme in to the list of loaded themes. |
void
|
addToLang(<string> prefix, <Array> ar)
Adds language items to the global language array. |
string
|
applyTemplate(<string> h, <Array> as)
Replaces language, args and settings variables in a HTML string. |
boolean
|
callFunc(<<<Array> a href="TinyMCE_Control.html">TinyMCE_Control> ins, <string> p, <string> n, <int> m, a)
Executes callback chain. |
void
|
cancelEvent(<DOMEvent> e)
Cancels the specified event, this will disable the event from be passed to other listeners in event chain. |
void
|
cleanupAnchors(<DOMDocument> doc)
Moves the contents of a anchor outside and after the anchor. |
string
|
cleanupEventStr(<string> s)
Removes MSIE 5.5 specific event wrapper function form a event string. |
string
|
cleanupHTMLCode(<string> s)
Makes some preprocessing cleanup routines on the specified HTML string. |
Array
|
clearArray(a)
Returns a cleared array, since some external libraries tend to extend the Array core object arrays needs to be cleaned from these extended functions. |
void
|
closeWindow(<DOMWindow> win)
Closes the specified window. |
void
|
compressStyle(<Array> ar, <string> pr, <string> sf, <string> res)
Compresses larger styles into a smaller. |
void
|
confirmAdd(<DOMEvent> e, <Array> settings)
Displays a confirm dialog when a user clicks/focus a textarea that is to be converted into a TinyMCE instance. |
string
|
convertAbsoluteURLToRelativeURL(<string> base_url, <string> url_to_relative)
Converts an absolute path to relative path. |
void
|
convertAllRelativeURLs(<HTMLElement> body)
Converts all img and a element URLs to absolute URLs. |
void
|
convertFontsToSpans(<DOMDocument> doc)
Convers fonts to spans in the specified document. |
string
|
convertHexToRGB(<string> s)
Returns a rgb(n,n,n) string from a hexadecimal value. |
string
|
convertRelativeToAbsoluteURL(<string> base_url, <string> relative_url)
Converts an relative path to absolute path. |
string
|
convertRGBToHex(<string> s, <boolean> k)
Returns a hexadecimal version of the specified rgb(1,2,3) string. |
void
|
convertSpansToFonts(<DOMDocument> doc)
Converts span elements to font elements in the specified document instance. |
string
|
convertURL(<string> url, <HTMLElement> node, <boolean> on_save)
Converts the specified URL based in TinyMCE configuration settings. |
void
|
debug()
Debugs the specified message to a screen. |
Object
|
dispatchCallback(<TinyMCE_Control> i, <string> p, <string> n)
Dispatches the specified callback on all options, plugins and themes. |
string
|
entityDecode(<string> s)
HTML entity decode a string, replaces < with <. |
object
|
evalFunc(<string> f, <int> idx, <Array> a)
Evaluates the specified function and uses the array of arguments. |
void
|
execCommand(<string> command, <boolean> user_interface, <object> value)
Executes a command on the selected or last selected TinyMCE editor control instance. |
Object
|
execCommandCallback(<TinyMCE_Control> i, <string> p, <string> n)
Executes the specified execcommand callback on all options, plugins and themes. |
void
|
execInstanceCommand(<string> editor_id, <string> command, <boolean> user_interface, <object> value, <boolean> focus)
Executes a command on a specific editor instance by id. |
Object
|
executeCallback(<TinyMCE_Control> i, <string> p, <string> n)
Executes the specified callback on all options, plugins and themes. |
string
|
fixGeckoBaseHREFBug(<boolean> m, <HTMLElement> e, <string> h)
Fixes a Gecko specific bug where href, src attribute values gets converted incorrectly when inserted into editor. |
TinyMCE_ElementPosition
|
getAbsPosition(<HTMLNode> n)
Returns the absolute x, y position of a node. |
string
|
getAttrib(<HTMLElement> elm, <string> name, <string> default_value)
Returns the attribute value of a element or the default value if it wasn't found. |
string
|
getButtonHTML(<string> id, <string> lang, <string> img, <string> cmd, <string> ui, <string> val)
Returns the HTML code for a normal button control. |
string
|
getContent(<string> editor_id)
Returns the HTML contents of the specified editor instance id. |
string
|
getControlHTML(<string> c)
Returns the HTML for the specified control this will loop through the theme and all plugins inorder to find the control. |
Array
|
getCSSClasses(<string> editor_id, <DOMDocument> doc)
Returns a array of CSS classes that is available in a document. |
string
|
getEditorId(<string> form_element)
Returns the editor instance id of a specific form element. |
HTMLElement
|
getElementByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v)
Returns a element by a specific attribute and it's value. |
Array
|
getElementsByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v)
Returns a element array by a specific attribute and it's value. |
TinyMCE_Control
|
getInstanceById(<string> editor_id)
Returns a TinyMCE editor instance by the specified editor id or null if it wasn't found. |
object
|
getLang(<string> name, <string> default_value, <boolean> parse_entities)
Returns a language variable value from the language packs. |
Array
|
getNodeTree(&l<int> t;HTMLNode> n, <Array> na, t, <string> nn)
Returns a array of nodes selected retrived from the child nodes of the specified node. |
string
|
getOuterHTML(<HTMLElement> e)
Returns the outer HTML of a element, this uses the outerHTML property in MSIE and Opera and a workaround for Gecko. |
object
|
getParam(<string> name, <string> default_value, <boolean> strip_whitespace, <string> split_chr)
Returns a specific configuration setting or the default value if it wasn't found. |
HTMLElement
|
getParentBlockElement(<HTMLNode> n)
Returns the first block element parent of the specified node. |
HTMLElement
|
getParentElement(<HTMLNode> node, <string> names, <string> attrib_name, <string> attrib_value)
Returns the parent element of the specified node based on the search criteria. |
string
|
getVisualAidClass(<string> class_name, <boolean> state)
Returns the visual aid class string, this will add/remove the visual aid class. |
Object
|
getWindowArg(<string> n, d)
Returns the window argument to be passed to TinyMCE popup. |
boolean
|
handleEvent(<DOMEvent> e)
Event handler function that gets executed each time a event occurs in a TinyMCE editor control instance. |
void
|
handleVisualAid(<HTMLElement> el, <boolean> deep, <boolean> state, <TinyMCE_Control> inst)
Adds visual aid classes to all elements that need them recursive in the DOM tree. |
boolean
|
hasPlugin(<string> n)
Returns true/false if the specified plugin is loaded or not. |
boolean
|
hasTheme(<string> n)
Returns true/false if the specified theme is loaded or not. |
void
|
importCSS(<DOMDocument> doc, <string> css_file)
Imports a CSS file into a allready loaded document. |
void
|
importPluginLanguagePack(<string> name, <string> valid_languages)
Loads a plugin specific language pack. |
void
|
importThemeLanguagePack(<string> name)
Loads a theme specific language pack. |
void
|
init(settings)
Initializes TinyMCE with the specific configuration settings. |
void
|
insertAfter(<HTMLNode> n, <HTMLNode> r)
Inserts a node after the specific node. |
boolean
|
isBlockElement(<HTMLNode> n)
Returns true/false if the specified node is a block element or not. |
boolean
|
isInstance(<object> o)
Returns true/false if a specific object is a TinyMCE_Control instance or not. |
void
|
loadCSS(<string> url)
Loads the specified CSS by writing the a link tag to the current page. |
void
|
loadScript(<string> url)
Loads the specified script by writing the a script tag to the current page. |
boolean
|
onLoad()
Gets executed when the page loads or get intitialized. |
void
|
onMouseMove()
Mouse move handler function, this will be executed each time the mouse is moved within a editor instance. |
void
|
openWindow(<Array> template, <Array> args)
Opens a popup window based in the specified input data. |
Array
|
parseStyle(<string> str)
Parses the specified HTML style data. |
TinyMCE_URL_Item
|
parseURL(<string> url_str)
Parses a URL in to its diffrent components. |
boolean
|
queryInstanceCommandState(<string> editor_id, <string> command)
Queries a command state for a specific command on a specific editor instance. |
object
|
queryInstanceCommandValue(<string> editor_id, <string> command)
Queries a command value for a specific command on a specific editor instance. |
string
|
regexpReplace(<string> in_str, <string> reg_exp, <string> replace_str, opts)
Regexp replaces the contents of a string. |
void
|
removeMCEControl(<string> editor_id)
Removes a TinyMCE editor control instance by id. |
void
|
removeTinyMCEFormElements(<HTMLElement> form_obj)
Removes/disables TinyMCE built in form elements such as select boxes for font sizes etc. |
string
|
replaceVar(<string> h, <string> r, <string> v)
Replaces a specific variable in the string with a nother string. |
void
|
resetForm(<int> form_index)
Resets a forms TinyMCE instances based on form index. |
string
|
serializeStyle(<Array> ar)
Serializes the specified style item name/value array into a HTML string. |
string
|
serializeURL(<TinyMCE_URL_Item> up)
Serializes the specified URL object into a string. |
void
|
setAttrib(<HTMLElement> element, <string> name, <string> value, <boolean> fix_value)
Sets the attribute value for a specific attribute. |
void
|
setContent(<string> h)
Sets the HTML contents of the selected editor instance. |
void
|
setInnerHTML(<HTMLElement> e, <string> h)
Sets the innerHTML property of a element, this function also fixes a MSIE bug where the first comment is removed. |
void
|
setOuterHTML(<HTMLElement> e, <string> h)
Sets the outer HTML of a element, this uses the outerHTML property in MSIE and Opera and a workaround for Gecko. |
void
|
setPluginBaseURL(<string> n, <string> u)
Sets the baseURL of the specified plugin, this is useful if the plugin is loaded from a external location. |
void
|
setStyleAttrib(<HTMLElement> elm, <string> name, <string> value)
Sets a style attribute item value. |
void
|
setupContent(<string> editor_id)
Setups the contents of TinyMCE editor instance and fills it with contents. |
void
|
setWindowArg(<string> n, <string> v)
Sets the window argument to be passed to TinyMCE popup. |
string
|
storeAwayURLs(<string> s)
Stores away the src and href attribute values in separate mce_src and mce_href attributes. |
void
|
submitPatch()
Piggyback onsubmit event handler function, this will remove/hide the TinyMCE specific form elements call triggerSave to fill the textarea with the correct contents then call the old piggy backed event handler. |
void
|
switchClass(<HTMLElement> ei, <string> c)
Switches the CSS class of the specified element. |
void
|
triggerNodeChange(<boolean> focus, <boolean> setup_content)
Triggers a nodeChange event to every theme and plugin. |
void
|
triggerSave(<boolean> skip_cleanup, <boolean> skip_callback)
Moves the contents from a TinyMCE editor control instance to the hidden textarea that got replaced with TinyMCE. |
string
|
trim(<string> s)
Removes all prefix, suffix whitespace of a string. |
void
|
unloadHandler()
Unload document event handler function. |
void
|
updateContent(<string> form_element_name)
Moves the contents from the hidden textarea to the editor that gets inserted. |
Field Detail |
Object buttonMap
Object configs
Object currentConfig
Object dialogCounter
Object eventHandlers
Object idCounter
Object instances
Object isGecko
Object isLoaded
Object isMac
Object isMSIE
Object isMSIE5
Object isMSIE5_0
Object isNS7
Object isNS71
Object isOpera
Object isSafari
Object loadedFiles
Object loadedPlugins
Object majorVersion
Object minorVersion
Object plugins
Object releaseDate
Object switchClassCache
Object themes
Object windowArgs
Constructor Detail |
TinyMCE_Engine()
Method Detail |
HTMLElement _getElementById(<string> id)
id
- Id of element.
Object accessibleEventHandler(<DOMEvent> e)
e
- DOM event object instance.
void addButtonMap(<string> m)
m
- Comma separated list of buttons that are available in tiled image.
void addEvent(<HTMLElement> o, <string> n, <function> h)
o
- Object to add event handler to.
n
- Event name to listen to for example "click".
h
- Function handler to execute when event occurs.
void addEventHandlers(<string> editor_id)
editor_id
- Editor control instance to add event handler to.
void addMCEControl(<HTMLElement> replace_element, <string> form_element_name, <DOMDocument> target_document)
replace_element
- HTML element object to replace.
form_element_name
- HTML form element name,
target_document
- Target document that holds the element.
void addPlugin(n, <TinyMCE_Plugin> p)
p
- Plugin instance to add.
Plugin
- name/id.
Object addSelectAccessibility(<DOMEvent> e, <HTMLElement> s, <DOMWindow> w)
e
- Event that gets passed when the element is focused.
s
- Select element that the keydown handler gets added to.
w
- DOM window reference to add.
void addTheme(&l<TinyMCE_Theme> t;string> n, t)
n
- Theme name/id to add the object reference to.
t
- Theme instance to add to the loaded list.
void addToLang(<string> prefix, <Array> ar)
prefix
- Prefix string to add infront of every array item before adding it.
ar
- Language item array to add to global language array.
string applyTemplate(<string> h, <Array> as)
h
- HTML string to replace language variables in.
as
- Optional arguments array to take variables from.
boolean callFunc(<<<Array> a href="TinyMCE_Control.html">TinyMCE_Control> ins, <string> p, <string> n, <int> m, a)
ins
- TinyMCE editor control instance to execute callback on.
p
- TinyMCE callback parameter name.
n
- Function name to execute.
m
- Execution mode value, 0 = no chain, 1 = event chain, 2 = execcommand chain.
a
- Array with function arguments.
void cancelEvent(<DOMEvent> e)
e
- Event to cancel.
void cleanupAnchors(<DOMDocument> doc)
doc
- DOM document instance to fix anchors in.
string cleanupEventStr(<string> s)
s
- String to replace event data in.
string cleanupHTMLCode(<string> s)
s
- HTML string to cleanup.
Array clearArray(a)
Name
- /Value array to clear.
void closeWindow(<DOMWindow> win)
win
- Window reference to close.
void compressStyle(<Array> ar, <string> pr, <string> sf, <string> res)
ar
- Style name/value array with items.
pr
- Style item prefix to bundle for example border.
sf
- Style item suffix to bunlde for example -width or -width.
res
- Result name, for example border-width.
void confirmAdd(<DOMEvent> e, <Array> settings)
e
- DOM event instance.
settings
- Name/Value array of initialization settings.
string convertAbsoluteURLToRelativeURL(<string> base_url, <string> url_to_relative)
base_url
- URL to make as a base path, URLs will be converted relative from this point.
url_to_relative
- URL to convert into a relative URL.
void convertAllRelativeURLs(<HTMLElement> body)
body
- HTML element to convert all URLs in.
void convertFontsToSpans(<DOMDocument> doc)
doc
- Document instance to convert fonts in.
string convertHexToRGB(<string> s)
s
- Hexadecimal string to parse.
string convertRelativeToAbsoluteURL(<string> base_url, <string> relative_url)
base_url
- URL to make as a base path, URLs will be converted absolute from this point.
relative_url
- URL to convert into a absolute URL.
string convertRGBToHex(<string> s, <boolean> k)
s
- RGB string to parse, if this doesn't isn't a rgb(n,n,n) it will passthrough the string.
k
- Keep before/after contents. If enabled contents before after the rgb(n,n,n) will be intact.
void convertSpansToFonts(<DOMDocument> doc)
doc
- Document instance to convert spans in.
string convertURL(<string> url, <HTMLElement> node, <boolean> on_save)
url
- URL to convert based on config.
node
- HTML element that holds the URL.
on_save
- Is this convertion the final output URL.
void debug()
Numerous
- arguments that will be outputed.
Object dispatchCallback(<TinyMCE_Control> i, <string> p, <string> n)
i
- TinyMCE editor control instance to execute callback on.
p
- TinyMCE callback parameter to execute.
n
- Function name to execute.
string entityDecode(<string> s)
s
- Entity string to decode into normal string.
object evalFunc(<string> f, <int> idx, <Array> a)
f
- Function reference to execute.
idx
- Index in array to start grabbing arguments from.
a
- Array of function arguments.
void execCommand(<string> command, <boolean> user_interface, <object> value)
command
- Command name to execute, for example mceLink or Bold.
user_interface
- True/false state if a UI (dialog) should be presented or not.
value
- Optional command value, this can be anything.
Object execCommandCallback(<TinyMCE_Control> i, <string> p, <string> n)
i
- TinyMCE editor control instance to execute callback on.
p
- TinyMCE callback parameter to execute.
n
- Function name to execute.
void execInstanceCommand(<string> editor_id, <string> command, <boolean> user_interface, <object> value, <boolean> focus)
editor_id
- TinyMCE editor control instance id to perform comman on.
command
- Command name to execute, for example mceLink or Bold.
user_interface
- True/false state if a UI (dialog) should be presented or not.
value
- Optional command value, this can be anything.
focus
- True/false if the editor instance should be focused first.
Object executeCallback(<TinyMCE_Control> i, <string> p, <string> n)
i
- TinyMCE editor control instance to execute callback on.
p
- TinyMCE callback parameter to execute.
n
- Function name to execute.
string fixGeckoBaseHREFBug(<boolean> m, <HTMLElement> e, <string> h)
m
- Mode state, true is to replace the src, href attributes to xsrc and xhref.
e
- HTML element to replace them in. (Will be used if m is 0)
h
- HTML code to replace them in. (Will be used if m is 1)
TinyMCE_ElementPosition getAbsPosition(<HTMLNode> n)
n
- HTML element to get x, y position from.
string getAttrib(<HTMLElement> elm, <string> name, <string> default_value)
elm
- HTML element to get attribute from.
name
- Attribute name to retrive.
default_value
- Optional default value to return, this value defaults to a empty string.
string getButtonHTML(<string> id, <string> lang, <string> img, <string> cmd, <string> ui, <string> val)
id
- Button control id, this will be the suffix for the element id, the prefix is the editor id.
lang
- Language variable key name to insert as the title/alt of the button image.
img
- Image URL to insert, {$themeurl} and {$pluginurl} will be replaced.
cmd
- Command to execute when the user clicks the button.
ui
- Optional user interface boolean for command.
val
- Optional value for command.
string getContent(<string> editor_id)
editor_id
- Editor instance id to retrive HTML code from.
string getControlHTML(<string> c)
c
- Control name/id to get HTML code for.
Array getCSSClasses(<string> editor_id, <DOMDocument> doc)
editor_id
- Editor id to get CSS classes from.
doc
- DOM document to get the CSS classes from.
string getEditorId(<string> form_element)
form_element
- Form element name to get instance id for.
HTMLElement getElementByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v)
n
- Element to search in.
e
- Element name to search for.
a
- Attribute name to search for.
v
- Attribute value to search for.
Array getElementsByAttributeValue(<HTMLElement> n, <string> e, <string> a, <string> v)
n
- Element to search in.
e
- Element name to search for.
a
- Attribute name to search for.
v
- Attribute value to search for.
TinyMCE_Control getInstanceById(<string> editor_id)
editor_id
- Editor id to get instance for.
object getLang(<string> name, <string> default_value, <boolean> parse_entities)
name
- Name of the key to retrive.
default_value
- Optional default value to return if it wasn't found.
parse_entities
- Is HTML entities to be resolved or not.
Array getNodeTree(&l<int> t;HTMLNode> n, <Array> na, t, <string> nn)
n
- Node to get children from.
na
- Array to fill with children.
t
- Node type to get.
nn
- Node name of items to retrive.
string getOuterHTML(<HTMLElement> e)
e
- HTML element to get outerHTML from.
object getParam(<string> name, <string> default_value, <boolean> strip_whitespace, <string> split_chr)
name
- Configuration setting to get.
default_value
- Default value to return if it wasn't found.
strip_whitespace
- Optional remove all whitespace.
split_chr
- Split char/regex/string.
HTMLElement getParentBlockElement(<HTMLNode> n)
n
- Node get parent block element for.
HTMLElement getParentElement(<HTMLNode> node, <string> names, <string> attrib_name, <string> attrib_value)
node
- Node to get parent element of.
names
- Comma separated list of element names to get.
attrib_name
- Optional attribute name to match.
attrib_value
- Optional attribute value to match.
string getVisualAidClass(<string> class_name, <boolean> state)
class_name
- Class name value to add/remove visual aid classes from.
state
- true/false if the classes should be added or removed.
Object getWindowArg(<string> n, d)
n
- Window argument name.
boolean handleEvent(<DOMEvent> e)
e
- DOM event object reference.
void handleVisualAid(<HTMLElement> el, <boolean> deep, <boolean> state, <TinyMCE_Control> inst)
el
- HTML element to add visual aid classes to.
deep
- Should they be added to all children aswell.
state
- Should they be added or removed.
inst
- TinyMCE editor control instance to add/remove them to/from.
boolean hasPlugin(<string> n)
n
- Plugin name to look for.
boolean hasTheme(<string> n)
n
- Theme name/id to check for.
void importCSS(<DOMDocument> doc, <string> css_file)
doc
- DOM Document to load CSS into.
css_file
- CSS File URL to load.
void importPluginLanguagePack(<string> name, <string> valid_languages)
name
- Plugin name/id to load language pack for.
valid_languages
- Comma separated list of valid languages for the plugin.
void importThemeLanguagePack(<string> name)
name
- Optional name of the theme to load language pack from.
void init(settings)
Name
- /Value array of initialization settings.
void insertAfter(<HTMLNode> n, <HTMLNode> r)
n
- New node to insert.
r
- Reference node to insert after.
boolean isBlockElement(<HTMLNode> n)
n
- Node to verify.
boolean isInstance(<object> o)
o
- Object to check.
void loadCSS(<string> url)
url
- CSS file URL to load.
void loadScript(<string> url)
url
- Script URL to load.
boolean onLoad()
void onMouseMove()
void openWindow(<Array> template, <Array> args)
template
- Popup template data such as with, height etc.
args
- Popup arguments that is to be passed to the popup such as custom data.
Array parseStyle(<string> str)
str
- Style data to parse.
TinyMCE_URL_Item parseURL(<string> url_str)
url_str
- URL string to parse into a URL object.
boolean queryInstanceCommandState(<string> editor_id, <string> command)
editor_id
- Editor id to query command state on.
command
- Command to query for.
object queryInstanceCommandValue(<string> editor_id, <string> command)
editor_id
- Editor id to query command value on.
command
- Command to query for.
string regexpReplace(<string> in_str, <string> reg_exp, <string> replace_str, opts)
in_str
- String to replace in.
in_str
- Optional regexp options like "gi".
reg_exp
- Regexp to replace.
replace_str
- String to replace with.
void removeMCEControl(<string> editor_id)
editor_id
- Id of editor instance to remove.
void removeTinyMCEFormElements(<HTMLElement> form_obj)
form_obj
- Form object to loop through for TinyMCE specific form elements.
string replaceVar(<string> h, <string> r, <string> v)
h
- String to search in for the variable.
r
- Variable name to search for.
v
- Value to insert where a variable is found.
void resetForm(<int> form_index)
form_index
- Form index to reset.
string serializeStyle(<Array> ar)
ar
- Name/Value array of items to serialize.
string serializeURL(<TinyMCE_URL_Item> up)
up
- URL object to serialize.
void setAttrib(<HTMLElement> element, <string> name, <string> value, <boolean> fix_value)
element
- HTML element to set attribute on.
name
- Attribute name to set.
value
- Attribute value to set.
fix_value
- Optional fix value state, if true only number data will be accepted.
void setContent(<string> h)
h
- HTML contents to set in the selected instance.
void setInnerHTML(<HTMLElement> e, <string> h)
e
- Element to insert HTML in.
h
- HTML code to insert into innerHTML.
void setOuterHTML(<HTMLElement> e, <string> h)
e
- HTML element to set outerHTML on.
h
- HTML string to set in property.
void setPluginBaseURL(<string> n, <string> u)
n
- Plugin name/id to set base URL on. This have to be added before.
u
- Base URL of plugin, this string should be the URL prefix for the plugin without a trailing slash.
void setStyleAttrib(<HTMLElement> elm, <string> name, <string> value)
elm
- HTML element to set style attribute item on.
name
- Style item name to set.
value
- Style item value to set.
void setupContent(<string> editor_id)
editor_id
- TinyMCE editor instance control id to fill.
void setWindowArg(<string> n, <string> v)
n
- Window argument name.
v
- Window argument value.
string storeAwayURLs(<string> s)
s
- HTML string to replace src and href attributes in.
void submitPatch()
void switchClass(<HTMLElement> ei, <string> c)
ei
- Element to set CSS class on.
c
- CSS class to set.
void triggerNodeChange(<boolean> focus, <boolean> setup_content)
focus
- Optional state if the last selected editor instance is to be focused or not.
setup_content
- Optional state if it's called from setup content function or not.
void triggerSave(<boolean> skip_cleanup, <boolean> skip_callback)
skip_cleanup
- Optional Skip cleanup, simply move the contents as fast as possible.
skip_callback
- Optional Skip callback, don't call the save_callback function.
string trim(<string> s)
s
- String to replace whitespace in.
void unloadHandler()
void updateContent(<string> form_element_name)
form_element_name
- Form element name to move contents from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |