Compare Revisions

Midas

Revision 22517:

Revision 22517 by Eel on

Revision 22518:

Revision 22518 by Coopster on

Title:
Midas
Midas
Slug:
Midas
Midas
Tags:
DOM, NeedsTechnicalReview, NeedsHelp, NeedsContent, Midas, needsattention
DOM, NeedsTechnicalReview, NeedsHelp, NeedsContent, Midas, needsattention
Content:

Revision 22517
Revision 22518
nn7    <p>
8      &nbsp;
9    </p>
n11      Midas is the code name for Gecko's built-in rich text editon14      Midas is the code name for Gecko's built-in rich text edito
>r. Midas can be enabled via JavaScript on an HTML document. When >r. Midas can be enabled via JavaScript on an HTML document. When 
>Midas is enabled, the document becomes editable by the user. Scri>Midas is enabled, the document becomes editable by the user. Scri
>pting for Midas is based on the <a class="external" href="http://>pting for Midas is based on the <a class="external" href="http://
>msdn.microsoft.com/workshop/author/dhtml/reference/commandids.asp>msdn.microsoft.com/en-us/library/ms533049.aspx" title="http://msd
>">DHTML commands</a> supported by Internet Explorer. Internet Exp>n.microsoft.com/en-us/library/ms533049.aspx">DHTML commands</a> s
>lorer supports the ability to make an entire document editable by>upported by Internet Explorer. Internet Explorer supports the abi
> setting the <code>designMode</code> property of the <a href="en/>lity to make an entire document editable by setting the <code>des
>DOM/document">document</a> object; this is how Midas is invoked i>ignMode</code> property of the <a href="/en/DOM/document" title="
>n Gecko. Internet Explorer also supports the ability to edit spec>en/DOM/document">document</a> object; this is how Midas is invoke
>ific elements using the <code>contentEditable</code> attribute; S>d in Gecko. Internet Explorer also supports the ability to edit s
>tarting with Firefox 3, Gecko also supports <code>contentEditable>pecific elements using the <code>contentEditable</code> attribute
></code>. Once Midas is invoked, a few more methods of the <code>d>; Starting with Firefox 3, Gecko also supports <code>contentEdita
>ocument</code> object become available.>ble</code>. Once Midas is invoked, a few more methods of the <cod
 >e>document</code> object become available.
n18        <a href="en/Midas/designMode">document.designMode</a>n21        <a href="/en/Midas/designMode" title="en/Midas/designMode
 >">document.designMode</a>
n31      In addition to the built-in commands, advanced editing can n34      In addition to the built-in commands, advanced editing can 
>be done by manipulating the <a href="en/DOM/Selection">Selection<>be done by manipulating the <a href="/en/DOM/Selection" title="en
>/a> and <a href="en/DOM/range">range</a> objects. It is beneficia>/DOM/Selection">Selection</a> and <a href="/en/DOM/range" title="
>l to be familiar with these objects when working with an editable>en/DOM/range">range</a> objects. It is beneficial to be familiar 
> document.>with these objects when working with an editable document.
n37      This example shows the basic structure described in the Notn40      This example shows the basic structure described in the Not
>es section&nbsp;:<br>>es section&nbsp;:
n58        <a href="en/Document.execCommand">document.execCommand</an61        <a href="/En/Document.execCommand" title="En/Document.exe
>>>cCommand">document.execCommand</a>
n64        <a href="en/Document.queryCommandEnabled">document.queryCn67        <a href="/en/Document.queryCommandEnabled" title="en/Docu
>ommandEnabled</a>>ment.queryCommandEnabled">document.queryCommandEnabled</a>
n70        <a href="en/Document.queryCommandIndeterm">document.queryn73        <a href="/en/Document.queryCommandIndeterm" title="en/Doc
>CommandIndeterm</a>>ument.queryCommandIndeterm">document.queryCommandIndeterm</a>
n76        <a href="en/Document.queryCommandState">document.queryComn79        <a href="/en/Document.queryCommandState" title="en/Docume
>mandState</a>>nt.queryCommandState">document.queryCommandState</a>
n82        <a href="en/Document.queryCommandValue">document.queryComn85        <a href="/en/Document.queryCommandValue" title="en/Docume
>mandValue</a>>nt.queryCommandValue">document.queryCommandValue</a>
nn122          <td>
123            &nbsp;
119          <td></td>124          </td>
nn136          <td>
137            &nbsp;
131          <td></td>138          </td>
nn147          <td>
148            &nbsp;
140          <td></td>149          </td>
nn175          <td>
176            &nbsp;
166          <td></td>177          </td>
nn192          <td>
193            &nbsp;
181          <td></td>194          </td>
n190          <td></td>n203          <td>
204            &nbsp;
191          <td>205          </td>
206          <td>
192            This command will delete all text and objects that ar207            This command will delete all text and objects that ar
>e selected. If no text is selected it deletes one character to th>e selected. If no text is selected it deletes one character to th
>e right. This is similar to the <i>Delete</i> button on the keybo>e right. This is similar to the <em>Delete</em> button on the key
>ard.>board.
nn286          <td>
287            &nbsp;
271          <td></td>288          </td>
nn297          <td>
298            &nbsp;
280          <td></td>299          </td>
nn358          <td>
359            &nbsp;
339          <td></td>360          </td>
nn369          <td>
370            &nbsp;
348          <td></td>371          </td>
nn380          <td>
381            &nbsp;
357          <td></td>382          </td>
nn391          <td>
392            &nbsp;
366          <td></td>393          </td>
nn405          <td>
406            &nbsp;
378          <td></td>407          </td>
nn416          <td>
417            &nbsp;
387          <td></td>418          </td>
nn427          <td>
428            &nbsp;
396          <td></td>429          </td>
nn438          <td>
439            &nbsp;
405          <td></td>440          </td>
nn449          <td>
450            &nbsp;
414          <td></td>451          </td>
nn463          <td>
464            &nbsp;
426          <td></td>465          </td>
nn480          <td>
481            &nbsp;
441          <td></td>482          </td>
nn494          <td>
495            &nbsp;
453          <td></td>496          </td>
nn505          <td>
506            &nbsp;
462          <td></td>507          </td>
nn519          <td>
520            &nbsp;
474          <td></td>521          </td>
nn533          <td>
534            &nbsp;
486          <td></td>535          </td>
nn544          <td>
545            &nbsp;
495          <td></td>546          </td>
nn558          <td>
559            &nbsp;
507          <td></td>560          </td>
nn572          <td>
573            &nbsp;
519          <td></td>574          </td>
nn586          <td>
587            &nbsp;
531          <td></td>588          </td>
nn600          <td>
601            &nbsp;
543          <td></td>602          </td>
nn616          <td>
617            &nbsp;
557          <td></td>618          </td>
tt627          <td>
628            &nbsp;
566          <td></td>629          </td>

Back to History