📄 tinymce_engine.html
字号:
<BR>
Executes a command on the selected or last selected TinyMCE editor control instance.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> Object</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#execCommandCallback">execCommandCallback</A></B>(<<a href="TinyMCE_Control.html">TinyMCE_Control</a>> i, <string> p, <string> n)
</CODE>
<BR>
Executes the specified execcommand callback on all options, plugins and themes.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> void</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#execInstanceCommand">execInstanceCommand</A></B>(<string> editor_id, <string> command, <boolean> user_interface, <object> value, <boolean> focus)
</CODE>
<BR>
Executes a command on a specific editor instance by id.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> Object</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#executeCallback">executeCallback</A></B>(<<a href="TinyMCE_Control.html">TinyMCE_Control</a>> i, <string> p, <string> n)
</CODE>
<BR>
Executes the specified callback on all options, plugins and themes.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#fixGeckoBaseHREFBug">fixGeckoBaseHREFBug</A></B>(<boolean> m, <HTMLElement> e, <string> h)
</CODE>
<BR>
Fixes a Gecko specific bug where href, src attribute values gets converted incorrectly
when inserted into editor.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> TinyMCE_ElementPosition</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getAbsPosition">getAbsPosition</A></B>(<HTMLNode> n)
</CODE>
<BR>
Returns the absolute x, y position of a node.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getAttrib">getAttrib</A></B>(<HTMLElement> elm, <string> name, <string> default_value)
</CODE>
<BR>
Returns the attribute value of a element or the default value if it wasn't found.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getButtonHTML">getButtonHTML</A></B>(<string> id, <string> lang, <string> img, <string> cmd, <string> ui, <string> val)
</CODE>
<BR>
Returns the HTML code for a normal button control.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getContent">getContent</A></B>(<string> editor_id)
</CODE>
<BR>
Returns the HTML contents of the specified editor instance id.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getControlHTML">getControlHTML</A></B>(<string> c)
</CODE>
<BR>
Returns the HTML for the specified control this will loop through
the theme and all plugins inorder to find the control.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> Array</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getCSSClasses">getCSSClasses</A></B>(<string> editor_id, <DOMDocument> doc)
</CODE>
<BR>
Returns a array of CSS classes that is available in a document.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getEditorId">getEditorId</A></B>(<string> form_element)
</CODE>
<BR>
Returns the editor instance id of a specific form element.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> HTMLElement</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getElementByAttributeValue">getElementByAttributeValue</A></B>(<HTMLElement> n, <string> e, <string> a, <string> v)
</CODE>
<BR>
Returns a element by a specific attribute and it's value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> Array</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getElementsByAttributeValue">getElementsByAttributeValue</A></B>(<HTMLElement> n, <string> e, <string> a, <string> v)
</CODE>
<BR>
Returns a element array by a specific attribute and it's value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> <a href="TinyMCE_Control.html">TinyMCE_Control</a></CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getInstanceById">getInstanceById</A></B>(<string> editor_id)
</CODE>
<BR>
Returns a TinyMCE editor instance by the specified editor id or null if it wasn't found.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> object</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getLang">getLang</A></B>(<string> name, <string> default_value, <boolean> parse_entities)
</CODE>
<BR>
Returns a language variable value from the language packs.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> Array</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getNodeTree">getNodeTree</A></B>(&l<int> t;HTMLNode> n, <Array> na, t, <string> nn)
</CODE>
<BR>
Returns a array of nodes selected retrived from the child nodes of the specified node.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getOuterHTML">getOuterHTML</A></B>(<HTMLElement> e)
</CODE>
<BR>
Returns the outer HTML of a element, this uses the outerHTML
property in MSIE and Opera and a workaround for Gecko.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> object</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getParam">getParam</A></B>(<string> name, <string> default_value, <boolean> strip_whitespace, <string> split_chr)
</CODE>
<BR>
Returns a specific configuration setting or the default value if it wasn't found.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> HTMLElement</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getParentBlockElement">getParentBlockElement</A></B>(<HTMLNode> n)
</CODE>
<BR>
Returns the first block element parent of the specified node.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> HTMLElement</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getParentElement">getParentElement</A></B>(<HTMLNode> node, <string> names, <string> attrib_name, <string> attrib_value)
</CODE>
<BR>
Returns the parent element of the specified node based on the search criteria.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> string</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getVisualAidClass">getVisualAidClass</A></B>(<string> class_name, <boolean> state)
</CODE>
<BR>
Returns the visual aid class string, this will add/remove the visual aid class.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> Object</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#getWindowArg">getWindowArg</A></B>(<string> n, d)
</CODE>
<BR>
Returns the window argument to be passed to TinyMCE popup.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> boolean</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#handleEvent">handleEvent</A></B>(<DOMEvent> e)
</CODE>
<BR>
Event handler function that gets executed each time a event occurs in a TinyMCE editor control instance.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> void</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#handleVisualAid">handleVisualAid</A></B>(<HTMLElement> el, <boolean> deep, <boolean> state, <<a href="TinyMCE_Control.html">TinyMCE_Control</a>> inst)
</CODE>
<BR>
Adds visual aid classes to all elements that need them recursive in the DOM tree.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> boolean</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#hasPlugin">hasPlugin</A></B>(<string> n)
</CODE>
<BR>
Returns true/false if the specified plugin is loaded or not.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> boolean</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#hasTheme">hasTheme</A></B>(<string> n)
</CODE>
<BR>
Returns true/false if the specified theme is loaded or not.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
<FONT SIZE="-1">
<CODE> void</CODE>
</FONT>
</TD>
<TD>
<CODE>
<B>
<A HREF="#importCSS">importCSS</A></B>(<DOMDocument> doc, <string> css_file)
</CODE>
<BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -