📄 tinymce_control.html
字号:
DOM document of a editor instance.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="getFocusElement"><!-- --></A>
<H3>getFocusElement</H3>
<PRE>HTMLElement <B>getFocusElement</B>()</PRE>
<UL>Returns the currently selected element. This is was added for compatiblity and is deprecated.
Please use inst.selection.getFocusElement instead.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Currently selected element.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<UL>
<B>Deprecated</B> <I></I><BR/><BR/>
</UL>
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="getRng"><!-- --></A>
<H3>getRng</H3>
<PRE>DOMRange <B>getRng</B>()</PRE>
<UL>Returns the browsers selections first range instance. This is was added for compatiblity and is deprecated.
Please use inst.selection.getRng instead.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Browsers selections first range instance.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<UL>
<B>Deprecated</B> <I></I><BR/><BR/>
</UL>
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="getSel"><!-- --></A>
<H3>getSel</H3>
<PRE>DOMSelection <B>getSel</B>()</PRE>
<UL>Returns the browsers selection instance. This is was added for compatiblity and is deprecated.
Please use inst.selection.getSel instead.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Browser selection instance.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<UL>
<B>Deprecated</B> <I></I><BR/><BR/>
</UL>
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="getWin"><!-- --></A>
<H3>getWin</H3>
<PRE>Window <B>getWin</B>()</PRE>
<UL>Returns the window of a editor instance.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Window of a editor instance.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="handleShortcut"><!-- --></A>
<H3>handleShortcut</H3>
<PRE>boolean <B>handleShortcut</B>(<DOMEvent> e)</PRE>
<UL>Executes shortcuts based on the event information.</UL>
<!-- METHOD PARAMETERS START -->
<UL>
<B>Parameters:</B>
<UL><CODE>e</CODE> - Keyboard event to handle.
</UL>
</UL>
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
true/false if the shortcut was found and executed or not.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="hasPlugin"><!-- --></A>
<H3>hasPlugin</H3>
<PRE>boolean <B>hasPlugin</B>(<string> n)</PRE>
<UL>Returns true/false if the instance has the current plugin available.</UL>
<!-- METHOD PARAMETERS START -->
<UL>
<B>Parameters:</B>
<UL><CODE>n</CODE> - Plugin name to check for.
</UL>
</UL>
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
true/false if the instance has the current plugin available.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="isDirty"><!-- --></A>
<H3>isDirty</H3>
<PRE>boolean <B>isDirty</B>()</PRE>
<UL>Returns true/false if the editor instance is dirty or not. In other words if it has been modified
or not.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Editor instance dirty state.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="isHidden"><!-- --></A>
<H3>isHidden</H3>
<PRE>boolean <B>isHidden</B>()</PRE>
<UL>Returns if the instance is hidden or not. This is a Gecko specific function
other browsers will always return false. This function is used to workaround the lost
designMode bug in Gecko browsers.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Returns if the instance is hidden or not.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="queryCommandState"><!-- --></A>
<H3>queryCommandState</H3>
<PRE>boolean <B>queryCommandState</B>(<string> c)</PRE>
<UL>Returns a command specific state, for example if bold is enabled or not.</UL>
<!-- METHOD PARAMETERS START -->
<UL>
<B>Parameters:</B>
<UL><CODE>c</CODE> - Command to query state from.
</UL>
</UL>
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Command specific state, for example if bold is enabled or not.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="queryCommandValue"><!-- --></A>
<H3>queryCommandValue</H3>
<PRE>mixed <B>queryCommandValue</B>(<string> c)</PRE>
<UL>Returns a command specific value, for example the current font size.</UL>
<!-- METHOD PARAMETERS START -->
<UL>
<B>Parameters:</B>
<UL><CODE>c</CODE> - Command to query value from.
</UL>
</UL>
<!-- METHOD PARAMETERS END -->
<UL>
<B>Returns:</B>
<UL>
Command specific value, for example the current font size.
</UL>
</UL>
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="repaint"><!-- --></A>
<H3>repaint</H3>
<PRE>void <B>repaint</B>()</PRE>
<UL>Repaints the editarea in Gecko browsers. This method removes ghost resize handlers
and other trailing graphics.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="setBaseHREF"><!-- --></A>
<H3>setBaseHREF</H3>
<PRE>void <B>setBaseHREF</B>(<string> u)</PRE>
<UL>Sets the base href url of the current document instance. This method is used
to temporarly remove the base url during copy/paste and drag/drop operations
of relative links from external sites into TinyMCE. MSIE has a bug and converts
relative links from external sites to absolute links incorrectly.</UL>
<!-- METHOD PARAMETERS START -->
<UL>
<B>Parameters:</B>
<UL><CODE>u</CODE> - URL to set as base URL or null to remove it.
</UL>
</UL>
<!-- METHOD PARAMETERS END -->
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<A NAME="switchSettings"><!-- --></A>
<H3>switchSettings</H3>
<PRE>void <B>switchSettings</B>()</PRE>
<UL>Switches the global TinyMCE settings to the current instance settings. This method is
used to handle multiple configurations.</UL>
<!-- METHOD PARAMETERS START -->
<!-- METHOD PARAMETERS END -->
<!-- ADDITIONAL ATTRIBUTES START -->
<!-- ADDITIONAL ATTRIBUTES END -->
<HR>
<!-- ============ METHOD DETAIL END ========== -->
<!-- ========= END OF CLASS DATA ========= -->
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary-TinyMCE_Control.class.js.html"><FONT CLASS="NavBarFont1"><B>File</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><b>Tree</b></FONT></A> </TD>
<!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"--> <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!-- </TD-->
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<B></B>
</EM>
</TD
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="TinyMCE_Cleanup.html"><B>PREV CLASS</B></A><!--
NEXT CLASS
-->
<A HREF="TinyMCE_Engine.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="TinyMCE_Control.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT>
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<FONT SIZE="-1">
</FONT>
<div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Mon Feb 13 16:28:04 2006</div>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -