⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tinymce_control.html

📁 tinyMCE在线编辑器使用手册
💻 HTML
📖 第 1 页 / 共 3 页
字号:
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Returns true/false if the editor instance is dirty or not.
      </TD>
   </TR>

   <TR BGCOLOR="white" CLASS="TableRowColor">
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
	 <FONT SIZE="-1">
	    <CODE>&nbsp;boolean</CODE>
	 </FONT>
      </TD>
      <TD>
	 <CODE>
	    <B>
	       <A HREF="#isHidden">isHidden</A></B>()
	 </CODE>
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Returns if the instance is hidden or not.
      </TD>
   </TR>

   <TR BGCOLOR="white" CLASS="TableRowColor">
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
	 <FONT SIZE="-1">
	    <CODE>&nbsp;boolean</CODE>
	 </FONT>
      </TD>
      <TD>
	 <CODE>
	    <B>
	       <A HREF="#queryCommandState">queryCommandState</A></B>(&lt;string&gt; c)
	 </CODE>
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Returns a command specific state, for example if bold is enabled or not.
      </TD>
   </TR>

   <TR BGCOLOR="white" CLASS="TableRowColor">
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
	 <FONT SIZE="-1">
	    <CODE>&nbsp;mixed</CODE>
	 </FONT>
      </TD>
      <TD>
	 <CODE>
	    <B>
	       <A HREF="#queryCommandValue">queryCommandValue</A></B>(&lt;string&gt; c)
	 </CODE>
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Returns a command specific value, for example the current font size.
      </TD>
   </TR>

   <TR BGCOLOR="white" CLASS="TableRowColor">
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
	 <FONT SIZE="-1">
	    <CODE>&nbsp;void</CODE>
	 </FONT>
      </TD>
      <TD>
	 <CODE>
	    <B>
	       <A HREF="#repaint">repaint</A></B>()
	 </CODE>
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Repaints the editarea in Gecko browsers.
      </TD>
   </TR>

   <TR BGCOLOR="white" CLASS="TableRowColor">
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
	 <FONT SIZE="-1">
	    <CODE>&nbsp;void</CODE>
	 </FONT>
      </TD>
      <TD>
	 <CODE>
	    <B>
	       <A HREF="#setBaseHREF">setBaseHREF</A></B>(&lt;string&gt; u)
	 </CODE>
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Sets the base href url of the current document instance.
      </TD>
   </TR>

   <TR BGCOLOR="white" CLASS="TableRowColor">
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
	 <FONT SIZE="-1">
	    <CODE>&nbsp;void</CODE>
	 </FONT>
      </TD>
      <TD>
	 <CODE>
	    <B>
	       <A HREF="#switchSettings">switchSettings</A></B>()
	 </CODE>
	 <BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 Switches the global TinyMCE settings to the current instance settings.
      </TD>
   </TR>


</TABLE>



<P>
<!-- ========== END METHOD SUMMARY =========== -->


<!-- ============ FIELD DETAIL START =========== -->

   <A NAME="field_detail"><!-- --></A>
   <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
      <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
         <TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD>
      </TR>
   </TABLE>

   
   <A NAME="cleanup"><!-- --></A>
   <H3>cleanup</H3>
   <PRE>Object&nbsp;<B>cleanup</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="hasMouseMoved"><!-- --></A>
   <H3>hasMouseMoved</H3>
   <PRE>Object&nbsp;<B>hasMouseMoved</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="isTinyMCE_Control"><!-- --></A>
   <H3>isTinyMCE_Control</H3>
   <PRE>Object&nbsp;<B>isTinyMCE_Control</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="plugins"><!-- --></A>
   <H3>plugins</H3>
   <PRE>Object&nbsp;<B>plugins</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="selection"><!-- --></A>
   <H3>selection</H3>
   <PRE>Object&nbsp;<B>selection</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="settings"><!-- --></A>
   <H3>settings</H3>
   <PRE>Object&nbsp;<B>settings</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="shortcuts"><!-- --></A>
   <H3>shortcuts</H3>
   <PRE>Object&nbsp;<B>shortcuts</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="undoRedo"><!-- --></A>
   <H3>undoRedo</H3>
   <PRE>Object&nbsp;<B>undoRedo</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   
   <A NAME="undoRedoLevel"><!-- --></A>
   <H3>undoRedoLevel</H3>
   <PRE>Object&nbsp;<B>undoRedoLevel</B></PRE>
   <UL>
   
   
   </UL>
   <HR>
   


<!-- ============ FIELD DETAIL END =========== -->

    <!-- ========= CONSTRUCTOR DETAIL START ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
   <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
      <TD COLSPAN=1>
      <FONT SIZE="+2"><B>Constructor Detail</B></FONT>
      </TD>
   </TR>
</TABLE>

<A NAME="TinyMCE_Control()"><!-- --></A><H3>
TinyMCE_Control</H3>
<PRE><B>TinyMCE_Control</B>(&lt;Array&gt; settings)</PRE>


<UL>
   This is the TinyMCE editor control instance class. A instance of this class will is made for each
 converted text area.
</UL>



   <UL>
   <B>Parameters:</B>
   
     <UL><CODE>settings</CODE> -  Name/Value array of instance specific configuration settings.
     </UL>
   
   
   </UL>


<!-- Constructor return value(s) -->

<!-- End constructor return value(s) -->

<!-- ADDITIONAL ATTRIBUTES -->

<HR/>
<!-- END ADDITIONAL ATTRIBUTES  -->

<!-- ========= CONSTRUCTOR DETAIL END ======== -->


<!-- ============ METHOD DETAIL START ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
   <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
      <TD COLSPAN=1><FONT SIZE="+2">
         <B>Method Detail</B></FONT>
      </TD>
   </TR>
</TABLE>

<!-- One single method detail entry -->

   <A NAME="addPlugin"><!-- --></A>
   <H3>addPlugin</H3>
   <PRE>void <B>addPlugin</B>(&lt;string&gt; n, p)</PRE>
   
      <UL>Adds a plugin to the editor instance. This will also add it globaly.</UL>
   

   <!-- METHOD PARAMETERS START -->
   
   <UL>
   <B>Parameters:</B>
   
     <UL><CODE>n</CODE> -  Plugin name to check for.  
      </UL> 
   
     <UL><CODE>n</CODE> -  TinyMCE plugin instance. 	   
      </UL> 
   
   </UL>
   
   <!-- METHOD PARAMETERS END -->

   

   <!-- ADDITIONAL ATTRIBUTES START -->
   
   <!-- ADDITIONAL ATTRIBUTES  END -->
<HR>

   <A NAME="addShortcut"><!-- --></A>
   <H3>addShortcut</H3>
   <PRE>boolean <B>addShortcut</B>(&lt;string&gt; m, &lt;Object&gt; k, &lt;string&gt; d, &lt;string&gt; cmd, &lt;boolean&gt; ui, &lt;Object&gt; va)</PRE>
   
      <UL>Adds a keyboard shortcut to a specific command. These shortcuts can for example be added
 at the initInstance callback of a plugin. The shortcut description can be a language variable name
 or a string describing the function. If you don't specify a command, the shortcut will simply be a blocker
 shortcut. This enables you to remove built in shortcuts or remove theme specific shortcuts from a plugin.<br />
 Example shortcut inst.addShortcut('ctrl,alt', 'k', 'mceSomeCommand', false, 'somevalue');
 Example blocker inst.addShortcut('ctrl,alt', 'k');</UL>
   

   <!-- METHOD PARAMETERS START -->
   
   <UL>
   <B>Parameters:</B>
   
     <UL><CODE>m</CODE> -  List of shortcut modifiers keys, for example "ctrl,alt".  
      </UL> 
   
     <UL><CODE>k</CODE> -  Shortcut key char for example "s" or a keycode value "13".  
      </UL> 
   
     <UL><CODE>d</CODE> -  Optional Shortcut description, this will be presented in the about dialog.  
      </UL> 
   
     <UL><CODE>cmd</CODE> -  Optional Command name to execute, for example mceLink or Bold.  
      </UL> 
   
     <UL><CODE>ui</CODE> -  Optional True/false state if a UI (dialog) should be presented or not.  
      </UL> 
   
     <UL><CODE>va</CODE> -  Optional command value, this can be anything.  
      </UL> 
   
   </UL>
   
   <!-- METHOD PARAMETERS END -->

   
   <UL>
   <B>Returns:</B>
        <UL>
        true/false if the shortcut was added or not   
        </UL>
   </UL>
   

   <!-- ADDITIONAL ATTRIBUTES START -->
   
   <!-- ADDITIONAL ATTRIBUTES  END -->
