documentation; not part of a build

This commit is contained in:
brade%netscape.com 2002-12-02 20:43:24 +00:00
Родитель a8044fd3a0
Коммит 53257c3f39
2 изменённых файлов: 1074 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,635 @@
<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="Author" content="mike judge">
<meta name="GENERATOR"
content="Mozilla/4.7 [en-gb]C-NSCP (WinNT; U) [Netscape]">
<title>embeddocs</title>
</head>
<body>
<h1><b> A Guide to Embedding The Gecko Editor</b></h1>
11/5/02<br>
<br>
<h2>In the Beginning there is MakeEditable</h2>
<p>Given an nsIWebBrowser instance, get a nsIDOMWindow from the GetContentDOMWindow
call.&nbsp; Then simply call nsIWebBrowser-&gt;do_GetInterface on the nsIWebBrowser
to retrieve the nsIEditingSession from it.&nbsp; From there you call editingSession-&gt;MakeWindowEditable(domWindow,
PR_TRUE);&nbsp;&nbsp;&nbsp; The first parameter is the nsIDOMWindow you just
retrieved and the second is whether you want the window editable or not.&nbsp;
In calling this method the editor is created underneath and the event listeners
etc. are all prepared.<br>
</p>
<p><i>&nbsp;&nbsp;&nbsp; nsCOMPtr&lt;nsIDOMWindow&gt; domWindow;<br>
&nbsp;&nbsp;&nbsp; nsIWebBrowser-&gt;GetContentDOMWindow(getter_AddRefs(domWindow));</i></p>
<p><i>&nbsp;&nbsp;&nbsp; nsCOMPtr&lt;nsIEditingSession&gt; editingSession;<br>
&nbsp;&nbsp;&nbsp; nsIWebBrowser-&gt;do_GetInterface(getter_AddRefs(editingSession));</i></p>
<p><i>&nbsp;&nbsp;&nbsp; editingSession-&gt;MakeWindowEditable(domWindow,
PR_TRUE);<br>
</i> </p>
<h2>Editor Commands</h2>
<p>To do anything meaningful you of course need to call commands and<br>
recieve updates. First get the nsICommandManager from the nsIWebBrowser<br>
using do_GetInterface.</p>
<p><i>&nbsp;&nbsp;&nbsp; nsCOMPtr&lt;nsICommandManager&gt; commandManager;<br>
&nbsp;&nbsp;&nbsp; nsIWebBrowser-&gt;do_GetInterface(getter_AddRefs(commandMgr));</i><br>
</p>
<p>To call a command use DoCommand:</p>
<p><i>&nbsp;&nbsp;&nbsp;&nbsp;</i><i>commandManager</i><i>-&gt;DoCommand(aCommand,
aCommandParams);</i> </p>
<p>&nbsp;&nbsp;&nbsp; <i>aCommand</i> is a const char * to a supported command
name (see list below).<br>
&nbsp;&nbsp;&nbsp; <i>aCommandParams</i> could possibly be a null pointer
or a pointer to a valid structure filled with relative parameters to aCommand.
(see list below for legal params)</p>
<p>To see if a command is enabled use IsCommandEnabled</p>
<p><i>&nbsp;&nbsp;&nbsp;&nbsp;</i><i>commandManager</i><i>-&gt;IsCommandEnabled(aCommand,
retval)</i> </p>
<p>To get the current command state of a given command use GetCommandState:
</p>
<p><i>&nbsp;&nbsp;&nbsp;&nbsp;</i><i>commandManager</i><i>-&gt;GetCommandState(aCommand,aCommandParams)</i>
<br>
&nbsp;</p>
<h3>Index of Commands and Parameters</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_bold, cmd_italics, cmd_underline<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">acts upon the current selection to apply
style<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_all"(boolean), "state_begin"(boolean),<br>
"state_end"(boolean), "state_mixed"(boolean) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameters<br>
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_indent, cmd_outdent<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">indents the line(s) of the current selection<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_enabled"(boolean)&nbsp; </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameters<br>
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_increaseFont, cmd_decreaseFont<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">acts upon the current selection to adjust
font size.<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_enabled" </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameters<br>
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_undo, cmd_redo<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">undoes/redoes last executed command.
&nbsp;(only availabe if txmgr.dll is present)<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_enabled" </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameters<br>
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_fontColor<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">acts upon the current selection to set
the font color<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring)<br>
</td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) **<br>
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_backgroundColor<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">sets the background color of &nbsp;the
document<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) ** </td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_fontFace<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">sets the font face for the current selection<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) ***&nbsp;"Helvetica,
Arial, sans-serif", "Times New Roman, Times, serif", "Courier New, Courier,
monospace" </td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">cmd_align<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">sets the alignment for the lines contained
in the current selection<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring)&nbsp;"left","right","center"
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">"cmd_charSet" </td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">sets the charset for the document. there
must be a clear undo stack or this will not work<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">"state_attribute" (cstring)&nbsp;&nbsp;
</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">"cmd_copy",&nbsp;"cmd_delete",&nbsp;"cmd_cut",
"cmd_paste",&nbsp;"cmd_cutOrDelete"</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">operates on the current selection to
copy, delete, cut and paste&nbsp; respectively<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">*"state_enabled" (boolean) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameter&nbsp;</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p></p>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">"cmd_deleteCharBackward",&nbsp;"cmd_deleteCharForward",
"cmd_deleteWordForward",<br>
"cmd_deleteWordBackward", "cmd_deleteToBeginningOfLine",&nbsp;"cmd_deleteToEndOfLine",<br>
</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">deletes relative to the current selection
end point.<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">*"state_enabled" (boolean) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameter&nbsp;</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">"cmd_scrollTop",&nbsp;"cmd_scrollBottom",&nbsp;"cmd_scrollPageUp",&nbsp;"cmd_scrollPageDown",<br>
"cmd_selectTop", "cmd_selectBottom",&nbsp;"cmd_selectLineNext",&nbsp;"cmd_selectLinePrevious",<br>
"cmd_selectCharPrevious", "cmd_selectCharNext",&nbsp;"cmd_selectBeginLine",&nbsp;"cmd_selectEndLine",<br>
"cmd_selectWordPrevious", "cmd_selectWordNext",&nbsp;</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">scrolls relative to the current selection
end point.<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">*"state_enabled" (boolean) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameter&nbsp;</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top">Command<br>
</td>
<td valign="top" width="75%">"cmd_movePageUp",&nbsp;"cmd_movePageDown",&nbsp;"cmd_moveTop",&nbsp;"cmd_moveBottom",<br>
"cmd_lineNext", "cmd_linePrevious",&nbsp;"cmd_charPrevious",&nbsp;"cmd_charNext",&nbsp;"cmd_beginLine",<br>
"cmd_endLine", "cmd_wordPrevious",&nbsp;"cmd_wordNext"</td>
</tr>
<tr>
<td valign="top">Description<br>
</td>
<td valign="top" width="75%">scrolls relative to the current selection
end point.<br>
</td>
</tr>
<tr>
<td valign="top">GetCommandState<br>
</td>
<td valign="top" width="75%">*"state_enabled" (boolean) </td>
</tr>
<tr>
<td valign="top">DoCommand<br>
</td>
<td valign="top" width="75%">no parameter&nbsp;</td>
</tr>
<tr>
<td valign="top"><br>
</td>
<td valign="top" width="75%"><br>
</td>
</tr>
</tbody>
</table>
<p>*Note: GetCommandState in these cases will return whether or not it is
<br>
possible to call DoCommand.&nbsp; This will not really give you any concrete
<br>
information on the state of the current indent and outdent .<br>
**Note: for color values, use the cstring representation of RRGGBB. i.e.<br>
RED="#FF0000" and BLACK="#000000"<br>
***Font Face is a cstring of the following values : "Helvetica, Arial,<br>
sans-serif", "Times New Roman, Times, serif", "Courier New, Courier,<br>
monospace"&nbsp;</p>
<h2>nsICommandParams&nbsp; </h2>
<h3>Creating:</h3>
<i>- how do you create an nsICommandParams? -saari</i><br>
<br>
<h3>Writing:</h3>
Once you have created an nsICommandParams you call the "Set" methods.
<p>SetBooleanValue<br>
SetLongValue<br>
SetDoubleValue<br>
SetStringValue<br>
SetCStringValue<br>
SetISupportsValue<br>
RemoveValue</p>
<p>Each will take a name value pair.&nbsp; In the case of SetBooleanValue
for<br>
example you use a boolean as the second parameter.</p>
<p>&nbsp;&nbsp;&nbsp;<i> commandParam-&gt;SetCStringValue("state_attribute","left");</i><br>
</p>
<h3>Reading:</h3>
For reading you may go after individual name/value pairs you know are<br>
there or you may iterate through all the name/value pairs and<br>
programatically pull off data.
<p>First<br>
GetNext (returns the next name in the name/value pair list)<br>
HasMoreElements<br>
GetValueType (numeric enum type see nsICommandParams for values)</p>
<p>If the name/value pair is known or it was obtained using the methods<br>
described above, it is possible to call the following methods.</p>
<p>GetBooleanValue<br>
GetLongValue<br>
GetDoubleValue<br>
GetStringValue<br>
GetCStringValue<br>
GetISupportsValue</p>
<p>All of these take pointers to values except for GetStringValue which<br>
demands a reference to an nsAString.</p>
<p>commandParam-&gt;GetBooleanValue("state_enabled",&amp;boolval);<br>
</p>
<br>
</body>
</html>

439
editor/docs/midas-spec.html Normal file
Просмотреть файл

@ -0,0 +1,439 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>Midas Specification</title>
<meta name="author" content="Kathleen Brade">
</head>
<body>
Last revised: &nbsp;November 15, 2002<br>
<br>
Midas is rich text editing controls for a document.<br>
<br>
<h1> Enabling Midas:</h1>
<div style="margin-left: 40px;">Given a document, you can add the attribute
"designMode" and set it to "on" to get an editable document. &nbsp;For example,
in JavaScript, if you have an iframe with an id of 'edit', you can get its
contentDocument and set designMode to "on" like this:<br>
<div style="margin-left: 40px;"><code>document.getElementById("edit").contentDocument.designMode="on";</code>
</div>
<br>
Right now, you can't completely turn off editing by setting designMode to
"off." &nbsp;Setting designMode to "off" will prevent certain operations
from being handled but typing and other actions are still possible.<br>
</div>
<br>
<h1>Invoking Commands:</h1>
<h2>execCommand<br>
</h2>
<div style="margin-left: 40px;">Given a document that has Midas enabled,
you can invoke specific commands on the document by calling execCommand with
3 parameters. &nbsp;For example, in JavaScript, if you have an editable document,
you can invoke the bold command by calling this:<br>
<div style="margin-left: 40px;"><code>editableDocument.execCommand("Bold",
false, null); </code></div>
Notes: &nbsp;If you haven't set designMode to "On", you will get an error.
&nbsp;This could also happen if you call execCommand with the wrong document.<br>
<br>
There are 3 required parameters for execCommand:<br>
<ol>
<li>command string</li>
<li>boolean flag for showing UI</li>
<li>value string</li>
</ol>
The first parameter is a string which contains the command. &nbsp;The second
parameter is a boolean flag. &nbsp;If it is set to true, you will get an
error (NS_ERROR_NOT_IMPLEMENTED). &nbsp;The third parameter is a string which
is the value. &nbsp;Some commands will require details such as the particular
size you want to set when setting a font size.<br>
<br>
The section on Supported Commands will document each command and any corresponding
values needed.<br>
</div>
<div style="margin-left: 40px;"> </div>
<br>
<h2>queryCommandEnabled</h2>
<blockquote>This command operates on the editable document. &nbsp;There is
one required parameter (the command string). &nbsp;The result is a boolean
which is true if the command is can be done given the current selection and/or
caret position. &nbsp;The result is false if the command should not be invoked
(execCommand) given the current selection and/or caret position. <br>
</blockquote>
<br>
<h2>queryCommandState</h2>
<blockquote>xxx<br>
</blockquote>
<br>
<h2>queryCommandValue</h2>
<blockquote> xxx<br>
</blockquote>
<br>
<h1>Supported Commands:</h1>
<div style="margin-left: 40px;">The following list of commands is presented
in alphabetical order. &nbsp;The commands may be mixed case or whatever makes
your code more readable.<br>
<br>
<table cellpadding="2" cellspacing="2" border="1"
style="text-align: left; width: 100%;">
<tbody>
<tr>
<td style="vertical-align: top;">command<br>
</td>
<td style="vertical-align: top;">value<br>
</td>
<td style="vertical-align: top;">explanation / behavior<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">backcolor<br>
</td>
<td style="vertical-align: top;">????<br>
</td>
<td style="vertical-align: top;">This command is untested right now.<br>
This command will set the background color of the document.</td>
</tr>
<tr>
<td style="vertical-align: top;">bold<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">If there is no selection, the insertion
point will set bold for subsequently typed characters. &nbsp;<br>
<br>
If there is a selection and all of the characters are already bold, the bold
will be removed. &nbsp;Otherwise, all selected characters will become bold.<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">copy<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">If there is a selection, this command
will copy the selection to the clipboard. &nbsp;If there isn't a selection,
nothing will happen.<br>
<br>
note: &nbsp;the shortcut key will automatically trigger this command (typically
accel-C)<br>
</td>
</tr>
<tr>
<td valign="top">createlink<br>
</td>
<td valign="top">url (href)<br>
</td>
<td valign="top">This command will not do anything if no selection
is made. &nbsp;If there is a selection, a link will be inserted around the
selection with the url parameter as the href of the link.<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">cut<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">If there is a selection, this command
will copy the selection to the clipboard and remove the selection from the
edit control. &nbsp;If there isn't a selection, nothing will happen.<br>
<br>
note: &nbsp;the shortcut key will automatically trigger this command (typically
accel-X)<br>
</td>
</tr>
<tr>
<td valign="top">delete<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top">This command will delete all text and objects that
are selected.<br>
</td>
</tr>
<tr>
<td valign="top">fontname<br>
</td>
<td valign="top">????<br>
</td>
<td valign="top">This command will set the fontface for a selection
or at the insertion point if there is no selection.<br>
</td>
</tr>
<tr>
<td valign="top">fontsize<br>
</td>
<td valign="top">????<br>
</td>
<td valign="top">This command will set the fontsize for a selection
or at the insertion point if there is no selection.<br>
</td>
</tr>
<tr>
<td valign="top">forecolor<br>
</td>
<td valign="top">????<br>
</td>
<td valign="top">This command is untested right now.<br>
This command will set the text color of the selection or at the insertion
point.<br>
</td>
</tr>
<tr>
<td valign="top">formatblock<br>
</td>
<td valign="top">????<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">heading<br>
</td>
<td valign="top">????<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">indent<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">Indent the block where the caret is
located.<br>
</td>
</tr>
<tr>
<td valign="top">inserthorizontalrule<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top">This command will insert a horizontal rule (line)
at the insertion point.<br>
<br>
Does it delete the selection?<br>
</td>
</tr>
<tr>
<td valign="top">insertimage<br>
</td>
<td valign="top">url (src)<br>
</td>
<td valign="top">This command will insert an image (referenced by url)
at the insertion point.<br>
<br>
Does it delete the selection?<br>
</td>
</tr>
<tr>
<td valign="top">insertorderedlist<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">insertunorderedlist<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">italic<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">If there is no selection, the insertion
point will set italic for subsequently typed characters. &nbsp;<br>
<br>
If there is a selection and all of the characters are already italic, the
italic will be removed. &nbsp;Otherwise, all selected characters will become
italic.</td>
</tr>
<tr>
<td valign="top">justifycenter<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">justifyfull<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">justifyleft<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">justifyright<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">outdent<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">Outdent the block where the caret
is located. &nbsp;If the block is not indented prior to calling outdent,
nothing will happen.<br>
<br>
note: &nbsp;is an error thrown if no outdenting is done?<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">paste<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">This command is disabled for the
time being to prevent security exploits.<br>
<br>
This command will paste the contents of the clipboard at the location of
the caret. &nbsp;If there is a selection, it will be deleted prior to the
insertion of the clipboard's contents.<br>
<br>
note: &nbsp;the shortcut key will automatically trigger this command (typically
accel-V)</td>
</tr>
<tr>
<td style="vertical-align: top;">redo<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">This command will redo the previous
undo action. &nbsp;If undo was not the most recent action, this command will
have no effect.<br>
<br>
note: &nbsp;the shortcut key will automatically trigger this command (typically
accel-shift-Z)</td>
</tr>
<tr>
<td valign="top">removeformat<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">selectall<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">This command will select all of the
contents within the editable area.<br>
<br>
note: &nbsp;the shortcut key will automatically trigger this command (typically
accel-A)<br>
</td>
</tr>
<tr>
<td valign="top">strikethrough<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top">If there is no selection, the insertion point will
set strikethrough for subsequently typed characters. &nbsp;<br>
<br>
If there is a selection and all of the characters are already striked, the
strikethrough will be removed. Otherwise, all selected characters will have
a line drawn through them.<br>
</td>
</tr>
<tr>
<td valign="top">subscript<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top">If there is no selection, the insertion point will
set subscript for subsequently typed characters. &nbsp;<br>
<br>
If there is a selection and all of the characters are already subscripted,
the subscript will be removed. Otherwise, all selected characters will be
drawn slightly lower than normal text.<br>
</td>
</tr>
<tr>
<td valign="top">superscript<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top">If there is no selection, the insertion point will
set superscript for subsequently typed characters. &nbsp;<br>
<br>
If there is a selection and all of the characters are already superscripted,
the superscript will be removed. Otherwise, all selected characters will
be drawn slightly higher than normal text<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">underline<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">If there is no selection, the insertion
point will set underline for subsequently typed characters. &nbsp;<br>
<br>
If there is a selection and all of the characters are already underlined,
the underline will be removed. Otherwise, all selected characters will become
underlined.</td>
</tr>
<tr>
<td style="vertical-align: top;">undo<br>
</td>
<td style="vertical-align: top;">none<br>
</td>
<td style="vertical-align: top;">This command will undo the previous
action. &nbsp;If no action has occurred in the document, then this command
will have no effect.<br>
<br>
note: &nbsp;the shortcut key will automatically trigger this command (typically
accel-Z)<br>
</td>
</tr>
<tr>
<td valign="top">unlink<br>
</td>
<td valign="top">none<br>
</td>
<td valign="top"><br>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<br>
</body>
</html>