<HR>

   <A NAME="autoResetDesignMode"><!-- --></A>
   <H3>autoResetDesignMode</H3>
   <PRE>void <B>autoResetDesignMode</B>()</PRE>
   
      <UL>Auto resets the design mode of the document if it gets lost.
 This is a Gecko specific function since it's a workaround for a bug where Gecko browsers
 loose the designMode state if the editor is hidden and shown in a tab or div.</UL>
   

   <!-- METHOD PARAMETERS START -->
   
   <!-- METHOD PARAMETERS END -->

   

   <!-- ADDITIONAL ATTRIBUTES START -->
   
   <!-- ADDITIONAL ATTRIBUTES  END -->
<HR>

   <A NAME="execCommand"><!-- --></A>
   <H3>execCommand</H3>
   <PRE>Object <B>execCommand</B>(&lt;string&gt; command, &lt;boolean&gt; user_interface, &lt;mixed&gt; value)</PRE>
   
      <UL>Executes a command on the current instance. These commands can be TinyMCE internal commands prefixed with "mce" or
 they can be build in browser commands such as "Bold". A compleate list of browser commands is available on MSDN or Mozilla.org.
 This function will dispatch the execCommand function on each plugin, theme or the execcommand_callback option if none of these
 return true it will handle the command as a internal browser command.</UL>
   

   <!-- METHOD PARAMETERS START -->
   
   <UL>
   <B>Parameters:</B>
   
     <UL><CODE>command</CODE> -  Command name to execute, for example mceLink or Bold.  
      </UL> 
   
     <UL><CODE>user_interface</CODE> -  True/false state if a UI (dialog) should be presented or not.  
      </UL> 
   
     <UL><CODE>value</CODE> -  Optional command value, this can be anything.
      </UL> 
   
   </UL>
   
   <!-- METHOD PARAMETERS END -->

   

   <!-- ADDITIONAL ATTRIBUTES START -->
   
   <!-- ADDITIONAL ATTRIBUTES  END -->
<HR>

   <A NAME="getBody"><!-- --></A>
   <H3>getBody</H3>
   <PRE>HTMLElement <B>getBody</B>()</PRE>
   
      <UL>Returns the body element of a editor instance.</UL>
   

   <!-- METHOD PARAMETERS START -->
   
   <!-- METHOD PARAMETERS END -->

   
   <UL>
   <B>Returns:</B>
        <UL>
        Body element of a editor instance.   
        </UL>
   </UL>
   

   <!-- ADDITIONAL ATTRIBUTES START -->
   
   <!-- ADDITIONAL ATTRIBUTES  END -->
<HR>

   <A NAME="getDoc"><!-- --></A>
   <H3>getDoc</H3>
   <PRE>DOMDocument <B>getDoc</B>()</PRE>
   
      <UL>Returns the DOM document of a editor instance.</UL>
   

   <!-- METHOD PARAMETERS START -->
   
   <!-- METHOD PARAMETERS END -->

   
   <UL>
   <B>Returns:</B>
        <UL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -