Changeset 2214


Ignore:
Timestamp:
07/14/2008 12:34:09 AM (7 years ago)
Author:
fredck
Message:

Several enhancements to the DOM objects.
Introduced the getUrl feature.
More docs.

Location:
CKEditor/branches/prototype
Files:
7 added
68 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/prototype/_dev/jslint/lint.conf

    r2163 r2214  
    3434+nested_comment               # nested comment
    3535+misplaced_regex              # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
    36 +ambiguous_newline            # unexpected end of line; it is ambiguous whether these lines are part of the same statement
     36-ambiguous_newline            # unexpected end of line; it is ambiguous whether these lines are part of the same statement
    3737+empty_statement              # empty statement or extra semicolon
    3838-missing_option_explicit      # the "option explicit" control comment is missing
  • CKEditor/branches/prototype/_docs/api/files.html

    r2189 r2214  
    209209
    210210
     211
     212
     213
     214
    211215        <li><a href="symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    212216
     
    266270
    267271                <li>
     272                        <a href="symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     273                </li>
     274
     275                <li>
    268276                        <a href="symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     277                </li>
     278
     279                <li>
     280                        <a href="symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    269281                </li>
    270282
     
    526538
    527539                        <div>
     540                                <h2 style="float:left"><a href="symbols/src/_source_core__dom_domobject.js.html">core/dom/domobject.js</a></h2>
     541
     542
     543                                        <div style="float:right">
     544                                                <span class="heading">Version:</span>
     545                                                        3.0
     546                                        </div>
     547
     548                                <div style="clear:both"></div>
     549
     550
     551Defines the <a href="symbols/CKEDITOR.editor.html#constructor">CKEDITOR.editor</a> class, which is the base
     552                for other classes representing DOM objects.
     553                                <dl>
     554
     555
     556
     557                                </dl>
     558                        </div>
     559                        <hr />
     560
     561                        <div>
    528562                                <h2 style="float:left"><a href="symbols/src/_source_core__dom_element.js.html">core/dom/element.js</a></h2>
    529563
     
    539573Defines the <a href="symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a> class, which
    540574                represents a DOM element.
     575                                <dl>
     576
     577
     578
     579                                </dl>
     580                        </div>
     581                        <hr />
     582
     583                        <div>
     584                                <h2 style="float:left"><a href="symbols/src/_source_core__dom_event.js.html">core/dom/event.js</a></h2>
     585
     586
     587                                        <div style="float:right">
     588                                                <span class="heading">Version:</span>
     589                                                        3.0
     590                                        </div>
     591
     592                                <div style="clear:both"></div>
     593
     594
     595Defines the <a href="symbols/CKEDITOR.dom.event.html#constructor">CKEDITOR.dom.event</a> class, which
     596                represents the a native DOM event object.
    541597                                <dl>
    542598
  • CKEditor/branches/prototype/_docs/api/index.html

    r2189 r2214  
    209209
    210210
     211
     212
     213
     214
    211215        <li><a href="symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    212216
     
    266270
    267271                <li>
     272                        <a href="symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     273                </li>
     274
     275                <li>
    268276                        <a href="symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     277                </li>
     278
     279                <li>
     280                        <a href="symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    269281                </li>
    270282
     
    401413
    402414
     415
     416
     417
     418
    403419                        <div>
    404420                                <h2><a href="symbols/CKEDITOR.env.html#constructor">CKEDITOR.env</a></h2>
     
    512528
    513529                        <div>
     530                                <h2><a href="symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a></h2>
     531
     532                        </div>
     533                        <hr />
     534
     535
     536
     537                        <div>
    514538                                <h2><a href="symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a></h2>
     539
     540                        </div>
     541                        <hr />
     542
     543
     544
     545                        <div>
     546                                <h2><a href="symbols/CKEDITOR.dom.event.html#constructor">CKEDITOR.dom.event</a></h2>
    515547
    516548                        </div>
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.ajax.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.config.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    553565                                                        <td class="nameDescription">
    554566                                                                <div class="fixedFont">
     567                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.startupFocus">startupFocus</a></b>
     568                                                                </div>
     569                                                                <div class="description">Sets whether the editor should have the focus when the page loads.</div>
     570                                                        </td>
     571                                                </tr>
     572
     573                                                <tr>
     574                                                        <td class="attributes">&lt;static&gt; &nbsp;</td>
     575                                                        <td class="nameDescription">
     576                                                                <div class="fixedFont">
    555577                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.startupMode">startupMode</a></b>
    556578                                                                </div>
     
    12441266                                        <hr />
    12451267
     1268                                        <a name=".startupFocus"> </a>
     1269                                        <div class="fixedFont" style="float:left">&lt;static&gt;
     1270
     1271                                        <span class="light">{Boolean}</span>
     1272                                        <span class="light">CKEDITOR.config.</span><b>startupFocus</b>
     1273
     1274                                        </div>
     1275
     1276
     1277                                                <div style="float:right">
     1278                                                        <span class="heading">Since:</span>
     1279                                                                3.0
     1280                                                </div>
     1281
     1282                                        <div style="clear:both"></div>
     1283
     1284                                        <div class="description">
     1285                                                Sets whether the editor should have the focus when the page loads.
     1286
     1287                                                        <br />
     1288                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>.
     1289
     1290
     1291                                        </div>
     1292
     1293
     1294
     1295
     1296                                        <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
     1297
     1298
     1299
     1300
     1301
     1302
     1303
     1304                                                        <dl class="detailList">
     1305                                                        <dt class="heading">Default Value:</dt>
     1306                                                        <dd>
     1307                                                                false
     1308                                                        </dd>
     1309                                                        </dl>
     1310
     1311
     1312                                        <hr />
     1313
    12461314                                        <a name=".startupMode"> </a>
    12471315                                        <div class="fixedFont" style="float:left">&lt;static&gt;
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.document.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    396408
    397409
     410
     411                                <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class CKEDITOR.dom.document.">
     412                                        <caption>Field Summary</caption>
     413                                        <thead>
     414                                                <tr>
     415                                                        <th scope="col">Field Attributes</th>
     416                                                        <th scope="col">Field Name and Description</th>
     417                                                </tr>
     418                                        </thead>
     419                                        <tbody>
     420
     421                                                <tr>
     422                                                        <td class="attributes">&nbsp;</td>
     423                                                        <td class="nameDescription">
     424                                                                <div class="fixedFont">
     425                                                                <b><a href="../symbols/CKEDITOR.dom.document.html#$">$</a></b>
     426                                                                </div>
     427                                                                <div class="description">The native DOM document represented by this class instance.</div>
     428                                                        </td>
     429                                                </tr>
     430
     431                                        </tbody>
     432                                </table>
     433
     434
     435
     436
     437
    398438<!-- ============================== methods summary ======================== -->
    399439
     
    455495                                                </tr>
    456496
     497                                                <tr>
     498                                                        <td class="attributes">&nbsp;</td>
     499                                                        <td class="nameDescription">
     500                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.document.html#getWindow">getWindow</a></b>()
     501                                                                </div>
     502                                                                <div class="description">Get's the window object that holds this document.</div>
     503                                                        </td>
     504                                                </tr>
     505
    457506                                        </tbody>
    458507                                </table>
     
    518567<!-- ============================== field details ========================== -->
    519568
    520 
    521 <!-- ============================== method details ========================= -->
    522 
    523569                                <div class="sectionTitle">
    524                                         Method Detail
     570                                        Field Detail
    525571                                </div>
    526572
    527                                         <a name="appendStyleSheet"> </a>
     573                                        <a name="$"> </a>
    528574                                        <div class="fixedFont" style="float:left">
    529575
    530                                         <span class="light">{Undefined}</span>
    531                                         <b>appendStyleSheet</b>(cssFileUrl)
     576                                        <span class="light">{Object}</span>
     577                                        <b>$</b>
    532578
    533579                                        </div>
     
    541587                                        <div style="clear:both"></div>
    542588
    543 
    544589                                        <div class="description">
    545                                                 Appends a CSS file to the document.
    546 
    547 
    548                                         </div>
    549 
    550 
    551 
    552 
    553                                         <pre class="code"><b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;</pre>
    554 
    555 
    556 
    557 
    558 
    559                                                         <dl class="detailList">
    560                                                         <dt class="heading">Parameters:</dt>
    561 
    562                                                                 <dt>
    563                                                                         <span class="light fixedFont">{String}</span> <b>cssFileUrl</b>
    564 
    565                                                                 </dt>
    566                                                                 <dd>The CSS file URL.</dd>
    567 
    568                                                         </dl>
    569 
    570 
    571 
    572 
    573 
    574 
    575 
    576                                         <hr />
    577 
    578                                         <a name="equals"> </a>
     590                                                The native DOM document represented by this class instance.
     591
     592
     593                                        </div>
     594
     595
     596
     597
     598
     599
     600
     601
     602
     603
     604
     605
     606
     607
     608
     609<!-- ============================== method details ========================= -->
     610
     611                                <div class="sectionTitle">
     612                                        Method Detail
     613                                </div>
     614
     615                                        <a name="appendStyleSheet"> </a>
    579616                                        <div class="fixedFont" style="float:left">
    580617
    581                                         <span class="light">{Boolean}</span>
    582                                         <b>equals</b>(object)
     618                                        <span class="light">{Undefined}</span>
     619                                        <b>appendStyleSheet</b>(cssFileUrl)
    583620
    584621                                        </div>
     
    594631
    595632                                        <div class="description">
    596                                                 Determines whether the specified object is equal to the current object.
    597 
    598 
    599                                         </div>
    600 
    601 
    602 
    603 
    604                                         <pre class="code">var doc = new CKEDITOR.dom.document( document );
    605 alert( doc.equals( CKEDITOR.document ) );  // "true"
    606 alert( doc == CKEDITOR.document );         // "false"</pre>
     633                                                Appends a CSS file to the document.
     634
     635
     636                                        </div>
     637
     638
     639
     640
     641                                        <pre class="code"><b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;</pre>
    607642
    608643
     
    614649
    615650                                                                <dt>
    616                                                                         <span class="light fixedFont">{Object}</span> <b>object</b>
     651                                                                        <span class="light fixedFont">{String}</span> <b>cssFileUrl</b>
    617652
    618653                                                                </dt>
    619                                                                 <dd>The object to compare with the current object.</dd>
     654                                                                <dd>The CSS file URL.</dd>
    620655
    621656                                                        </dl>
     
    624659
    625660
    626                                                         <dl class="detailList">
    627                                                         <dt class="heading">Returns:</dt>
    628 
    629                                                                 <dd><span class="light fixedFont">{Boolean}</span> "true" if the object is equal.</dd>
    630 
    631                                                         </dl>
    632 
    633661
    634662
     
    636664                                        <hr />
    637665
    638                                         <a name="getBody"> </a>
     666                                        <a name="equals"> </a>
    639667                                        <div class="fixedFont" style="float:left">
    640668
    641                                         <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    642                                         <b>getBody</b>()
     669                                        <span class="light">{Boolean}</span>
     670                                        <b>equals</b>(object)
    643671
    644672                                        </div>
     
    654682
    655683                                        <div class="description">
    656                                                 Gets the &lt;body&gt; element for this document.
    657 
    658 
    659                                         </div>
    660 
    661 
    662 
    663 
    664                                         <pre class="code">var element = <b>CKEDITOR.document.getBody()</b>;
    665 alert( element.getName() );  // "body"</pre>
    666 
    667 
    668 
    669 
     684                                                Determines whether the specified object is equal to the current object.
     685
     686
     687                                        </div>
     688
     689
     690
     691
     692                                        <pre class="code">var doc = new CKEDITOR.dom.document( document );
     693alert( doc.equals( CKEDITOR.document ) );  // "true"
     694alert( doc == CKEDITOR.document );         // "false"</pre>
     695
     696
     697
     698
     699
     700                                                        <dl class="detailList">
     701                                                        <dt class="heading">Parameters:</dt>
     702
     703                                                                <dt>
     704                                                                        <span class="light fixedFont">{Object}</span> <b>object</b>
     705
     706                                                                </dt>
     707                                                                <dd>The object to compare with the current object.</dd>
     708
     709                                                        </dl>
    670710
    671711
     
    675715                                                        <dt class="heading">Returns:</dt>
    676716
    677                                                                 <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> The &lt;body&gt; element.</dd>
     717                                                                <dd><span class="light fixedFont">{Boolean}</span> "true" if the object is equal.</dd>
    678718
    679719                                                        </dl>
     
    684724                                        <hr />
    685725
    686                                         <a name="getById"> </a>
     726                                        <a name="getBody"> </a>
    687727                                        <div class="fixedFont" style="float:left">
    688728
    689729                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    690                                         <b>getById</b>(elementId)
     730                                        <b>getBody</b>()
    691731
    692732                                        </div>
     
    702742
    703743                                        <div class="description">
    704                                                 Gets and element based on its id.
    705 
    706 
    707                                         </div>
    708 
    709 
    710 
    711 
    712                                         <pre class="code">var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
    713 alert( element.getId() );  // "myElement"</pre>
    714 
    715 
    716 
    717 
    718 
    719                                                         <dl class="detailList">
    720                                                         <dt class="heading">Parameters:</dt>
    721 
    722                                                                 <dt>
    723                                                                         <span class="light fixedFont">{String}</span> <b>elementId</b>
    724 
    725                                                                 </dt>
    726                                                                 <dd>The element id.</dd>
    727 
    728                                                         </dl>
     744                                                Gets the &lt;body&gt; element for this document.
     745
     746
     747                                        </div>
     748
     749
     750
     751
     752                                        <pre class="code">var element = <b>CKEDITOR.document.getBody()</b>;
     753alert( element.getName() );  // "body"</pre>
     754
     755
     756
     757
    729758
    730759
     
    734763                                                        <dt class="heading">Returns:</dt>
    735764
    736                                                                 <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> The element instance, or null if not found.</dd>
     765                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> The &lt;body&gt; element.</dd>
    737766
    738767                                                        </dl>
     
    743772                                        <hr />
    744773
    745                                         <a name="getHead"> </a>
     774                                        <a name="getById"> </a>
    746775                                        <div class="fixedFont" style="float:left">
    747776
    748777                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    749                                         <b>getHead</b>()
     778                                        <b>getById</b>(elementId)
    750779
    751780                                        </div>
     
    761790
    762791                                        <div class="description">
     792                                                Gets and element based on its id.
     793
     794
     795                                        </div>
     796
     797
     798
     799
     800                                        <pre class="code">var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
     801alert( element.getId() );  // "myElement"</pre>
     802
     803
     804
     805
     806
     807                                                        <dl class="detailList">
     808                                                        <dt class="heading">Parameters:</dt>
     809
     810                                                                <dt>
     811                                                                        <span class="light fixedFont">{String}</span> <b>elementId</b>
     812
     813                                                                </dt>
     814                                                                <dd>The element id.</dd>
     815
     816                                                        </dl>
     817
     818
     819
     820
     821                                                        <dl class="detailList">
     822                                                        <dt class="heading">Returns:</dt>
     823
     824                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> The element instance, or null if not found.</dd>
     825
     826                                                        </dl>
     827
     828
     829
     830
     831                                        <hr />
     832
     833                                        <a name="getHead"> </a>
     834                                        <div class="fixedFont" style="float:left">
     835
     836                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
     837                                        <b>getHead</b>()
     838
     839                                        </div>
     840
     841
     842                                                <div style="float:right">
     843                                                        <span class="heading">Since:</span>
     844                                                                3.0
     845                                                </div>
     846
     847                                        <div style="clear:both"></div>
     848
     849
     850                                        <div class="description">
    763851                                                Gets the &lt;head&gt; element for this document.
    764852
     
    783871
    784872                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> The &lt;head&gt; element.</dd>
     873
     874                                                        </dl>
     875
     876
     877
     878
     879                                        <hr />
     880
     881                                        <a name="getWindow"> </a>
     882                                        <div class="fixedFont" style="float:left">
     883
     884                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.window.html#constructor">CKEDITOR.dom.window</a>}</span>
     885                                        <b>getWindow</b>()
     886
     887                                        </div>
     888
     889
     890                                                <div style="float:right">
     891                                                        <span class="heading">Since:</span>
     892                                                                3.0
     893                                                </div>
     894
     895                                        <div style="clear:both"></div>
     896
     897
     898                                        <div class="description">
     899                                                Get's the window object that holds this document.
     900
     901
     902                                        </div>
     903
     904
     905
     906
     907
     908
     909
     910
     911
     912
     913
     914                                                        <dl class="detailList">
     915                                                        <dt class="heading">Returns:</dt>
     916
     917                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.window.html#constructor">CKEDITOR.dom.window</a>}</span> The window object.</dd>
    785918
    786919                                                        </dl>
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.element.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    425437
    426438                                <dl class="inheritsList">
    427 
     439                                <dt>Fields borrowed from class <a href="../symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.domObject.html#getCustomData">getCustomData</a>, <a href="../symbols/CKEDITOR.dom.domObject.html#setCustomData">setCustomData</a></dd>
    428440                                </dl>
    429441
     
    484496                                                        <td class="attributes">&nbsp;</td>
    485497                                                        <td class="nameDescription">
     498                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#focus">focus</a></b>()
     499                                                                </div>
     500                                                                <div class="description">Moves the selection focus to this element.</div>
     501                                                        </td>
     502                                                </tr>
     503
     504                                                <tr>
     505                                                        <td class="attributes">&nbsp;</td>
     506                                                        <td class="nameDescription">
    486507                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#getDocument">getDocument</a></b>()
    487508                                                                </div>
     
    538559                                                        <td class="attributes">&nbsp;</td>
    539560                                                        <td class="nameDescription">
     561                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#getValue">getValue</a></b>()
     562                                                                </div>
     563                                                                <div class="description">Gets the value set to this element.</div>
     564                                                        </td>
     565                                                </tr>
     566
     567                                                <tr>
     568                                                        <td class="attributes">&nbsp;</td>
     569                                                        <td class="nameDescription">
     570                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#getWindow">getWindow</a></b>()
     571                                                                </div>
     572                                                                <div class="description">Gets the window object that contains this element.</div>
     573                                                        </td>
     574                                                </tr>
     575
     576                                                <tr>
     577                                                        <td class="attributes">&nbsp;</td>
     578                                                        <td class="nameDescription">
    540579                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#hide">hide</a></b>()
    541580                                                                </div>
     
    622661                                                                </div>
    623662                                                                <div class="description">Sets the element contents as plain text.</div>
     663                                                        </td>
     664                                                </tr>
     665
     666                                                <tr>
     667                                                        <td class="attributes">&nbsp;</td>
     668                                                        <td class="nameDescription">
     669                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#setValue">setValue</a></b>(value)
     670                                                                </div>
     671                                                                <div class="description">Sets the element value.</div>
    624672                                                        </td>
    625673                                                </tr>
     
    640688
    641689                                <dl class="inheritsList">
    642                                 <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.dom.node.html#constructor">CKEDITOR.dom.node</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.node.html#appendTo">appendTo</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertAfter">insertAfter</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertBefore">insertBefore</a></dd>
     690                                <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.dom.node.html#constructor">CKEDITOR.dom.node</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.node.html#appendTo">appendTo</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertAfter">insertAfter</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertBefore">insertBefore</a></dd><dt>Methods borrowed from class <a href="../symbols/CKEDITOR.event.html#constructor">CKEDITOR.event</a>: </dt><dd><a href="../symbols/CKEDITOR.event.html#fire">fire</a>, <a href="../symbols/CKEDITOR.event.html#fireOnce">fireOnce</a>, <a href="../symbols/CKEDITOR.event.html#hasListeners">hasListeners</a>, <a href="../symbols/CKEDITOR.event.html#.implementOn">implementOn</a>, <a href="../symbols/CKEDITOR.event.html#on">on</a>, <a href="../symbols/CKEDITOR.event.html#removeListener">removeListener</a></dd>
    643691                                </dl>
    644692
     
    10151063                                        <hr />
    10161064
     1065                                        <a name="focus"> </a>
     1066                                        <div class="fixedFont" style="float:left">
     1067
     1068                                        <span class="light">{Undefined}</span>
     1069                                        <b>focus</b>()
     1070
     1071                                        </div>
     1072
     1073
     1074                                                <div style="float:right">
     1075                                                        <span class="heading">Since:</span>
     1076                                                                3.0
     1077                                                </div>
     1078
     1079                                        <div style="clear:both"></div>
     1080
     1081
     1082                                        <div class="description">
     1083                                                Moves the selection focus to this element.
     1084
     1085
     1086                                        </div>
     1087
     1088
     1089
     1090
     1091                                        <pre class="code">var element = CKEDITOR.document.getById( 'myTextarea' );
     1092<b>element.focus()</b>;</pre>
     1093
     1094
     1095
     1096
     1097
     1098
     1099
     1100
     1101
     1102
     1103
     1104                                        <hr />
     1105
    10171106                                        <a name="getDocument"> </a>
    10181107                                        <div class="fixedFont" style="float:left">
     
    12981387
    12991388                                                                <dd><span class="light fixedFont">{String}</span> The element name, or null if not available.</dd>
     1389
     1390                                                        </dl>
     1391
     1392
     1393
     1394
     1395                                        <hr />
     1396
     1397                                        <a name="getValue"> </a>
     1398                                        <div class="fixedFont" style="float:left">
     1399
     1400                                        <span class="light">{String}</span>
     1401                                        <b>getValue</b>()
     1402
     1403                                        </div>
     1404
     1405
     1406                                                <div style="float:right">
     1407                                                        <span class="heading">Since:</span>
     1408                                                                3.0
     1409                                                </div>
     1410
     1411                                        <div style="clear:both"></div>
     1412
     1413
     1414                                        <div class="description">
     1415                                                Gets the value set to this element. This value is usually available
     1416for form field elements.
     1417
     1418
     1419                                        </div>
     1420
     1421
     1422
     1423
     1424                                        <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
     1425
     1426
     1427
     1428
     1429
     1430
     1431
     1432
     1433                                                        <dl class="detailList">
     1434                                                        <dt class="heading">Returns:</dt>
     1435
     1436                                                                <dd><span class="light fixedFont">{String}</span> The element value.</dd>
     1437
     1438                                                        </dl>
     1439
     1440
     1441
     1442
     1443                                        <hr />
     1444
     1445                                        <a name="getWindow"> </a>
     1446                                        <div class="fixedFont" style="float:left">
     1447
     1448                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.window.html#constructor">CKEDITOR.dom.window</a>}</span>
     1449                                        <b>getWindow</b>()
     1450
     1451                                        </div>
     1452
     1453
     1454                                                <div style="float:right">
     1455                                                        <span class="heading">Since:</span>
     1456                                                                3.0
     1457                                                </div>
     1458
     1459                                        <div style="clear:both"></div>
     1460
     1461
     1462                                        <div class="description">
     1463                                                Gets the window object that contains this element.
     1464
     1465
     1466                                        </div>
     1467
     1468
     1469
     1470
     1471
     1472
     1473
     1474
     1475
     1476
     1477
     1478                                                        <dl class="detailList">
     1479                                                        <dt class="heading">Returns:</dt>
     1480
     1481                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.window.html#constructor">CKEDITOR.dom.window</a>}</span> The window object.</dd>
    13001482
    13011483                                                        </dl>
     
    14991681                                        <div class="fixedFont" style="float:left">
    15001682
    1501                                         <span class="light">{Undefined}</span>
     1683                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    15021684                                        <b>setAttribute</b>(name, value)
    15031685
     
    15501732
    15511733
     1734                                                        <dl class="detailList">
     1735                                                        <dt class="heading">Returns:</dt>
     1736
     1737                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> This element instance.</dd>
     1738
     1739                                                        </dl>
     1740
    15521741
    15531742
     
    15581747                                        <div class="fixedFont" style="float:left">
    15591748
    1560                                         <span class="light">{Undefined}</span>
     1749                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    15611750                                        <b>setAttributes</b>(attributesPairs)
    15621751
     
    16051794
    16061795
     1796                                                        <dl class="detailList">
     1797                                                        <dt class="heading">Returns:</dt>
     1798
     1799                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> This element instance.</dd>
     1800
     1801                                                        </dl>
     1802
    16071803
    16081804
     
    16741870                                        <div class="fixedFont" style="float:left">
    16751871
    1676                                         <span class="light">{Undefined}</span>
     1872                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    16771873                                        <b>setStyle</b>(name, value)
    16781874
     
    17271923
    17281924
     1925                                                        <dl class="detailList">
     1926                                                        <dt class="heading">Returns:</dt>
     1927
     1928                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> This element instance.</dd>
     1929
     1930                                                        </dl>
     1931
    17291932
    17301933
     
    17351938                                        <div class="fixedFont" style="float:left">
    17361939
    1737                                         <span class="light">{Undefined}</span>
     1940                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
    17381941                                        <b>setStyles</b>(stylesPairs)
    17391942
     
    17821985
    17831986
     1987                                                        <dl class="detailList">
     1988                                                        <dt class="heading">Returns:</dt>
     1989
     1990                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> This element instance.</dd>
     1991
     1992                                                        </dl>
     1993
    17841994
    17851995
     
    18392049
    18402050                                                                <dd><span class="light fixedFont">{String}</span> The inserted text.</dd>
     2051
     2052                                                        </dl>
     2053
     2054
     2055
     2056
     2057                                        <hr />
     2058
     2059                                        <a name="setValue"> </a>
     2060                                        <div class="fixedFont" style="float:left">
     2061
     2062                                        <span class="light">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span>
     2063                                        <b>setValue</b>(value)
     2064
     2065                                        </div>
     2066
     2067
     2068                                                <div style="float:right">
     2069                                                        <span class="heading">Since:</span>
     2070                                                                3.0
     2071                                                </div>
     2072
     2073                                        <div style="clear:both"></div>
     2074
     2075
     2076                                        <div class="description">
     2077                                                Sets the element value. This function is usually used with form
     2078field element.
     2079
     2080
     2081                                        </div>
     2082
     2083
     2084
     2085
     2086                                        <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
     2087
     2088
     2089
     2090
     2091
     2092                                                        <dl class="detailList">
     2093                                                        <dt class="heading">Parameters:</dt>
     2094
     2095                                                                <dt>
     2096                                                                        <span class="light fixedFont">{String}</span> <b>value</b>
     2097
     2098                                                                </dt>
     2099                                                                <dd>The element value.</dd>
     2100
     2101                                                        </dl>
     2102
     2103
     2104
     2105
     2106                                                        <dl class="detailList">
     2107                                                        <dt class="heading">Returns:</dt>
     2108
     2109                                                                <dd><span class="light fixedFont">{<a href="../symbols/CKEDITOR.dom.element.html#constructor">CKEDITOR.dom.element</a>}</span> This element instance.</dd>
    18412110
    18422111                                                        </dl>
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.node.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    360372<!-- ============================== class summary ========================== -->
    361373                        <p class="description">
     374                                <br />Extends
     375                                        <a href="../symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a>.<br />
    362376
    363377
     
    422436
    423437
     438                                <dl class="inheritsList">
     439                                <dt>Fields borrowed from class <a href="../symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.domObject.html#getCustomData">getCustomData</a>, <a href="../symbols/CKEDITOR.dom.domObject.html#setCustomData">setCustomData</a></dd>
     440                                </dl>
     441
    424442
    425443
     
    470488
    471489
     490                                <dl class="inheritsList">
     491                                <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.event.html#constructor">CKEDITOR.event</a>: </dt><dd><a href="../symbols/CKEDITOR.event.html#fire">fire</a>, <a href="../symbols/CKEDITOR.event.html#fireOnce">fireOnce</a>, <a href="../symbols/CKEDITOR.event.html#hasListeners">hasListeners</a>, <a href="../symbols/CKEDITOR.event.html#.implementOn">implementOn</a>, <a href="../symbols/CKEDITOR.event.html#on">on</a>, <a href="../symbols/CKEDITOR.event.html#removeListener">removeListener</a></dd>
     492                                </dl>
     493
    472494
    473495
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.text.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    425437
    426438                                <dl class="inheritsList">
    427 
     439                                <dt>Fields borrowed from class <a href="../symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.domObject.html#getCustomData">getCustomData</a>, <a href="../symbols/CKEDITOR.dom.domObject.html#setCustomData">setCustomData</a></dd>
    428440                                </dl>
    429441
     
    437449
    438450                                <dl class="inheritsList">
    439                                 <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.dom.node.html#constructor">CKEDITOR.dom.node</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.node.html#appendTo">appendTo</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertAfter">insertAfter</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertBefore">insertBefore</a></dd>
     451                                <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.dom.node.html#constructor">CKEDITOR.dom.node</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.node.html#appendTo">appendTo</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertAfter">insertAfter</a>, <a href="../symbols/CKEDITOR.dom.node.html#insertBefore">insertBefore</a></dd><dt>Methods borrowed from class <a href="../symbols/CKEDITOR.event.html#constructor">CKEDITOR.event</a>: </dt><dd><a href="../symbols/CKEDITOR.event.html#fire">fire</a>, <a href="../symbols/CKEDITOR.event.html#fireOnce">fireOnce</a>, <a href="../symbols/CKEDITOR.event.html#hasListeners">hasListeners</a>, <a href="../symbols/CKEDITOR.event.html#.implementOn">implementOn</a>, <a href="../symbols/CKEDITOR.event.html#on">on</a>, <a href="../symbols/CKEDITOR.event.html#removeListener">removeListener</a></dd>
    440452                                </dl>
    441453
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.window.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    360372<!-- ============================== class summary ========================== -->
    361373                        <p class="description">
     374                                <br />Extends
     375                                        <a href="../symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a>.<br />
    362376
    363377
     
    396410
    397411
     412
     413
     414
     415                                <dl class="inheritsList">
     416                                <dt>Fields borrowed from class <a href="../symbols/CKEDITOR.dom.domObject.html#constructor">CKEDITOR.dom.domObject</a>: </dt><dd><a href="../symbols/CKEDITOR.dom.domObject.html#$">$</a>, <a href="../symbols/CKEDITOR.dom.domObject.html#getCustomData">getCustomData</a>, <a href="../symbols/CKEDITOR.dom.domObject.html#setCustomData">setCustomData</a></dd>
     417                                </dl>
     418
     419
     420
    398421<!-- ============================== methods summary ======================== -->
     422
     423
     424
     425                                <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class CKEDITOR.dom.window.">
     426                                        <caption>Method Summary</caption>
     427                                        <thead>
     428                                                <tr>
     429                                                        <th scope="col">Method Attributes</th>
     430                                                        <th scope="col">Method Name and Description</th>
     431                                                </tr>
     432                                        </thead>
     433                                        <tbody>
     434
     435                                                <tr>
     436                                                        <td class="attributes">&nbsp;</td>
     437                                                        <td class="nameDescription">
     438                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.window.html#focus">focus</a></b>()
     439                                                                </div>
     440                                                                <div class="description">Moves the selection focus to this window.</div>
     441                                                        </td>
     442                                                </tr>
     443
     444                                        </tbody>
     445                                </table>
     446
     447
     448
     449                                <dl class="inheritsList">
     450                                <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.event.html#constructor">CKEDITOR.event</a>: </dt><dd><a href="../symbols/CKEDITOR.event.html#fire">fire</a>, <a href="../symbols/CKEDITOR.event.html#fireOnce">fireOnce</a>, <a href="../symbols/CKEDITOR.event.html#hasListeners">hasListeners</a>, <a href="../symbols/CKEDITOR.event.html#.implementOn">implementOn</a>, <a href="../symbols/CKEDITOR.event.html#on">on</a>, <a href="../symbols/CKEDITOR.event.html#removeListener">removeListener</a></dd>
     451                                </dl>
     452
    399453
    400454
     
    458512<!-- ============================== method details ========================= -->
    459513
     514                                <div class="sectionTitle">
     515                                        Method Detail
     516                                </div>
     517
     518                                        <a name="focus"> </a>
     519                                        <div class="fixedFont" style="float:left">
     520
     521                                        <span class="light">{Undefined}</span>
     522                                        <b>focus</b>()
     523
     524                                        </div>
     525
     526
     527                                                <div style="float:right">
     528                                                        <span class="heading">Since:</span>
     529                                                                3.0
     530                                                </div>
     531
     532                                        <div style="clear:both"></div>
     533
     534
     535                                        <div class="description">
     536                                                Moves the selection focus to this window.
     537
     538
     539                                        </div>
     540
     541
     542
     543
     544                                        <pre class="code">var win = new CKEDITOR.dom.window( window );
     545<b>win.focus()</b>;</pre>
     546
     547
     548
     549
     550
     551
     552
     553
     554
     555
     556
     557
     558
     559
    460560
    461561                        <hr />
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.editor.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    486498                                                        <td class="attributes">&nbsp;</td>
    487499                                                        <td class="nameDescription">
     500                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.editor.html#focus">focus</a></b>()
     501                                                                </div>
     502                                                                <div class="description">Moves the selection focus to the editing are space in the editor.</div>
     503                                                        </td>
     504                                                </tr>
     505
     506                                                <tr>
     507                                                        <td class="attributes">&nbsp;</td>
     508                                                        <td class="nameDescription">
    488509                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.editor.html#getData">getData</a></b>()
    489510                                                                </div>
     
    526547
    527548                                <dl class="inheritsList">
    528                                 <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.event.html#constructor">CKEDITOR.event</a>: </dt><dd><a href="../symbols/CKEDITOR.event.html#fire">fire</a>, <a href="../symbols/CKEDITOR.event.html#fireOnce">fireOnce</a>, <a href="../symbols/CKEDITOR.event.html#.implementOn">implementOn</a>, <a href="../symbols/CKEDITOR.event.html#on">on</a>, <a href="../symbols/CKEDITOR.event.html#removeListener">removeListener</a></dd>
     549                                <dt>Methods borrowed from class <a href="../symbols/CKEDITOR.event.html#constructor">CKEDITOR.event</a>: </dt><dd><a href="../symbols/CKEDITOR.event.html#fire">fire</a>, <a href="../symbols/CKEDITOR.event.html#fireOnce">fireOnce</a>, <a href="../symbols/CKEDITOR.event.html#hasListeners">hasListeners</a>, <a href="../symbols/CKEDITOR.event.html#.implementOn">implementOn</a>, <a href="../symbols/CKEDITOR.event.html#on">on</a>, <a href="../symbols/CKEDITOR.event.html#removeListener">removeListener</a></dd>
    529550                                </dl>
    530551
     
    818839                                        <hr />
    819840
    820                                         <a name="getData"> </a>
     841                                        <a name="focus"> </a>
    821842                                        <div class="fixedFont" style="float:left">
    822843
    823                                         <span class="light">{String}</span>
    824                                         <b>getData</b>()
     844                                        <span class="light">{Undefined}</span>
     845                                        <b>focus</b>()
    825846
    826847                                        </div>
     
    836857
    837858                                        <div class="description">
    838                                                 Gets the editor data. The data will be in raw format. It is the same
    839 data that is posted by the editor.
    840 
    841 
    842                                         </div>
    843 
    844 
    845 
    846 
    847                                         <pre class="code">if ( CKEDITOR.instances.editor1.<b>getData()</b> == '' )
    848     alert( 'There is no data available' );</pre>
    849 
    850 
    851 
    852 
    853 
    854 
    855 
    856 
    857                                                         <dl class="detailList">
    858                                                         <dt class="heading">Returns:</dt>
    859 
    860                                                                 <dd>(String) The editor data.</dd>
    861 
    862                                                         </dl>
     859                                                Moves the selection focus to the editing are space in the editor.
     860
     861                                                        <br />
     862                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>.
     863
     864
     865                                        </div>
     866
     867
     868
     869
     870                                        <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
     871
     872
     873
     874
     875
     876
     877
    863878
    864879
     
    867882                                        <hr />
    868883
    869                                         <a name="setData"> </a>
     884                                        <a name="getData"> </a>
    870885                                        <div class="fixedFont" style="float:left">
    871886
    872                                         <span class="light">{Undefined}</span>
    873                                         <b>setData</b>(data)
     887                                        <span class="light">{String}</span>
     888                                        <b>getData</b>()
    874889
    875890                                        </div>
     
    885900
    886901                                        <div class="description">
    887                                                 Sets the editor data. The data must be provided in raw format.
    888 
    889 
    890                                         </div>
    891 
    892 
    893 
    894 
    895                                         <pre class="code">CKEDITOR.instances.editor1.<b>setData( '&lt;p&gt;This is the editor data.&lt;/p&gt;' )</b>;</pre>
     902                                                Gets the editor data. The data will be in raw format. It is the same
     903data that is posted by the editor.
     904
     905
     906                                        </div>
     907
     908
     909
     910
     911                                        <pre class="code">if ( CKEDITOR.instances.editor1.<b>getData()</b> == '' )
     912    alert( 'There is no data available' );</pre>
     913
     914
     915
    896916
    897917
     
    900920
    901921                                                        <dl class="detailList">
    902                                                         <dt class="heading">Parameters:</dt>
    903 
    904                                                                 <dt>
    905                                                                         <b>data</b>
    906 
    907                                                                 </dt>
    908                                                                 <dd></dd>
     922                                                        <dt class="heading">Returns:</dt>
     923
     924                                                                <dd>(String) The editor data.</dd>
    909925
    910926                                                        </dl>
     
    913929
    914930
    915 
    916 
    917 
    918931                                        <hr />
    919932
    920                                         <a name="setMode"> </a>
     933                                        <a name="setData"> </a>
    921934                                        <div class="fixedFont" style="float:left">
    922935
    923936                                        <span class="light">{Undefined}</span>
    924                                         <b>setMode</b>(mode)
     937                                        <b>setData</b>(data)
    925938
    926939                                        </div>
     
    936949
    937950                                        <div class="description">
    938                                                 Sets the current editing mode in this editor instance.
    939 
    940                                                         <br />
    941                                                         <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>.
    942 
    943 
    944                                         </div>
    945 
    946 
    947 
    948 
    949                                         <pre class="code">// Switch to "source" view.
    950 CKEDITOR.instances.editor1.setMode( 'source' );</pre>
     951                                                Sets the editor data. The data must be provided in raw format.
     952
     953
     954                                        </div>
     955
     956
     957
     958
     959                                        <pre class="code">CKEDITOR.instances.editor1.<b>setData( '&lt;p&gt;This is the editor data.&lt;/p&gt;' )</b>;</pre>
    951960
    952961
     
    958967
    959968                                                                <dt>
    960                                                                         <span class="light fixedFont">{String}</span> <b>mode</b>
     969                                                                        <b>data</b>
    961970
    962971                                                                </dt>
    963                                                                 <dd>A registered mode name.</dd>
     972                                                                <dd></dd>
    964973
    965974                                                        </dl>
     
    973982                                        <hr />
    974983
    975                                         <a name="updateElement"> </a>
     984                                        <a name="setMode"> </a>
    976985                                        <div class="fixedFont" style="float:left">
    977986
    978987                                        <span class="light">{Undefined}</span>
    979                                         <b>updateElement</b>()
     988                                        <b>setMode</b>(mode)
    980989
    981990                                        </div>
     
    9911000
    9921001                                        <div class="description">
     1002                                                Sets the current editing mode in this editor instance.
     1003
     1004                                                        <br />
     1005                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>.
     1006
     1007
     1008                                        </div>
     1009
     1010
     1011
     1012
     1013                                        <pre class="code">// Switch to "source" view.
     1014CKEDITOR.instances.editor1.setMode( 'source' );</pre>
     1015
     1016
     1017
     1018
     1019
     1020                                                        <dl class="detailList">
     1021                                                        <dt class="heading">Parameters:</dt>
     1022
     1023                                                                <dt>
     1024                                                                        <span class="light fixedFont">{String}</span> <b>mode</b>
     1025
     1026                                                                </dt>
     1027                                                                <dd>A registered mode name.</dd>
     1028
     1029                                                        </dl>
     1030
     1031
     1032
     1033
     1034
     1035
     1036
     1037                                        <hr />
     1038
     1039                                        <a name="updateElement"> </a>
     1040                                        <div class="fixedFont" style="float:left">
     1041
     1042                                        <span class="light">{Undefined}</span>
     1043                                        <b>updateElement</b>()
     1044
     1045                                        </div>
     1046
     1047
     1048                                                <div style="float:right">
     1049                                                        <span class="heading">Since:</span>
     1050                                                                3.0
     1051                                                </div>
     1052
     1053                                        <div style="clear:both"></div>
     1054
     1055
     1056                                        <div class="description">
    9931057                                                Updates the &lt;textarea&gt; element that has been replaced by the editor with
    9941058the current data available in the editor.
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.env.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.event.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    442454                                                        <td class="attributes">&nbsp;</td>
    443455                                                        <td class="nameDescription">
     456                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.event.html#hasListeners">hasListeners</a></b>(eventName)
     457                                                                </div>
     458                                                                <div class="description">Checks if there is any listener registered to a given event.</div>
     459                                                        </td>
     460                                                </tr>
     461
     462                                                <tr>
     463                                                        <td class="attributes">&nbsp;</td>
     464                                                        <td class="nameDescription">
    444465                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.event.html#on">on</a></b>(eventName, listenerFunction, scopeObj, listenerData, priority)
    445466                                                                </div>
     
    739760                                        <hr />
    740761
     762                                        <a name="hasListeners"> </a>
     763                                        <div class="fixedFont" style="float:left">
     764
     765                                        <span class="light">{Undefined}</span>
     766                                        <b>hasListeners</b>(eventName)
     767
     768                                        </div>
     769
     770
     771                                                <div style="float:right">
     772                                                        <span class="heading">Since:</span>
     773                                                                3.0
     774                                                </div>
     775
     776                                        <div style="clear:both"></div>
     777
     778
     779                                        <div class="description">
     780                                                Checks if there is any listener registered to a given event.
     781
     782
     783                                        </div>
     784
     785
     786
     787
     788                                        <pre class="code">var myListener = function() { ... };
     789someObject.on( 'someEvent', myListener );
     790alert( someObject.<b>hasListeners( 'someEvent' )</b> );  // "true"
     791alert( someObject.<b>hasListeners( 'noEvent' )</b> );    // "false"</pre>
     792
     793
     794
     795
     796
     797                                                        <dl class="detailList">
     798                                                        <dt class="heading">Parameters:</dt>
     799
     800                                                                <dt>
     801                                                                        <span class="light fixedFont">{String}</span> <b>eventName</b>
     802
     803                                                                </dt>
     804                                                                <dd>The event name.</dd>
     805
     806                                                        </dl>
     807
     808
     809
     810
     811
     812
     813
     814                                        <hr />
     815
    741816                                        <a name="on"> </a>
    742817                                        <div class="fixedFont" style="float:left">
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.eventInfo.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    470482                                                </tr>
    471483
     484                                                <tr>
     485                                                        <td class="attributes">&lt;static&gt; &nbsp;</td>
     486                                                        <td class="nameDescription">
     487                                                                <div class="fixedFont">
     488                                                                CKEDITOR.<b><a href="../symbols/CKEDITOR.html#.timestamp">timestamp</a></b>
     489                                                                </div>
     490                                                                <div class="description">A constant string unique for each release of CKEditor.</div>
     491                                                        </td>
     492                                                </tr>
     493
    472494                                        </tbody>
    473495                                </table>
     
    497519                                                                </div>
    498520                                                                <div class="description">Adds an editor instance to the global <a href="../symbols/CKEDITOR.html#constructor">CKEDITOR</a> object.</div>
     521                                                        </td>
     522                                                </tr>
     523
     524                                                <tr>
     525                                                        <td class="attributes">&lt;static&gt; &nbsp;</td>
     526                                                        <td class="nameDescription">
     527                                                                <div class="fixedFont">CKEDITOR.<b><a href="../symbols/CKEDITOR.html#.getUrl">getUrl</a></b>(resource)
     528                                                                </div>
     529                                                                <div class="description">Gets the full URL for CKEditor resources.</div>
    499530                                                        </td>
    500531                                                </tr>
     
    838869
    839870
    840 
    841 
    842 
    843 
    844 <!-- ============================== method details ========================= -->
    845 
    846                                 <div class="sectionTitle">
    847                                         Method Detail
    848                                 </div>
    849 
    850                                         <a name=".add"> </a>
     871                                        <hr />
     872
     873                                        <a name=".timestamp"> </a>
    851874                                        <div class="fixedFont" style="float:left">&lt;static&gt;
    852875
    853                                         <span class="light">{Undefined}</span>
    854                                         <span class="light">CKEDITOR.</span><b>add</b>(editor)
     876                                        <span class="light">{String}</span>
     877                                        <span class="light">CKEDITOR.</span><b>timestamp</b>
    855878
    856879                                        </div>
     
    864887                                        <div style="clear:both"></div>
    865888
     889                                        <div class="description">
     890                                                A constant string unique for each release of CKEditor. Its value
     891is used, by default, to build the URL for all resources loaded
     892by the editor code, guaranteing clean cache results when
     893upgrading.
     894
     895
     896                                        </div>
     897
     898
     899
     900
     901                                        <pre class="code">alert( CKEDITOR.timestamp );  // e.g. '87dm'</pre>
     902
     903
     904
     905
     906
     907
     908
     909
     910
     911
     912
     913
     914<!-- ============================== method details ========================= -->
     915
     916                                <div class="sectionTitle">
     917                                        Method Detail
     918                                </div>
     919
     920                                        <a name=".add"> </a>
     921                                        <div class="fixedFont" style="float:left">&lt;static&gt;
     922
     923                                        <span class="light">{Undefined}</span>
     924                                        <span class="light">CKEDITOR.</span><b>add</b>(editor)
     925
     926                                        </div>
     927
     928
     929                                                <div style="float:right">
     930                                                        <span class="heading">Since:</span>
     931                                                                3.0
     932                                                </div>
     933
     934                                        <div style="clear:both"></div>
     935
    866936
    867937                                        <div class="description">
     
    899969
    900970
     971
     972
     973
     974
     975                                        <hr />
     976
     977                                        <a name=".getUrl"> </a>
     978                                        <div class="fixedFont" style="float:left">&lt;static&gt;
     979
     980                                        <span class="light">{String}</span>
     981                                        <span class="light">CKEDITOR.</span><b>getUrl</b>(resource)
     982
     983                                        </div>
     984
     985
     986                                                <div style="float:right">
     987                                                        <span class="heading">Since:</span>
     988                                                                3.0
     989                                                </div>
     990
     991                                        <div style="clear:both"></div>
     992
     993
     994                                        <div class="description">
     995                                                Gets the full URL for CKEditor resources. By default, URLs
     996returned by this function contains a querystring parameter ("t")
     997set to the <a href="../symbols/CKEDITOR.html#.timestamp">CKEDITOR.timestamp</a> value.
     998
     999
     1000                                        </div>
     1001
     1002
     1003
     1004
     1005                                        <pre class="code">// e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm
     1006alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );</pre>
     1007
     1008
     1009
     1010                                        <pre class="code">// e.g. http://www.example.com/skins/default/editor.css?t=87dm
     1011alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );</pre>
     1012
     1013
     1014
     1015                                        <pre class="code">// e.g. http://www.somesite.com/skins/default/editor.css?t=87dm
     1016alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );</pre>
     1017
     1018
     1019
     1020
     1021
     1022                                                        <dl class="detailList">
     1023                                                        <dt class="heading">Parameters:</dt>
     1024
     1025                                                                <dt>
     1026                                                                        <b>resource</b>
     1027
     1028                                                                </dt>
     1029                                                                <dd></dd>
     1030
     1031                                                        </dl>
     1032
     1033
     1034
     1035
     1036                                                        <dl class="detailList">
     1037                                                        <dt class="heading">Returns:</dt>
     1038
     1039                                                                <dd><span class="light fixedFont">{String}</span> The full URL.</dd>
     1040
     1041                                                        </dl>
    9011042
    9021043
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.lang.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.loader.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.pluginDefinition.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.plugins.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.resourceManager.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.scriptLoader.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.skins.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.test.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.themes.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.tools.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
     
    397409
    398410
     411
     412                                <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class CKEDITOR.tools.">
     413                                        <caption>Field Summary</caption>
     414                                        <thead>
     415                                                <tr>
     416                                                        <th scope="col">Field Attributes</th>
     417                                                        <th scope="col">Field Name and Description</th>
     418                                                </tr>
     419                                        </thead>
     420                                        <tbody>
     421
     422                                                <tr>
     423                                                        <td class="attributes">&lt;static&gt; &nbsp;</td>
     424                                                        <td class="nameDescription">
     425                                                                <div class="fixedFont">
     426                                                                CKEDITOR.tools.<b><a href="../symbols/CKEDITOR.tools.html#.getNextNumber">getNextNumber</a></b>
     427                                                                </div>
     428                                                                <div class="description">Gets a unique number for this CKEDITOR execution session.</div>
     429                                                        </td>
     430                                                </tr>
     431
     432                                        </tbody>
     433                                </table>
     434
     435
     436
     437
     438
    399439<!-- ============================== methods summary ======================== -->
    400440
     
    507547<!-- ============================== field details ========================== -->
    508548
     549                                <div class="sectionTitle">
     550                                        Field Detail
     551                                </div>
     552
     553                                        <a name=".getNextNumber"> </a>
     554                                        <div class="fixedFont" style="float:left">&lt;static&gt;
     555
     556                                        <span class="light">{Number}</span>
     557                                        <span class="light">CKEDITOR.tools.</span><b>getNextNumber</b>
     558
     559                                        </div>
     560
     561
     562                                                <div style="float:right">
     563                                                        <span class="heading">Since:</span>
     564                                                                3.0
     565                                                </div>
     566
     567                                        <div style="clear:both"></div>
     568
     569                                        <div class="description">
     570                                                Gets a unique number for this CKEDITOR execution session. It returns
     571progressive numbers starting at 1.
     572
     573
     574                                        </div>
     575
     576
     577
     578
     579                                        <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
     580
     581
     582
     583
     584
     585
     586
     587
     588
     589
     590
    509591
    510592<!-- ============================== method details ========================= -->
     
    615697// Alert "prop1", "prop2" and "prop3".
    616698for ( var p in myObject )
    617     alert( p ) ;</pre>
     699    alert( p );</pre>
    618700
    619701
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.xml.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/_global_.html

    r2189 r2214  
    214214
    215215
     216
     217
     218
     219
    216220        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li>
    217221
     
    271275
    272276                <li>
     277                        <a href="../symbols/CKEDITOR.dom.domObject.html">CKEDITOR.dom.domObject</a>
     278                </li>
     279
     280                <li>
    273281                        <a href="../symbols/CKEDITOR.dom.element.html">CKEDITOR.dom.element</a>
     282                </li>
     283
     284                <li>
     285                        <a href="../symbols/CKEDITOR.dom.event.html">CKEDITOR.dom.event</a>
    274286                </li>
    275287
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__ckeditor_base.js.html

    r2180 r2214  
    3636<span class='line'> 29</span> </span><span class="COMM">// ckeditor_source.js and ckeditor_basic_source.js files.</span><span class="WHIT">
    3737<span class='line'> 30</span>
    38 <span class='line'> 31</span> </span><span class="COMM">// if (!window.CKEDITOR){window.CKEDITOR=(function(){var A={_:{},status:'unloaded',basePath:(function(){var B='';var C=document.getElementsByTagName('script');for (var i=0;i&lt;C.length;i++){var D=C[i].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if (D){B=D[1];break;}};if (B.indexOf('://')==-1){if (B.indexOf('/')===0) B=location.href.match(/^.*?:\/\/[^\/]*/)[0]+B;else B=location.href.match(/^[^\?]*\//)[0]+B;};return B;})()};A.scriptsPath=A.basePath+'_source/';return A;})();};</span><span class="WHIT">
     38<span class='line'> 31</span> </span><span class="COMM">// if (!window.CKEDITOR){window.CKEDITOR=(function(){return/**@lends CKEDITOR*/{_:{},status:'unloaded',timestamp:'',basePath:(function(){var A='';var B=document.getElementsByTagName('script');for (var i=0;i&lt;B.length;i++){var C=B[i].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if (C){A=C[1];break;}};if (A.indexOf('://')==-1){if (A.indexOf('/')===0) A=location.href.match(/^.*?:\/\/[^\/]*/)[0]+A;else A=location.href.match(/^[^\?]*\//)[0]+A;};return A;})(),getUrl:function(resource){if (resource.indexOf('://')==-1&&resource.indexOf('/')!==0) resource=this.basePath+resource;if (this.timestamp) resource+=(resource.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return resource;}};})();};</span><span class="WHIT">
    3939<span class='line'> 32</span>
    4040<span class='line'> 33</span> </span><span class="COMM">// #### Raw code</span><span class="WHIT">
     
    5151<span class='line'> 44</span> </span><span class="WHIT">        </span><span class="NAME">window.CKEDITOR</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    5252<span class='line'> 45</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    53 <span class='line'> 46</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">CKEDITOR</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">
    54 <span class='line'> 47</span> </span><span class="WHIT">                </span><span class="COMM">/** @lends CKEDITOR */</span><span class="WHIT">
    55 <span class='line'> 48</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    56 <span class='line'> 49</span> </span><span class="WHIT">                        </span><span class="COMM">/**
    57 <span class='line'> 50</span>                    * Private object used to hold core stuff. It should not be used out of
    58 <span class='line'> 51</span>                    * the API code as properties defined here may change at any time
    59 <span class='line'> 52</span>                    * without notice.
    60 <span class='line'> 53</span>                    * @private
    61 <span class='line'> 54</span>                    */</span><span class="WHIT">
    62 <span class='line'> 55</span> </span><span class="WHIT">                        </span><span class="NAME">_</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    63 <span class='line'> 56</span>
    64 <span class='line'> 57</span> </span><span class="WHIT">                        </span><span class="COMM">/**
    65 <span class='line'> 58</span>                    * Indicates the API loading status. The following status are available:
    66 <span class='line'> 59</span>                    *              &lt;ul>
    67 <span class='line'> 60</span>                    *                      &lt;li>&lt;b>unloaded&lt;/b>: the API is not yet loaded.&lt;/li>
    68 <span class='line'> 61</span>                    *                      &lt;li>&lt;b>basic_loaded&lt;/b>: the basic API features are available.&lt;/li>
    69 <span class='line'> 62</span>                    *                      &lt;li>&lt;b>basic_ready&lt;/b>: the basic API is ready to load the full core code.&lt;/li>
    70 <span class='line'> 63</span>                    *                      &lt;li>&lt;b>loading&lt;/b>: the full API is being loaded.&lt;/li>
    71 <span class='line'> 64</span>                    *                      &lt;li>&lt;b>ready&lt;/b>: the API can be fully used.&lt;/li>
    72 <span class='line'> 65</span>                    *              &lt;/ul>
    73 <span class='line'> 66</span>                    * @type String
    74 <span class='line'> 67</span>                    * @example
    75 <span class='line'> 68</span>                    * if ( &lt;b>CKEDITOR.status&lt;/b> == 'ready' )
    76 <span class='line'> 69</span>                    * {
    77 <span class='line'> 70</span>                    *     // The API can now be fully used.
    78 <span class='line'> 71</span>                    * }
    79 <span class='line'> 72</span>                    */</span><span class="WHIT">
    80 <span class='line'> 73</span> </span><span class="WHIT">                        </span><span class="NAME">status</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'unloaded'</span><span class="PUNC">,</span><span class="WHIT">
    81 <span class='line'> 74</span>
    82 <span class='line'> 75</span> </span><span class="WHIT">                        </span><span class="COMM">/**
    83 <span class='line'> 76</span>                    * Contains the full URL for the CKEditor installation directory.
    84 <span class='line'> 77</span>                    * @type String
    85 <span class='line'> 78</span>                    * @example
    86 <span class='line'> 79</span>                    * alert( &lt;b>CKEDITOR.basePath&lt;/b> );  // "http://www.example.com/ckeditor/" (e.g.)
    87 <span class='line'> 80</span>                    */</span><span class="WHIT">
    88 <span class='line'> 81</span> </span><span class="WHIT">                        </span><span class="NAME">basePath</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    89 <span class='line'> 82</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    90 <span class='line'> 83</span> </span><span class="WHIT">                                </span><span class="COMM">// ATTENTION: fixes on this code must be ported to</span><span class="WHIT">
    91 <span class='line'> 84</span> </span><span class="WHIT">                                </span><span class="COMM">// var basePath in "core/loader.js".</span><span class="WHIT">
    92 <span class='line'> 85</span>
    93 <span class='line'> 86</span> </span><span class="WHIT">                                </span><span class="COMM">// Find out the editor directory path, based on its &lt;script> tag.</span><span class="WHIT">
    94 <span class='line'> 87</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
    95 <span class='line'> 88</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scripts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementsByTagName</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'script'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    96 <span class='line'> 89</span>
    97 <span class='line'> 90</span> </span><span class="WHIT">                                </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">scripts.length</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    98 <span class='line'> 91</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    99 <span class='line'> 92</span> </span><span class="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">match</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scripts</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">src.match</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="REGX">/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    100 <span class='line'> 93</span>
    101 <span class='line'> 94</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">match</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    102 <span class='line'> 95</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT">
    103 <span class='line'> 96</span> </span><span class="WHIT">                                                </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">match</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
    104 <span class='line'> 97</span> </span><span class="WHIT">                                                </span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
    105 <span class='line'> 98</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="WHIT">
    106 <span class='line'> 99</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT">
    107 <span class='line'>100</span>
    108 <span class='line'>101</span> </span><span class="WHIT">                                </span><span class="COMM">// In IE (only) the script.src string is the raw valued entered in the</span><span class="WHIT">
    109 <span class='line'>102</span> </span><span class="WHIT">                                </span><span class="COMM">// HTML. Other browsers return the full resolved URL instead.</span><span class="WHIT">
    110 <span class='line'>103</span> </span><span class="WHIT">                                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">path.indexOf</span><span class="PUNC">(</span><span class="STRN">'://'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    111 <span class='line'>104</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    112 <span class='line'>105</span> </span><span class="WHIT">                                        </span><span class="COMM">// Absolute path.</span><span class="WHIT">
    113 <span class='line'>106</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">path.indexOf</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'/'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    114 <span class='line'>107</span> </span><span class="WHIT">                                                </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">location.href.match</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="REGX">/^.*?:\/\/[^\/]*/</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">path</span><span class="PUNC">;</span><span class="WHIT">
    115 <span class='line'>108</span> </span><span class="WHIT">                                        </span><span class="COMM">// Relative path.</span><span class="WHIT">
    116 <span class='line'>109</span> </span><span class="WHIT">                                        </span><span class="KEYW">else</span><span class="WHIT">
    117 <span class='line'>110</span> </span><span class="WHIT">                                                </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">location.href.match</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="REGX">/^[^\?]*\//</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">path</span><span class="PUNC">;</span><span class="WHIT">
    118 <span class='line'>111</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT">
    119 <span class='line'>112</span>
    120 <span class='line'>113</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">path</span><span class="PUNC">;</span><span class="WHIT">
    121 <span class='line'>114</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    122 <span class='line'>115</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     53<span class='line'> 46</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="COMM">/** @lends CKEDITOR */</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
     54<span class='line'> 47</span>
     55<span class='line'> 48</span> </span><span class="WHIT">                        </span><span class="COMM">/**
     56<span class='line'> 49</span>                    * A constant string unique for each release of CKEditor. Its value
     57<span class='line'> 50</span>                    * is used, by default, to build the URL for all resources loaded
     58<span class='line'> 51</span>                    * by the editor code, guaranteing clean cache results when
     59<span class='line'> 52</span>                    * upgrading.
     60<span class='line'> 53</span>                    * @type String
     61<span class='line'> 54</span>                    * @example
     62<span class='line'> 55</span>                    * alert( CKEDITOR.timestamp );  // e.g. '87dm'
     63<span class='line'> 56</span>                    */</span><span class="WHIT">
     64<span class='line'> 57</span> </span><span class="WHIT">                        </span><span class="NAME">timestamp</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">,</span><span class="WHIT">                           </span><span class="COMM">// @Packager.RemoveLine</span><span class="WHIT">
     65<span class='line'> 58</span> </span><span class="WHIT">                        </span><span class="COMM">/*                                                    // @Packager.RemoveLine
     66<span class='line'> 59</span>                   // The production implementation contains a fixed timestamp, unique
     67<span class='line'> 60</span>                   // for each release, generated by the releaser.
     68<span class='line'> 61</span>                   // (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122)
     69<span class='line'> 62</span>                   timestamp : '%TIMESTAMP%',
     70<span class='line'> 63</span>                    */</span><span class="WHIT">                                                   </span><span class="COMM">// @Packager.RemoveLine</span><span class="WHIT">
     71<span class='line'> 64</span>
     72<span class='line'> 65</span> </span><span class="WHIT">                        </span><span class="COMM">/**
     73<span class='line'> 66</span>                    * Private object used to hold core stuff. It should not be used out of
     74<span class='line'> 67</span>                    * the API code as properties defined here may change at any time
     75<span class='line'> 68</span>                    * without notice.
     76<span class='line'> 69</span>                    * @private
     77<span class='line'> 70</span>                    */</span><span class="WHIT">
     78<span class='line'> 71</span> </span><span class="WHIT">                        </span><span class="NAME">_</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     79<span class='line'> 72</span>
     80<span class='line'> 73</span> </span><span class="WHIT">                        </span><span class="COMM">/**
     81<span class='line'> 74</span>                    * Indicates the API loading status. The following status are available:
     82<span class='line'> 75</span>                    *              &lt;ul>
     83<span class='line'> 76</span>                    *                      &lt;li>&lt;b>unloaded&lt;/b>: the API is not yet loaded.&lt;/li>
     84<span class='line'> 77</span>                    *                      &lt;li>&lt;b>basic_loaded&lt;/b>: the basic API features are available.&lt;/li>
     85<span class='line'> 78</span>                    *                      &lt;li>&lt;b>basic_ready&lt;/b>: the basic API is ready to load the full core code.&lt;/li>
     86<span class='line'> 79</span>                    *                      &lt;li>&lt;b>loading&lt;/b>: the full API is being loaded.&lt;/li>
     87<span class='line'> 80</span>                    *                      &lt;li>&lt;b>ready&lt;/b>: the API can be fully used.&lt;/li>
     88<span class='line'> 81</span>                    *              &lt;/ul>
     89<span class='line'> 82</span>                    * @type String
     90<span class='line'> 83</span>                    * @example
     91<span class='line'> 84</span>                    * if ( &lt;b>CKEDITOR.status&lt;/b> == 'ready' )
     92<span class='line'> 85</span>                    * {
     93<span class='line'> 86</span>                    *     // The API can now be fully used.
     94<span class='line'> 87</span>                    * }
     95<span class='line'> 88</span>                    */</span><span class="WHIT">
     96<span class='line'> 89</span> </span><span class="WHIT">                        </span><span class="NAME">status</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'unloaded'</span><span class="PUNC">,</span><span class="WHIT">
     97<span class='line'> 90</span>
     98<span class='line'> 91</span> </span><span class="WHIT">                        </span><span class="COMM">/**
     99<span class='line'> 92</span>                    * Contains the full URL for the CKEditor installation directory.
     100<span class='line'> 93</span>                    * @type String
     101<span class='line'> 94</span>                    * @example
     102<span class='line'> 95</span>                    * alert( &lt;b>CKEDITOR.basePath&lt;/b> );  // "http://www.example.com/ckeditor/" (e.g.)
     103<span class='line'> 96</span>                    */</span><span class="WHIT">
     104<span class='line'> 97</span> </span><span class="WHIT">                        </span><span class="NAME">basePath</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     105<span class='line'> 98</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     106<span class='line'> 99</span> </span><span class="WHIT">                                </span><span class="COMM">// ATTENTION: fixes on this code must be ported to</span><span class="WHIT">
     107<span class='line'>100</span> </span><span class="WHIT">                                </span><span class="COMM">// var basePath in "core/loader.js".</span><span class="WHIT">
     108<span class='line'>101</span>
     109<span class='line'>102</span> </span><span class="WHIT">                                </span><span class="COMM">// Find out the editor directory path, based on its &lt;script> tag.</span><span class="WHIT">
     110<span class='line'>103</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT">
     111<span class='line'>104</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scripts</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementsByTagName</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'script'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     112<span class='line'>105</span>
     113<span class='line'>106</span> </span><span class="WHIT">                                </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">scripts.length</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     114<span class='line'>107</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     115<span class='line'>108</span> </span><span class="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">match</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scripts</span><span class="PUNC">[</span><span class="NAME">i</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">src.match</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="REGX">/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     116<span class='line'>109</span>
     117<span class='line'>110</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">match</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     118<span class='line'>111</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT">
     119<span class='line'>112</span> </span><span class="WHIT">                                                </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">match</span><span class="PUNC">[</span><span class="NUMB">1</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
     120<span class='line'>113</span> </span><span class="WHIT">                                                </span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
     121<span class='line'>114</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="WHIT">
     122<span class='line'>115</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT">
    123123<span class='line'>116</span>
    124 <span class='line'>117</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.scriptsPath</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.basePath</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_source/'</span><span class="PUNC">;</span><span class="WHIT">
    125 <span class='line'>118</span>
    126 <span class='line'>119</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR</span><span class="PUNC">;</span><span class="WHIT">
    127 <span class='line'>120</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    128 <span class='line'>121</span> </span><span class="PUNC">}</span><span class="WHIT">
    129 <span class='line'>122</span> </span></pre></body></html>
     124<span class='line'>117</span> </span><span class="WHIT">                                </span><span class="COMM">// In IE (only) the script.src string is the raw valued entered in the</span><span class="WHIT">
     125<span class='line'>118</span> </span><span class="WHIT">                                </span><span class="COMM">// HTML. Other browsers return the full resolved URL instead.</span><span class="WHIT">
     126<span class='line'>119</span> </span><span class="WHIT">                                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">path.indexOf</span><span class="PUNC">(</span><span class="STRN">'://'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     127<span class='line'>120</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     128<span class='line'>121</span> </span><span class="WHIT">                                        </span><span class="COMM">// Absolute path.</span><span class="WHIT">
     129<span class='line'>122</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">path.indexOf</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'/'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     130<span class='line'>123</span> </span><span class="WHIT">                                                </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">location.href.match</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="REGX">/^.*?:\/\/[^\/]*/</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">path</span><span class="PUNC">;</span><span class="WHIT">
     131<span class='line'>124</span> </span><span class="WHIT">                                        </span><span class="COMM">// Relative path.</span><span class="WHIT">
     132<span class='line'>125</span> </span><span class="WHIT">                                        </span><span class="KEYW">else</span><span class="WHIT">
     133<span class='line'>126</span> </span><span class="WHIT">                                                </span><span class="NAME">path</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">location.href.match</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="REGX">/^[^\?]*\//</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">path</span><span class="PUNC">;</span><span class="WHIT">
     134<span class='line'>127</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT">
     135<span class='line'>128</span>
     136<span class='line'>129</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">path</span><span class="PUNC">;</span><span class="WHIT">
     137<span class='line'>130</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
     138<span class='line'>131</span>
     139<span class='line'>132</span> </span><span class="WHIT">                        </span><span class="COMM">/**
     140<span class='line'>133</span>                    * Gets the full URL for CKEditor resources. By default, URLs
     141<span class='line'>134</span>                    * returned by this function contains a querystring parameter ("t")
     142<span class='line'>135</span>                    * set to the {@link CKEDITOR.timestamp} value.
     143<span class='line'>136</span>                    * @returns {String} The full URL.
     144<span class='line'>137</span>                    * @example
     145<span class='line'>138</span>                    * // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm
     146<span class='line'>139</span>                    * alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );
     147<span class='line'>140</span>                    * @example
     148<span class='line'>141</span>                    * // e.g. http://www.example.com/skins/default/editor.css?t=87dm
     149<span class='line'>142</span>                    * alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );
     150<span class='line'>143</span>                    * @example
     151<span class='line'>144</span>                    * // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm
     152<span class='line'>145</span>                    * alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );
     153<span class='line'>146</span>                    */</span><span class="WHIT">
     154<span class='line'>147</span> </span><span class="WHIT">                        </span><span class="NAME">getUrl</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">resource</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     155<span class='line'>148</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     156<span class='line'>149</span> </span><span class="WHIT">                                </span><span class="COMM">// If this is not a full or absolute path.</span><span class="WHIT">
     157<span class='line'>150</span> </span><span class="WHIT">                                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">resource.indexOf</span><span class="PUNC">(</span><span class="STRN">'://'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">resource.indexOf</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'/'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">!==</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     158<span class='line'>151</span> </span><span class="WHIT">                                        </span><span class="NAME">resource</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.basePath</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">resource</span><span class="PUNC">;</span><span class="WHIT">
     159<span class='line'>152</span>
     160<span class='line'>153</span> </span><span class="WHIT">                                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.timestamp</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     161<span class='line'>154</span> </span><span class="WHIT">                                        </span><span class="NAME">resource</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">resource.indexOf</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'?'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">>=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="STRN">'&'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'?'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'t='</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">this.timestamp</span><span class="PUNC">;</span><span class="WHIT">
     162<span class='line'>155</span>
     163<span class='line'>156</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">resource</span><span class="PUNC">;</span><span class="WHIT">
     164<span class='line'>157</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT">
     165<span class='line'>158</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     166<span class='line'>159</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     167<span class='line'>160</span> </span><span class="PUNC">}</span><span class="WHIT">
     168<span class='line'>161</span> </span></pre></body></html>
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__config.js.html

    r2189 r2214  
    6060<span class='line'> 53</span>    * CKEDITOR.replace( 'myfiled', { customConfig : '' } );
    6161<span class='line'> 54</span>    */</span><span class="WHIT">
    62 <span class='line'> 55</span> </span><span class="WHIT">        </span><span class="NAME">customConfig</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.basePath</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'config.js'</span><span class="PUNC">,</span><span class="WHIT">
     62<span class='line'> 55</span> </span><span class="WHIT">        </span><span class="NAME">customConfig</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.getUrl</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'config.js'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
    6363<span class='line'> 56</span>
    6464<span class='line'> 57</span> </span><span class="WHIT">        </span><span class="COMM">/**
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_document.js.html

    r2189 r2214  
    4141<span class='line'> 34</span> </span><span class="NAME">CKEDITOR.dom.document</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domDocument</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    4242<span class='line'> 35</span> </span><span class="PUNC">{</span><span class="WHIT">
    43 <span class='line'> 36</span> </span><span class="WHIT">        </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domDocument</span><span class="PUNC">;</span><span class="WHIT">
    44 <span class='line'> 37</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    45 <span class='line'> 38</span>
    46 <span class='line'> 39</span> </span><span class="NAME">CKEDITOR.dom.document.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">
    47 <span class='line'> 40</span> </span><span class="PUNC">{</span><span class="WHIT">
    48 <span class='line'> 41</span> </span><span class="WHIT">        </span><span class="COMM">/**
    49 <span class='line'> 42</span>    * Appends a CSS file to the document.
    50 <span class='line'> 43</span>    * @param {String} cssFileUrl The CSS file URL.
    51 <span class='line'> 44</span>    * @example
    52 <span class='line'> 45</span>    * &lt;b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )&lt;/b>;
    53 <span class='line'> 46</span>    */</span><span class="WHIT">
    54 <span class='line'> 47</span> </span><span class="WHIT">        </span><span class="NAME">appendStyleSheet</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cssFileUrl</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    55 <span class='line'> 48</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    56 <span class='line'> 49</span> </span><span class="WHIT">                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.createStyleSheet</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    57 <span class='line'> 50</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.createStyleSheet</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cssFileUrl</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    58 <span class='line'> 51</span> </span><span class="WHIT">                </span><span class="KEYW">else</span><span class="WHIT">
    59 <span class='line'> 52</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    60 <span class='line'> 53</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">link</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'link'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    61 <span class='line'> 54</span> </span><span class="WHIT">                        </span><span class="NAME">link.setAttributes</span><span class="PUNC">(</span><span class="WHIT">
    62 <span class='line'> 55</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    63 <span class='line'> 56</span> </span><span class="WHIT">                                        </span><span class="NAME">rel</span><span class="WHIT">         </span><span class="PUNC">:</span><span class="STRN">'stylesheet'</span><span class="PUNC">,</span><span class="WHIT">
    64 <span class='line'> 57</span> </span><span class="WHIT">                                        </span><span class="NAME">type</span><span class="WHIT">        </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'text/css'</span><span class="PUNC">,</span><span class="WHIT">
    65 <span class='line'> 58</span> </span><span class="WHIT">                                        </span><span class="NAME">href</span><span class="WHIT">        </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">cssFileUrl</span><span class="WHIT">
    66 <span class='line'> 59</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    67 <span class='line'> 60</span>
    68 <span class='line'> 61</span> </span><span class="WHIT">                        </span><span class="NAME">this.getHead</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">link</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    69 <span class='line'> 62</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
    70 <span class='line'> 63</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    71 <span class='line'> 64</span>
    72 <span class='line'> 65</span> </span><span class="WHIT">        </span><span class="COMM">/**
    73 <span class='line'> 66</span>    * Determines whether the specified object is equal to the current object.
    74 <span class='line'> 67</span>    * @param {Object} object The object to compare with the current object.
    75 <span class='line'> 68</span>    * @returns {Boolean} "true" if the object is equal.
    76 <span class='line'> 69</span>    * @example
    77 <span class='line'> 70</span>    * var doc = new CKEDITOR.dom.document( document );
    78 <span class='line'> 71</span>    * alert( doc.equals( CKEDITOR.document ) );  // "true"
    79 <span class='line'> 72</span>    * alert( doc == CKEDITOR.document );         // "false"
    80 <span class='line'> 73</span>    */</span><span class="WHIT">
    81 <span class='line'> 74</span> </span><span class="WHIT">        </span><span class="NAME">equals</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">object</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    82 <span class='line'> 75</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    83 <span class='line'> 76</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">object</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">object.$</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    84 <span class='line'> 77</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    85 <span class='line'> 78</span>
    86 <span class='line'> 79</span> </span><span class="WHIT">        </span><span class="COMM">/**
    87 <span class='line'> 80</span>    * Gets and element based on its id.
    88 <span class='line'> 81</span>    * @param {String} elementId The element id.
    89 <span class='line'> 82</span>    * @returns {CKEDITOR.dom.element} The element instance, or null if not found.
    90 <span class='line'> 83</span>    * @example
    91 <span class='line'> 84</span>    * var element = &lt;b>CKEDITOR.document.getById( 'myElement' )&lt;/b>;
    92 <span class='line'> 85</span>    * alert( element.getId() );  // "myElement"
    93 <span class='line'> 86</span>    */</span><span class="WHIT">
    94 <span class='line'> 87</span> </span><span class="WHIT">        </span><span class="NAME">getById</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">elementId</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    95 <span class='line'> 88</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    96 <span class='line'> 89</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.getElementById</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">elementId</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    97 <span class='line'> 90</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
    98 <span class='line'> 91</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    99 <span class='line'> 92</span>
    100 <span class='line'> 93</span> </span><span class="WHIT">        </span><span class="COMM">/**
    101 <span class='line'> 94</span>    * Gets the &lt;head&gt; element for this document.
    102 <span class='line'> 95</span>    * @returns {CKEDITOR.dom.element} The &lt;head&gt; element.
    103 <span class='line'> 96</span>    * @example
    104 <span class='line'> 97</span>    * var element = &lt;b>CKEDITOR.document.getHead()&lt;/b>;
    105 <span class='line'> 98</span>    * alert( element.getName() );  // "head"
    106 <span class='line'> 99</span>    */</span><span class="WHIT">
    107 <span class='line'>100</span> </span><span class="WHIT">        </span><span class="NAME">getHead</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    108 <span class='line'>101</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    109 <span class='line'>102</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">head</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.getElementsByTagName</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'head'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
    110 <span class='line'>103</span> </span><span class="WHIT">                </span><span class="NAME">head</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">head</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    111 <span class='line'>104</span>
    112 <span class='line'>105</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
    113 <span class='line'>106</span> </span><span class="WHIT">                </span><span class="COMM">/** @ignore */</span><span class="WHIT">
    114 <span class='line'>107</span> </span><span class="WHIT">                </span><span class="NAME">this.getHead</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    115 <span class='line'>108</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    116 <span class='line'>109</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">head</span><span class="PUNC">;</span><span class="WHIT">
    117 <span class='line'>110</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    118 <span class='line'>111</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    119 <span class='line'>112</span>
    120 <span class='line'>113</span> </span><span class="WHIT">        </span><span class="COMM">/**
    121 <span class='line'>114</span>    * Gets the &lt;body&gt; element for this document.
    122 <span class='line'>115</span>    * @returns {CKEDITOR.dom.element} The &lt;body&gt; element.
    123 <span class='line'>116</span>    * @example
    124 <span class='line'>117</span>    * var element = &lt;b>CKEDITOR.document.getBody()&lt;/b>;
    125 <span class='line'>118</span>    * alert( element.getName() );  // "body"
    126 <span class='line'>119</span>    */</span><span class="WHIT">
    127 <span class='line'>120</span> </span><span class="WHIT">        </span><span class="NAME">getBody</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    128 <span class='line'>121</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    129 <span class='line'>122</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">body</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.body</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    130 <span class='line'>123</span>
    131 <span class='line'>124</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
    132 <span class='line'>125</span> </span><span class="WHIT">                </span><span class="COMM">/** @ignore */</span><span class="WHIT">
    133 <span class='line'>126</span> </span><span class="WHIT">                </span><span class="NAME">this.getBody</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    134 <span class='line'>127</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    135 <span class='line'>128</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">body</span><span class="PUNC">;</span><span class="WHIT">
    136 <span class='line'>129</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    137 <span class='line'>130</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
    138 <span class='line'>131</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    139 <span class='line'>132</span> </span></pre></body></html>
     43<span class='line'> 36</span> </span><span class="WHIT">        </span><span class="COMM">/**
     44<span class='line'> 37</span>    * The native DOM document represented by this class instance.
     45<span class='line'> 38</span>    * @type Object
     46<span class='line'> 39</span>    * @example
     47<span class='line'> 40</span>    */</span><span class="WHIT">
     48<span class='line'> 41</span> </span><span class="WHIT">        </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domDocument</span><span class="PUNC">;</span><span class="WHIT">
     49<span class='line'> 42</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     50<span class='line'> 43</span>
     51<span class='line'> 44</span> </span><span class="NAME">CKEDITOR.dom.document.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">
     52<span class='line'> 45</span> </span><span class="PUNC">{</span><span class="WHIT">
     53<span class='line'> 46</span> </span><span class="WHIT">        </span><span class="COMM">/**
     54<span class='line'> 47</span>    * Appends a CSS file to the document.
     55<span class='line'> 48</span>    * @param {String} cssFileUrl The CSS file URL.
     56<span class='line'> 49</span>    * @example
     57<span class='line'> 50</span>    * &lt;b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )&lt;/b>;
     58<span class='line'> 51</span>    */</span><span class="WHIT">
     59<span class='line'> 52</span> </span><span class="WHIT">        </span><span class="NAME">appendStyleSheet</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cssFileUrl</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     60<span class='line'> 53</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     61<span class='line'> 54</span> </span><span class="WHIT">                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.createStyleSheet</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     62<span class='line'> 55</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.createStyleSheet</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cssFileUrl</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     63<span class='line'> 56</span> </span><span class="WHIT">                </span><span class="KEYW">else</span><span class="WHIT">
     64<span class='line'> 57</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     65<span class='line'> 58</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">link</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'link'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     66<span class='line'> 59</span> </span><span class="WHIT">                        </span><span class="NAME">link.setAttributes</span><span class="PUNC">(</span><span class="WHIT">
     67<span class='line'> 60</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     68<span class='line'> 61</span> </span><span class="WHIT">                                        </span><span class="NAME">rel</span><span class="WHIT">         </span><span class="PUNC">:</span><span class="STRN">'stylesheet'</span><span class="PUNC">,</span><span class="WHIT">
     69<span class='line'> 62</span> </span><span class="WHIT">                                        </span><span class="NAME">type</span><span class="WHIT">        </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'text/css'</span><span class="PUNC">,</span><span class="WHIT">
     70<span class='line'> 63</span> </span><span class="WHIT">                                        </span><span class="NAME">href</span><span class="WHIT">        </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">cssFileUrl</span><span class="WHIT">
     71<span class='line'> 64</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     72<span class='line'> 65</span>
     73<span class='line'> 66</span> </span><span class="WHIT">                        </span><span class="NAME">this.getHead</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">append</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">link</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     74<span class='line'> 67</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
     75<span class='line'> 68</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     76<span class='line'> 69</span>
     77<span class='line'> 70</span> </span><span class="WHIT">        </span><span class="COMM">/**
     78<span class='line'> 71</span>    * Determines whether the specified object is equal to the current object.
     79<span class='line'> 72</span>    * @param {Object} object The object to compare with the current object.
     80<span class='line'> 73</span>    * @returns {Boolean} "true" if the object is equal.
     81<span class='line'> 74</span>    * @example
     82<span class='line'> 75</span>    * var doc = new CKEDITOR.dom.document( document );
     83<span class='line'> 76</span>    * alert( doc.equals( CKEDITOR.document ) );  // "true"
     84<span class='line'> 77</span>    * alert( doc == CKEDITOR.document );         // "false"
     85<span class='line'> 78</span>    */</span><span class="WHIT">
     86<span class='line'> 79</span> </span><span class="WHIT">        </span><span class="NAME">equals</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">object</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     87<span class='line'> 80</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     88<span class='line'> 81</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">object</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">object.$</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     89<span class='line'> 82</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     90<span class='line'> 83</span>
     91<span class='line'> 84</span> </span><span class="WHIT">        </span><span class="COMM">/**
     92<span class='line'> 85</span>    * Gets and element based on its id.
     93<span class='line'> 86</span>    * @param {String} elementId The element id.
     94<span class='line'> 87</span>    * @returns {CKEDITOR.dom.element} The element instance, or null if not found.
     95<span class='line'> 88</span>    * @example
     96<span class='line'> 89</span>    * var element = &lt;b>CKEDITOR.document.getById( 'myElement' )&lt;/b>;
     97<span class='line'> 90</span>    * alert( element.getId() );  // "myElement"
     98<span class='line'> 91</span>    */</span><span class="WHIT">
     99<span class='line'> 92</span> </span><span class="WHIT">        </span><span class="NAME">getById</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">elementId</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     100<span class='line'> 93</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     101<span class='line'> 94</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.getElementById</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">elementId</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     102<span class='line'> 95</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
     103<span class='line'> 96</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     104<span class='line'> 97</span>
     105<span class='line'> 98</span> </span><span class="WHIT">        </span><span class="COMM">/**
     106<span class='line'> 99</span>    * Gets the &lt;head&gt; element for this document.
     107<span class='line'>100</span>    * @returns {CKEDITOR.dom.element} The &lt;head&gt; element.
     108<span class='line'>101</span>    * @example
     109<span class='line'>102</span>    * var element = &lt;b>CKEDITOR.document.getHead()&lt;/b>;
     110<span class='line'>103</span>    * alert( element.getName() );  // "head"
     111<span class='line'>104</span>    */</span><span class="WHIT">
     112<span class='line'>105</span> </span><span class="WHIT">        </span><span class="NAME">getHead</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     113<span class='line'>106</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     114<span class='line'>107</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">head</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.getElementsByTagName</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'head'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">[</span><span class="NUMB">0</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
     115<span class='line'>108</span> </span><span class="WHIT">                </span><span class="NAME">head</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">head</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     116<span class='line'>109</span>
     117<span class='line'>110</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
     118<span class='line'>111</span> </span><span class="WHIT">                </span><span class="COMM">/** @ignore */</span><span class="WHIT">
     119<span class='line'>112</span> </span><span class="WHIT">                </span><span class="NAME">this.getHead</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     120<span class='line'>113</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     121<span class='line'>114</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">head</span><span class="PUNC">;</span><span class="WHIT">
     122<span class='line'>115</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     123<span class='line'>116</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     124<span class='line'>117</span>
     125<span class='line'>118</span> </span><span class="WHIT">        </span><span class="COMM">/**
     126<span class='line'>119</span>    * Gets the &lt;body&gt; element for this document.
     127<span class='line'>120</span>    * @returns {CKEDITOR.dom.element} The &lt;body&gt; element.
     128<span class='line'>121</span>    * @example
     129<span class='line'>122</span>    * var element = &lt;b>CKEDITOR.document.getBody()&lt;/b>;
     130<span class='line'>123</span>    * alert( element.getName() );  // "body"
     131<span class='line'>124</span>    */</span><span class="WHIT">
     132<span class='line'>125</span> </span><span class="WHIT">        </span><span class="NAME">getBody</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     133<span class='line'>126</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     134<span class='line'>127</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">body</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.body</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     135<span class='line'>128</span>
     136<span class='line'>129</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
     137<span class='line'>130</span> </span><span class="WHIT">                </span><span class="COMM">/** @ignore */</span><span class="WHIT">
     138<span class='line'>131</span> </span><span class="WHIT">                </span><span class="NAME">this.getBody</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     139<span class='line'>132</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     140<span class='line'>133</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">body</span><span class="PUNC">;</span><span class="WHIT">
     141<span class='line'>134</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     142<span class='line'>135</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     143<span class='line'>136</span>
     144<span class='line'>137</span> </span><span class="WHIT">        </span><span class="COMM">/**
     145<span class='line'>138</span>    * Get's the window object that holds this document.
     146<span class='line'>139</span>    * @returns {CKEDITOR.dom.window} The window object.
     147<span class='line'>140</span>    * @example
     148<span class='line'>141</span>    */</span><span class="WHIT">
     149<span class='line'>142</span> </span><span class="WHIT">        </span><span class="NAME">getWindow</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     150<span class='line'>143</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     151<span class='line'>144</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">win</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.window</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.parentWindow</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">this.$.defaultView</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     152<span class='line'>145</span>
     153<span class='line'>146</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
     154<span class='line'>147</span> </span><span class="WHIT">                </span><span class="COMM">/** @ignore */</span><span class="WHIT">
     155<span class='line'>148</span> </span><span class="WHIT">                </span><span class="NAME">this.getWindow</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     156<span class='line'>149</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     157<span class='line'>150</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">win</span><span class="PUNC">;</span><span class="WHIT">
     158<span class='line'>151</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     159<span class='line'>152</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
     160<span class='line'>153</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     161<span class='line'>154</span> </span></pre></body></html>
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_element.js.html

    r2189 r2214  
    180180<span class='line'>173</span>
    181181<span class='line'>174</span> </span><span class="WHIT">                </span><span class="COMM">/**
    182 <span class='line'>175</span>            * Gets the inner HTML of this element.
    183 <span class='line'>176</span>            * @returns {String} The inner HTML of this element.
    184 <span class='line'>177</span>            * @example
    185 <span class='line'>178</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/div&gt;' );
    186 <span class='line'>179</span>            * alert( &lt;b>p.getHtml()&lt;/b> );  // "&lt;b&gt;Example&lt;/b&gt;"
    187 <span class='line'>180</span>            */</span><span class="WHIT">
    188 <span class='line'>181</span> </span><span class="WHIT">                </span><span class="NAME">getHtml</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    189 <span class='line'>182</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    190 <span class='line'>183</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.innerHTML</span><span class="PUNC">;</span><span class="WHIT">
    191 <span class='line'>184</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    192 <span class='line'>185</span>
    193 <span class='line'>186</span> </span><span class="WHIT">                </span><span class="COMM">/**
    194 <span class='line'>187</span>            * Sets the inner HTML of this element.
    195 <span class='line'>188</span>            * @param {String} html The HTML to be set for this element.
    196 <span class='line'>189</span>            * @returns {String} The inserted HTML.
    197 <span class='line'>190</span>            * @example
    198 <span class='line'>191</span>            * var p = new CKEDITOR.dom.element( 'p' );
    199 <span class='line'>192</span>            * &lt;b>p.setHtml( '&lt;b&gt;Inner&lt;/b&gt; HTML' );&lt;/b>
    200 <span class='line'>193</span>            *
    201 <span class='line'>194</span>            * // result: "&lt;p&gt;&lt;b&gt;Inner&lt;/b&gt; HTML&lt;/p&gt;"
    202 <span class='line'>195</span>            */</span><span class="WHIT">
    203 <span class='line'>196</span> </span><span class="WHIT">                </span><span class="NAME">setHtml</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">html</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    204 <span class='line'>197</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    205 <span class='line'>198</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.innerHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">html</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    206 <span class='line'>199</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    207 <span class='line'>200</span>
    208 <span class='line'>201</span> </span><span class="WHIT">                </span><span class="COMM">/**
    209 <span class='line'>202</span>            * Sets the element contents as plain text.
    210 <span class='line'>203</span>            * @param {String} text The text to be set.
    211 <span class='line'>204</span>            * @returns {String} The inserted text.
    212 <span class='line'>205</span>            * @example
    213 <span class='line'>206</span>            * var element = new CKEDITOR.dom.element( 'div' );
    214 <span class='line'>207</span>            * element.setText( 'A > B & C &lt; D' );
    215 <span class='line'>208</span>            * alert( element.innerHTML );  // "A &amp;gt; B &amp;amp; C &amp;lt; D"
    216 <span class='line'>209</span>            */</span><span class="WHIT">
    217 <span class='line'>210</span> </span><span class="WHIT">                </span><span class="NAME">setText</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    218 <span class='line'>211</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    219 <span class='line'>212</span> </span><span class="WHIT">                        </span><span class="NAME">CKEDITOR.dom.element.prototype.setText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.innerText</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT">
    220 <span class='line'>213</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    221 <span class='line'>214</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    222 <span class='line'>215</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.innerText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">text</span><span class="PUNC">;</span><span class="WHIT">
    223 <span class='line'>216</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT">
    224 <span class='line'>217</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    225 <span class='line'>218</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    226 <span class='line'>219</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.textContent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">text</span><span class="PUNC">;</span><span class="WHIT">
    227 <span class='line'>220</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    228 <span class='line'>221</span>
    229 <span class='line'>222</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.setText</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    230 <span class='line'>223</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    231 <span class='line'>224</span>
    232 <span class='line'>225</span> </span><span class="WHIT">                </span><span class="COMM">/**
    233 <span class='line'>226</span>            * Gets the document containing this element.
    234 <span class='line'>227</span>            * @returns {CKEDITOR.dom.document} The document.
    235 <span class='line'>228</span>            * @example
    236 <span class='line'>229</span>            * var element = CKEDITOR.document.getById( 'example' );
    237 <span class='line'>230</span>            * alert( &lt;b>element.getDocument().equals( CKEDITOR.document )&lt;/b> );  // "true"
    238 <span class='line'>231</span>            */</span><span class="WHIT">
    239 <span class='line'>232</span> </span><span class="WHIT">                </span><span class="NAME">getDocument</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    240 <span class='line'>233</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    241 <span class='line'>234</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">document</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.document</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.ownerDocument</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     182<span class='line'>175</span>            * Moves the selection focus to this element.
     183<span class='line'>176</span>            * @example
     184<span class='line'>177</span>            * var element = CKEDITOR.document.getById( 'myTextarea' );
     185<span class='line'>178</span>            * &lt;b>element.focus()&lt;/b>;
     186<span class='line'>179</span>            */</span><span class="WHIT">
     187<span class='line'>180</span> </span><span class="WHIT">                </span><span class="NAME">focus</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     188<span class='line'>181</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     189<span class='line'>182</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.focus</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     190<span class='line'>183</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     191<span class='line'>184</span>
     192<span class='line'>185</span> </span><span class="WHIT">                </span><span class="COMM">/**
     193<span class='line'>186</span>            * Gets the inner HTML of this element.
     194<span class='line'>187</span>            * @returns {String} The inner HTML of this element.
     195<span class='line'>188</span>            * @example
     196<span class='line'>189</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/div&gt;' );
     197<span class='line'>190</span>            * alert( &lt;b>p.getHtml()&lt;/b> );  // "&lt;b&gt;Example&lt;/b&gt;"
     198<span class='line'>191</span>            */</span><span class="WHIT">
     199<span class='line'>192</span> </span><span class="WHIT">                </span><span class="NAME">getHtml</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     200<span class='line'>193</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     201<span class='line'>194</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.innerHTML</span><span class="PUNC">;</span><span class="WHIT">
     202<span class='line'>195</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     203<span class='line'>196</span>
     204<span class='line'>197</span> </span><span class="WHIT">                </span><span class="COMM">/**
     205<span class='line'>198</span>            * Sets the inner HTML of this element.
     206<span class='line'>199</span>            * @param {String} html The HTML to be set for this element.
     207<span class='line'>200</span>            * @returns {String} The inserted HTML.
     208<span class='line'>201</span>            * @example
     209<span class='line'>202</span>            * var p = new CKEDITOR.dom.element( 'p' );
     210<span class='line'>203</span>            * &lt;b>p.setHtml( '&lt;b&gt;Inner&lt;/b&gt; HTML' );&lt;/b>
     211<span class='line'>204</span>            *
     212<span class='line'>205</span>            * // result: "&lt;p&gt;&lt;b&gt;Inner&lt;/b&gt; HTML&lt;/p&gt;"
     213<span class='line'>206</span>            */</span><span class="WHIT">
     214<span class='line'>207</span> </span><span class="WHIT">                </span><span class="NAME">setHtml</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">html</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     215<span class='line'>208</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     216<span class='line'>209</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.innerHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">html</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     217<span class='line'>210</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     218<span class='line'>211</span>
     219<span class='line'>212</span> </span><span class="WHIT">                </span><span class="COMM">/**
     220<span class='line'>213</span>            * Sets the element contents as plain text.
     221<span class='line'>214</span>            * @param {String} text The text to be set.
     222<span class='line'>215</span>            * @returns {String} The inserted text.
     223<span class='line'>216</span>            * @example
     224<span class='line'>217</span>            * var element = new CKEDITOR.dom.element( 'div' );
     225<span class='line'>218</span>            * element.setText( 'A > B & C &lt; D' );
     226<span class='line'>219</span>            * alert( element.innerHTML );  // "A &amp;gt; B &amp;amp; C &amp;lt; D"
     227<span class='line'>220</span>            */</span><span class="WHIT">
     228<span class='line'>221</span> </span><span class="WHIT">                </span><span class="NAME">setText</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     229<span class='line'>222</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     230<span class='line'>223</span> </span><span class="WHIT">                        </span><span class="NAME">CKEDITOR.dom.element.prototype.setText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.innerText</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT">
     231<span class='line'>224</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     232<span class='line'>225</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     233<span class='line'>226</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.innerText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">text</span><span class="PUNC">;</span><span class="WHIT">
     234<span class='line'>227</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT">
     235<span class='line'>228</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     236<span class='line'>229</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     237<span class='line'>230</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.textContent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">text</span><span class="PUNC">;</span><span class="WHIT">
     238<span class='line'>231</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     239<span class='line'>232</span>
     240<span class='line'>233</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.setText</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">text</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     241<span class='line'>234</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    242242<span class='line'>235</span>
    243 <span class='line'>236</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
    244 <span class='line'>237</span> </span><span class="WHIT">                        </span><span class="COMM">/** @ignore */</span><span class="WHIT">
    245 <span class='line'>238</span> </span><span class="WHIT">                        </span><span class="NAME">this.getDocument</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    246 <span class='line'>239</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    247 <span class='line'>240</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">document</span><span class="PUNC">;</span><span class="WHIT">
    248 <span class='line'>241</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    249 <span class='line'>242</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    250 <span class='line'>243</span>
    251 <span class='line'>244</span> </span><span class="WHIT">                </span><span class="COMM">/**
    252 <span class='line'>245</span>            * Gets the value of the "id" attribute of this element.
    253 <span class='line'>246</span>            * @returns {String} The element id, or null if not available.
    254 <span class='line'>247</span>            * @example
    255 <span class='line'>248</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;p id="myId"&gt;&lt;/p&gt;' );
    256 <span class='line'>249</span>            * alert( &lt;b>element.getId()&lt;/b> );  // "myId"
    257 <span class='line'>250</span>            */</span><span class="WHIT">
    258 <span class='line'>251</span> </span><span class="WHIT">                </span><span class="NAME">getId</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    259 <span class='line'>252</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    260 <span class='line'>253</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.id</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
    261 <span class='line'>254</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    262 <span class='line'>255</span>
    263 <span class='line'>256</span> </span><span class="WHIT">                </span><span class="COMM">/**
    264 <span class='line'>257</span>            * Gets the value of the "name" attribute of this element.
    265 <span class='line'>258</span>            * @returns {String} The element name, or null if not available.
    266 <span class='line'>259</span>            * @example
    267 <span class='line'>260</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;input name="myName"&gt;&lt;/input&gt;' );
    268 <span class='line'>261</span>            * alert( &lt;b>element.getNameAtt()&lt;/b> );  // "myName"
    269 <span class='line'>262</span>            */</span><span class="WHIT">
    270 <span class='line'>263</span> </span><span class="WHIT">                </span><span class="NAME">getNameAtt</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    271 <span class='line'>264</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    272 <span class='line'>265</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.name</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
    273 <span class='line'>266</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    274 <span class='line'>267</span>
    275 <span class='line'>268</span> </span><span class="WHIT">                </span><span class="COMM">/**
    276 <span class='line'>269</span>            * Gets the element name (tag name). The returned name is guaranteed to
    277 <span class='line'>270</span>            * be always full lowercased.
    278 <span class='line'>271</span>            * @returns {String} The element name.
    279 <span class='line'>272</span>            * @example
    280 <span class='line'>273</span>            * var element = new CKEDITOR.dom.element( 'span' );
    281 <span class='line'>274</span>            * alert( &lt;b>element.getName()&lt;/b> );  // "span"
    282 <span class='line'>275</span>            */</span><span class="WHIT">
    283 <span class='line'>276</span> </span><span class="WHIT">                </span><span class="NAME">getName</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    284 <span class='line'>277</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    285 <span class='line'>278</span> </span><span class="WHIT">                        </span><span class="COMM">// Cache the lowercased name inside a closure.</span><span class="WHIT">
    286 <span class='line'>279</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">nodeName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.nodeName.toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    287 <span class='line'>280</span>
    288 <span class='line'>281</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
    289 <span class='line'>282</span> </span><span class="WHIT">                        </span><span class="COMM">/** @ignore */</span><span class="WHIT">
    290 <span class='line'>283</span> </span><span class="WHIT">                        </span><span class="NAME">this.getName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    291 <span class='line'>284</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    292 <span class='line'>285</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">nodeName</span><span class="PUNC">;</span><span class="WHIT">
    293 <span class='line'>286</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     243<span class='line'>236</span> </span><span class="WHIT">                </span><span class="COMM">/**
     244<span class='line'>237</span>            * Gets the document containing this element.
     245<span class='line'>238</span>            * @returns {CKEDITOR.dom.document} The document.
     246<span class='line'>239</span>            * @example
     247<span class='line'>240</span>            * var element = CKEDITOR.document.getById( 'example' );
     248<span class='line'>241</span>            * alert( &lt;b>element.getDocument().equals( CKEDITOR.document )&lt;/b> );  // "true"
     249<span class='line'>242</span>            */</span><span class="WHIT">
     250<span class='line'>243</span> </span><span class="WHIT">                </span><span class="NAME">getDocument</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     251<span class='line'>244</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     252<span class='line'>245</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">document</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.document</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$.ownerDocument</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     253<span class='line'>246</span>
     254<span class='line'>247</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
     255<span class='line'>248</span> </span><span class="WHIT">                        </span><span class="COMM">/** @ignore */</span><span class="WHIT">
     256<span class='line'>249</span> </span><span class="WHIT">                        </span><span class="NAME">this.getDocument</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     257<span class='line'>250</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     258<span class='line'>251</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">document</span><span class="PUNC">;</span><span class="WHIT">
     259<span class='line'>252</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     260<span class='line'>253</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     261<span class='line'>254</span>
     262<span class='line'>255</span> </span><span class="WHIT">                </span><span class="COMM">/**
     263<span class='line'>256</span>            * Gets the window object that contains this element.
     264<span class='line'>257</span>            * @returns {CKEDITOR.dom.window} The window object.
     265<span class='line'>258</span>            * @example
     266<span class='line'>259</span>            */</span><span class="WHIT">
     267<span class='line'>260</span> </span><span class="WHIT">                </span><span class="NAME">getWindow</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     268<span class='line'>261</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     269<span class='line'>262</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.getDocument</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">getWindow</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     270<span class='line'>263</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     271<span class='line'>264</span>
     272<span class='line'>265</span> </span><span class="WHIT">                </span><span class="COMM">/**
     273<span class='line'>266</span>            * Gets the value of the "id" attribute of this element.
     274<span class='line'>267</span>            * @returns {String} The element id, or null if not available.
     275<span class='line'>268</span>            * @example
     276<span class='line'>269</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;p id="myId"&gt;&lt;/p&gt;' );
     277<span class='line'>270</span>            * alert( &lt;b>element.getId()&lt;/b> );  // "myId"
     278<span class='line'>271</span>            */</span><span class="WHIT">
     279<span class='line'>272</span> </span><span class="WHIT">                </span><span class="NAME">getId</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     280<span class='line'>273</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     281<span class='line'>274</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.id</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
     282<span class='line'>275</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     283<span class='line'>276</span>
     284<span class='line'>277</span> </span><span class="WHIT">                </span><span class="COMM">/**
     285<span class='line'>278</span>            * Gets the value of the "name" attribute of this element.
     286<span class='line'>279</span>            * @returns {String} The element name, or null if not available.
     287<span class='line'>280</span>            * @example
     288<span class='line'>281</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;input name="myName"&gt;&lt;/input&gt;' );
     289<span class='line'>282</span>            * alert( &lt;b>element.getNameAtt()&lt;/b> );  // "myName"
     290<span class='line'>283</span>            */</span><span class="WHIT">
     291<span class='line'>284</span> </span><span class="WHIT">                </span><span class="NAME">getNameAtt</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     292<span class='line'>285</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     293<span class='line'>286</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.name</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
    294294<span class='line'>287</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    295295<span class='line'>288</span>
    296296<span class='line'>289</span> </span><span class="WHIT">                </span><span class="COMM">/**
    297 <span class='line'>290</span>            * Gets the first child node of this element.
    298 <span class='line'>291</span>            * @returns {CKEDITOR.dom.node} The first child node or null if not
    299 <span class='line'>292</span>            *              available.
     297<span class='line'>290</span>            * Gets the element name (tag name). The returned name is guaranteed to
     298<span class='line'>291</span>            * be always full lowercased.
     299<span class='line'>292</span>            * @returns {String} The element name.
    300300<span class='line'>293</span>            * @example
    301 <span class='line'>294</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/div&gt;' );
    302 <span class='line'>295</span>            * var first = &lt;b>element.getFirst()&lt;/b>;
    303 <span class='line'>296</span>            * alert( first.getName() );  // "b"
    304 <span class='line'>297</span>            */</span><span class="WHIT">
    305 <span class='line'>298</span> </span><span class="WHIT">                </span><span class="NAME">getFirst</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    306 <span class='line'>299</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    307 <span class='line'>300</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.firstChild</span><span class="PUNC">;</span><span class="WHIT">
    308 <span class='line'>301</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.node</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
    309 <span class='line'>302</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    310 <span class='line'>303</span>
    311 <span class='line'>304</span> </span><span class="WHIT">                </span><span class="COMM">/**
    312 <span class='line'>305</span>            * Hides this element (display:none).
    313 <span class='line'>306</span>            * @example
    314 <span class='line'>307</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
    315 <span class='line'>308</span>            * &lt;b>element.hide()&lt;/b>;
    316 <span class='line'>309</span>            */</span><span class="WHIT">
    317 <span class='line'>310</span> </span><span class="WHIT">                </span><span class="NAME">hide</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    318 <span class='line'>311</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    319 <span class='line'>312</span> </span><span class="WHIT">                        </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'display'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'none'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    320 <span class='line'>313</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    321 <span class='line'>314</span>
    322 <span class='line'>315</span> </span><span class="WHIT">                </span><span class="COMM">/**
    323 <span class='line'>316</span>            * Shows this element (display it).
    324 <span class='line'>317</span>            * @example
    325 <span class='line'>318</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
    326 <span class='line'>319</span>            * &lt;b>element.show()&lt;/b>;
    327 <span class='line'>320</span>            */</span><span class="WHIT">
    328 <span class='line'>321</span> </span><span class="WHIT">                </span><span class="NAME">show</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    329 <span class='line'>322</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    330 <span class='line'>323</span> </span><span class="WHIT">                        </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'display'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">''</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    331 <span class='line'>324</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    332 <span class='line'>325</span>
    333 <span class='line'>326</span> </span><span class="WHIT">                </span><span class="COMM">/**
    334 <span class='line'>327</span>            * Sets the value of an element attribute.
    335 <span class='line'>328</span>            * @param {String} name The name of the attribute.
    336 <span class='line'>329</span>            * @param {String} value The value to be set to the attribute.
    337 <span class='line'>330</span>            * @function
    338 <span class='line'>331</span>            * @example
    339 <span class='line'>332</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
    340 <span class='line'>333</span>            * &lt;b>element.setAttribute( 'class', 'myClass' )&lt;/b>;
    341 <span class='line'>334</span>            * &lt;b>element.setAttribute( 'title', 'This is an example' )&lt;/b>;
    342 <span class='line'>335</span>            */</span><span class="WHIT">
    343 <span class='line'>336</span> </span><span class="WHIT">                </span><span class="NAME">setAttribute</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    344 <span class='line'>337</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    345 <span class='line'>338</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    346 <span class='line'>339</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    347 <span class='line'>340</span> </span><span class="WHIT">                                </span><span class="NAME">this.$.setAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    348 <span class='line'>341</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    349 <span class='line'>342</span>
    350 <span class='line'>343</span> </span><span class="WHIT">                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.ie</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    351 <span class='line'>344</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    352 <span class='line'>345</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    353 <span class='line'>346</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    354 <span class='line'>347</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'class'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    355 <span class='line'>348</span> </span><span class="WHIT">                                                </span><span class="NAME">this.$.className</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
    356 <span class='line'>349</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'style'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    357 <span class='line'>350</span> </span><span class="WHIT">                                                </span><span class="NAME">this.$.style.cssText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
    358 <span class='line'>351</span> </span><span class="WHIT">                                        </span><span class="KEYW">else</span><span class="WHIT">
    359 <span class='line'>352</span> </span><span class="WHIT">                                                </span><span class="NAME">standard.apply</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">arguments</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    360 <span class='line'>353</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    361 <span class='line'>354</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT">
    362 <span class='line'>355</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT">
    363 <span class='line'>356</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="PUNC">;</span><span class="WHIT">
    364 <span class='line'>357</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
    365 <span class='line'>358</span>
    366 <span class='line'>359</span> </span><span class="WHIT">                </span><span class="COMM">/**
    367 <span class='line'>360</span>            * Sets the value of several element attributes.
    368 <span class='line'>361</span>            * @param {Object} attributesPairs An object containing the names and
    369 <span class='line'>362</span>            *              values of the attributes.
     301<span class='line'>294</span>            * var element = new CKEDITOR.dom.element( 'span' );
     302<span class='line'>295</span>            * alert( &lt;b>element.getName()&lt;/b> );  // "span"
     303<span class='line'>296</span>            */</span><span class="WHIT">
     304<span class='line'>297</span> </span><span class="WHIT">                </span><span class="NAME">getName</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     305<span class='line'>298</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     306<span class='line'>299</span> </span><span class="WHIT">                        </span><span class="COMM">// Cache the lowercased name inside a closure.</span><span class="WHIT">
     307<span class='line'>300</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">nodeName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.nodeName.toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     308<span class='line'>301</span>
     309<span class='line'>302</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT">
     310<span class='line'>303</span> </span><span class="WHIT">                        </span><span class="COMM">/** @ignore */</span><span class="WHIT">
     311<span class='line'>304</span> </span><span class="WHIT">                        </span><span class="NAME">this.getName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     312<span class='line'>305</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     313<span class='line'>306</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">nodeName</span><span class="PUNC">;</span><span class="WHIT">
     314<span class='line'>307</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     315<span class='line'>308</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     316<span class='line'>309</span>
     317<span class='line'>310</span> </span><span class="WHIT">                </span><span class="COMM">/**
     318<span class='line'>311</span>            * Gets the value set to this element. This value is usually available
     319<span class='line'>312</span>            * for form field elements.
     320<span class='line'>313</span>            * @returns {String} The element value.
     321<span class='line'>314</span>            */</span><span class="WHIT">
     322<span class='line'>315</span> </span><span class="WHIT">                </span><span class="NAME">getValue</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     323<span class='line'>316</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     324<span class='line'>317</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.$.value</span><span class="PUNC">;</span><span class="WHIT">
     325<span class='line'>318</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     326<span class='line'>319</span>
     327<span class='line'>320</span> </span><span class="WHIT">                </span><span class="COMM">/**
     328<span class='line'>321</span>            * Gets the first child node of this element.
     329<span class='line'>322</span>            * @returns {CKEDITOR.dom.node} The first child node or null if not
     330<span class='line'>323</span>            *              available.
     331<span class='line'>324</span>            * @example
     332<span class='line'>325</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/div&gt;' );
     333<span class='line'>326</span>            * var first = &lt;b>element.getFirst()&lt;/b>;
     334<span class='line'>327</span>            * alert( first.getName() );  // "b"
     335<span class='line'>328</span>            */</span><span class="WHIT">
     336<span class='line'>329</span> </span><span class="WHIT">                </span><span class="NAME">getFirst</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     337<span class='line'>330</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     338<span class='line'>331</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$.firstChild</span><span class="PUNC">;</span><span class="WHIT">
     339<span class='line'>332</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.node</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
     340<span class='line'>333</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     341<span class='line'>334</span>
     342<span class='line'>335</span> </span><span class="WHIT">                </span><span class="COMM">/**
     343<span class='line'>336</span>            * Hides this element (display:none).
     344<span class='line'>337</span>            * @example
     345<span class='line'>338</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
     346<span class='line'>339</span>            * &lt;b>element.hide()&lt;/b>;
     347<span class='line'>340</span>            */</span><span class="WHIT">
     348<span class='line'>341</span> </span><span class="WHIT">                </span><span class="NAME">hide</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     349<span class='line'>342</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     350<span class='line'>343</span> </span><span class="WHIT">                        </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'display'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'none'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     351<span class='line'>344</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     352<span class='line'>345</span>
     353<span class='line'>346</span> </span><span class="WHIT">                </span><span class="COMM">/**
     354<span class='line'>347</span>            * Shows this element (display it).
     355<span class='line'>348</span>            * @example
     356<span class='line'>349</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
     357<span class='line'>350</span>            * &lt;b>element.show()&lt;/b>;
     358<span class='line'>351</span>            */</span><span class="WHIT">
     359<span class='line'>352</span> </span><span class="WHIT">                </span><span class="NAME">show</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     360<span class='line'>353</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     361<span class='line'>354</span> </span><span class="WHIT">                        </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'display'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">''</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     362<span class='line'>355</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     363<span class='line'>356</span>
     364<span class='line'>357</span> </span><span class="WHIT">                </span><span class="COMM">/**
     365<span class='line'>358</span>            * Sets the value of an element attribute.
     366<span class='line'>359</span>            * @param {String} name The name of the attribute.
     367<span class='line'>360</span>            * @param {String} value The value to be set to the attribute.
     368<span class='line'>361</span>            * @function
     369<span class='line'>362</span>            * @returns {CKEDITOR.dom.element} This element instance.
    370370<span class='line'>363</span>            * @example
    371371<span class='line'>364</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
    372 <span class='line'>365</span>            * &lt;b>element.setAttributes({
    373 <span class='line'>366</span>            *     'class' : 'myClass',
    374 <span class='line'>367</span>            *     'title' : 'This is an example' })&lt;/b>;
    375 <span class='line'>368</span>            */</span><span class="WHIT">
    376 <span class='line'>369</span> </span><span class="WHIT">                </span><span class="NAME">setAttributes</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">attributesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    377 <span class='line'>370</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    378 <span class='line'>371</span> </span><span class="WHIT">                        </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">attributesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    379 <span class='line'>372</span> </span><span class="WHIT">                                </span><span class="NAME">this.setAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">attributesPairs</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    380 <span class='line'>373</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    381 <span class='line'>374</span>
    382 <span class='line'>375</span> </span><span class="WHIT">                </span><span class="COMM">/**
    383 <span class='line'>376</span>            * Removes the element from the document DOM.
    384 <span class='line'>377</span>            * @example
    385 <span class='line'>378</span>            * var element = CKEDITOR.dom.element.getById( 'MyElement' );
    386 <span class='line'>379</span>            * &lt;b>element.remove()&lt;/b>;
    387 <span class='line'>380</span>            */</span><span class="WHIT">
    388 <span class='line'>381</span> </span><span class="WHIT">                </span><span class="NAME">remove</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    389 <span class='line'>382</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    390 <span class='line'>383</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.parentNode.removeChild</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    391 <span class='line'>384</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    392 <span class='line'>385</span>
    393 <span class='line'>386</span> </span><span class="WHIT">                </span><span class="COMM">/**
    394 <span class='line'>387</span>            * Removes an attribute from the element.
    395 <span class='line'>388</span>            * @param {String} name The attribute name.
    396 <span class='line'>389</span>            * @function
    397 <span class='line'>390</span>            * @example
    398 <span class='line'>391</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div class="classA">&lt;/div>' );
    399 <span class='line'>392</span>            * element.removeAttribute( 'class' );
    400 <span class='line'>393</span>            */</span><span class="WHIT">
    401 <span class='line'>394</span> </span><span class="WHIT">                </span><span class="NAME">removeAttribute</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
    402 <span class='line'>395</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    403 <span class='line'>396</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    404 <span class='line'>397</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    405 <span class='line'>398</span> </span><span class="WHIT">                                </span><span class="NAME">this.$.removeAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    406 <span class='line'>399</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    407 <span class='line'>400</span>
    408 <span class='line'>401</span> </span><span class="WHIT">                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.ie</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    409 <span class='line'>402</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
    410 <span class='line'>403</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    411 <span class='line'>404</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
    412 <span class='line'>405</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'class'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    413 <span class='line'>406</span> </span><span class="WHIT">                                                </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'className'</span><span class="PUNC">;</span><span class="WHIT">
    414 <span class='line'>407</span> </span><span class="WHIT">                                        </span><span class="NAME">standard.call</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    415 <span class='line'>408</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    416 <span class='line'>409</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT">
    417 <span class='line'>410</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT">
    418 <span class='line'>411</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="PUNC">;</span><span class="WHIT">
    419 <span class='line'>412</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
    420 <span class='line'>413</span>
    421 <span class='line'>414</span> </span><span class="WHIT">                </span><span class="COMM">/**
    422 <span class='line'>415</span>            * Sets the value of an element style.
    423 <span class='line'>416</span>            * @param {String} name The name of the style. The CSS naming notation
    424 <span class='line'>417</span>            *              must be used (e.g. "background-color").
    425 <span class='line'>418</span>            * @param {String} value The value to be set to the style.
    426 <span class='line'>419</span>            * @example
    427 <span class='line'>420</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
    428 <span class='line'>421</span>            * &lt;b>element.setStyle( 'background-color', '#ff0000' )&lt;/b>;
    429 <span class='line'>422</span>            * &lt;b>element.setStyle( 'margin-top', '10px' )&lt;/b>;
    430 <span class='line'>423</span>            * &lt;b>element.setStyle( 'float', 'right' )&lt;/b>;
    431 <span class='line'>424</span>            */</span><span class="WHIT">
    432 <span class='line'>425</span> </span><span class="WHIT">                </span><span class="NAME">setStyle</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    433 <span class='line'>426</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    434 <span class='line'>427</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.style</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.cssStyleToDomStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
    435 <span class='line'>428</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    436 <span class='line'>429</span>
    437 <span class='line'>430</span> </span><span class="WHIT">                </span><span class="COMM">/**
    438 <span class='line'>431</span>            * Sets the value of several element styles.
    439 <span class='line'>432</span>            * @param {Object} stylesPairs An object containing the names and
    440 <span class='line'>433</span>            *              values of the styles.
    441 <span class='line'>434</span>            * @example
    442 <span class='line'>435</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
    443 <span class='line'>436</span>            * &lt;b>element.setStyles({
    444 <span class='line'>437</span>            *     'position' : 'absolute',
    445 <span class='line'>438</span>            *     'float' : 'right' })&lt;/b>;
    446 <span class='line'>439</span>            */</span><span class="WHIT">
    447 <span class='line'>440</span> </span><span class="WHIT">                </span><span class="NAME">setStyles</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    448 <span class='line'>441</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    449 <span class='line'>442</span> </span><span class="WHIT">                        </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    450 <span class='line'>443</span> </span><span class="WHIT">                                </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    451 <span class='line'>444</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
    452 <span class='line'>445</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    453 <span class='line'>446</span> </span></pre></body></html>
     372<span class='line'>365</span>            * &lt;b>element.setAttribute( 'class', 'myClass' )&lt;/b>;
     373<span class='line'>366</span>            * &lt;b>element.setAttribute( 'title', 'This is an example' )&lt;/b>;
     374<span class='line'>367</span>            */</span><span class="WHIT">
     375<span class='line'>368</span> </span><span class="WHIT">                </span><span class="NAME">setAttribute</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     376<span class='line'>369</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     377<span class='line'>370</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     378<span class='line'>371</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     379<span class='line'>372</span> </span><span class="WHIT">                                </span><span class="NAME">this.$.setAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     380<span class='line'>373</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     381<span class='line'>374</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     382<span class='line'>375</span>
     383<span class='line'>376</span> </span><span class="WHIT">                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.ie</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     384<span class='line'>377</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     385<span class='line'>378</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     386<span class='line'>379</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     387<span class='line'>380</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'class'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     388<span class='line'>381</span> </span><span class="WHIT">                                                </span><span class="NAME">this.$.className</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
     389<span class='line'>382</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'style'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     390<span class='line'>383</span> </span><span class="WHIT">                                                </span><span class="NAME">this.$.style.cssText</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
     391<span class='line'>384</span> </span><span class="WHIT">                                        </span><span class="KEYW">else</span><span class="WHIT">
     392<span class='line'>385</span> </span><span class="WHIT">                                                </span><span class="NAME">standard.apply</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">arguments</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     393<span class='line'>386</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     394<span class='line'>387</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     395<span class='line'>388</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT">
     396<span class='line'>389</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT">
     397<span class='line'>390</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="PUNC">;</span><span class="WHIT">
     398<span class='line'>391</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
     399<span class='line'>392</span>
     400<span class='line'>393</span> </span><span class="WHIT">                </span><span class="COMM">/**
     401<span class='line'>394</span>            * Sets the value of several element attributes.
     402<span class='line'>395</span>            * @param {Object} attributesPairs An object containing the names and
     403<span class='line'>396</span>            *              values of the attributes.
     404<span class='line'>397</span>            * @returns {CKEDITOR.dom.element} This element instance.
     405<span class='line'>398</span>            * @example
     406<span class='line'>399</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
     407<span class='line'>400</span>            * &lt;b>element.setAttributes({
     408<span class='line'>401</span>            *     'class' : 'myClass',
     409<span class='line'>402</span>            *     'title' : 'This is an example' })&lt;/b>;
     410<span class='line'>403</span>            */</span><span class="WHIT">
     411<span class='line'>404</span> </span><span class="WHIT">                </span><span class="NAME">setAttributes</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">attributesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     412<span class='line'>405</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     413<span class='line'>406</span> </span><span class="WHIT">                        </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">attributesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     414<span class='line'>407</span> </span><span class="WHIT">                                </span><span class="NAME">this.setAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">attributesPairs</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     415<span class='line'>408</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     416<span class='line'>409</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     417<span class='line'>410</span>
     418<span class='line'>411</span> </span><span class="WHIT">                </span><span class="COMM">/**
     419<span class='line'>412</span>            * Sets the element value. This function is usually used with form
     420<span class='line'>413</span>            * field element.
     421<span class='line'>414</span>            * @param {String} value The element value.
     422<span class='line'>415</span>            * @returns {CKEDITOR.dom.element} This element instance.
     423<span class='line'>416</span>            */</span><span class="WHIT">
     424<span class='line'>417</span> </span><span class="WHIT">                </span><span class="NAME">setValue</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     425<span class='line'>418</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     426<span class='line'>419</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
     427<span class='line'>420</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     428<span class='line'>421</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     429<span class='line'>422</span>
     430<span class='line'>423</span> </span><span class="WHIT">                </span><span class="COMM">/**
     431<span class='line'>424</span>            * Removes the element from the document DOM.
     432<span class='line'>425</span>            * @example
     433<span class='line'>426</span>            * var element = CKEDITOR.dom.element.getById( 'MyElement' );
     434<span class='line'>427</span>            * &lt;b>element.remove()&lt;/b>;
     435<span class='line'>428</span>            */</span><span class="WHIT">
     436<span class='line'>429</span> </span><span class="WHIT">                </span><span class="NAME">remove</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     437<span class='line'>430</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     438<span class='line'>431</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.parentNode.removeChild</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     439<span class='line'>432</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     440<span class='line'>433</span>
     441<span class='line'>434</span> </span><span class="WHIT">                </span><span class="COMM">/**
     442<span class='line'>435</span>            * Removes an attribute from the element.
     443<span class='line'>436</span>            * @param {String} name The attribute name.
     444<span class='line'>437</span>            * @function
     445<span class='line'>438</span>            * @example
     446<span class='line'>439</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div class="classA">&lt;/div>' );
     447<span class='line'>440</span>            * element.removeAttribute( 'class' );
     448<span class='line'>441</span>            */</span><span class="WHIT">
     449<span class='line'>442</span> </span><span class="WHIT">                </span><span class="NAME">removeAttribute</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
     450<span class='line'>443</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     451<span class='line'>444</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     452<span class='line'>445</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     453<span class='line'>446</span> </span><span class="WHIT">                                </span><span class="NAME">this.$.removeAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     454<span class='line'>447</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     455<span class='line'>448</span>
     456<span class='line'>449</span> </span><span class="WHIT">                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.ie</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     457<span class='line'>450</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT">
     458<span class='line'>451</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     459<span class='line'>452</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT">
     460<span class='line'>453</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'class'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     461<span class='line'>454</span> </span><span class="WHIT">                                                </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'className'</span><span class="PUNC">;</span><span class="WHIT">
     462<span class='line'>455</span> </span><span class="WHIT">                                        </span><span class="NAME">standard.call</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     463<span class='line'>456</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     464<span class='line'>457</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT">
     465<span class='line'>458</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT">
     466<span class='line'>459</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="PUNC">;</span><span class="WHIT">
     467<span class='line'>460</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
     468<span class='line'>461</span>
     469<span class='line'>462</span> </span><span class="WHIT">                </span><span class="COMM">/**
     470<span class='line'>463</span>            * Sets the value of an element style.
     471<span class='line'>464</span>            * @param {String} name The name of the style. The CSS naming notation
     472<span class='line'>465</span>            *              must be used (e.g. "background-color").
     473<span class='line'>466</span>            * @param {String} value The value to be set to the style.
     474<span class='line'>467</span>            * @returns {CKEDITOR.dom.element} This element instance.
     475<span class='line'>468</span>            * @example
     476<span class='line'>469</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
     477<span class='line'>470</span>            * &lt;b>element.setStyle( 'background-color', '#ff0000' )&lt;/b>;
     478<span class='line'>471</span>            * &lt;b>element.setStyle( 'margin-top', '10px' )&lt;/b>;
     479<span class='line'>472</span>            * &lt;b>element.setStyle( 'float', 'right' )&lt;/b>;
     480<span class='line'>473</span>            */</span><span class="WHIT">
     481<span class='line'>474</span> </span><span class="WHIT">                </span><span class="NAME">setStyle</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     482<span class='line'>475</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     483<span class='line'>476</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.style</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.cssStyleToDomStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT">
     484<span class='line'>477</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     485<span class='line'>478</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     486<span class='line'>479</span>
     487<span class='line'>480</span> </span><span class="WHIT">                </span><span class="COMM">/**
     488<span class='line'>481</span>            * Sets the value of several element styles.
     489<span class='line'>482</span>            * @param {Object} stylesPairs An object containing the names and
     490<span class='line'>483</span>            *              values of the styles.
     491<span class='line'>484</span>            * @returns {CKEDITOR.dom.element} This element instance.
     492<span class='line'>485</span>            * @example
     493<span class='line'>486</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' );
     494<span class='line'>487</span>            * &lt;b>element.setStyles({
     495<span class='line'>488</span>            *     'position' : 'absolute',
     496<span class='line'>489</span>            *     'float' : 'right' })&lt;/b>;
     497<span class='line'>490</span>            */</span><span class="WHIT">
     498<span class='line'>491</span> </span><span class="WHIT">                </span><span class="NAME">setStyles</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     499<span class='line'>492</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     500<span class='line'>493</span> </span><span class="WHIT">                        </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     501<span class='line'>494</span> </span><span class="WHIT">                                </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     502<span class='line'>495</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     503<span class='line'>496</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
     504<span class='line'>497</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     505<span class='line'>498</span> </span></pre></body></html>
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_node.js.html

    r2176 r2214  
    3636<span class='line'> 29</span>  * and instance of classes that inherits this class, like
    3737<span class='line'> 30</span>  * {@link CKEDITOR.dom.element} or {@link CKEDITOR.dom.text}.
    38 <span class='line'> 31</span>  * @param {Object} domNode A native DOM node.
    39 <span class='line'> 32</span>  * @constructor
    40 <span class='line'> 33</span>  * @see CKEDITOR.dom.element
    41 <span class='line'> 34</span>  * @see CKEDITOR.dom.text
    42 <span class='line'> 35</span>  * @example
    43 <span class='line'> 36</span>  */</span><span class="WHIT">
    44 <span class='line'> 37</span> </span><span class="NAME">CKEDITOR.dom.node</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    45 <span class='line'> 38</span> </span><span class="PUNC">{</span><span class="WHIT">
    46 <span class='line'> 39</span> </span><span class="WHIT">        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    47 <span class='line'> 40</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    48 <span class='line'> 41</span> </span><span class="WHIT">                </span><span class="KEYW">switch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode.nodeType</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    49 <span class='line'> 42</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
    50 <span class='line'> 43</span> </span><span class="WHIT">                        </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT">    </span><span class="COMM">// ELEMENT_NODE</span><span class="WHIT">
    51 <span class='line'> 44</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    52 <span class='line'> 45</span>
    53 <span class='line'> 46</span> </span><span class="WHIT">                        </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT">    </span><span class="COMM">// TEXT_NODE</span><span class="WHIT">
    54 <span class='line'> 47</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.text</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    55 <span class='line'> 48</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
    56 <span class='line'> 49</span>
    57 <span class='line'> 50</span> </span><span class="WHIT">                </span><span class="COMM">/**
    58 <span class='line'> 51</span>            * The native DOM node represented by this class instance.
    59 <span class='line'> 52</span>            * @type Object
    60 <span class='line'> 53</span>            * @example
    61 <span class='line'> 54</span>            * var element = new CKEDITOR.dom.node( document.body );
    62 <span class='line'> 55</span>            * alert( element.$.nodeType );  // "1"
    63 <span class='line'> 56</span>            */</span><span class="WHIT">
    64 <span class='line'> 57</span> </span><span class="WHIT">                </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="PUNC">;</span><span class="WHIT">
    65 <span class='line'> 58</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
    66 <span class='line'> 59</span>
    67 <span class='line'> 60</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
    68 <span class='line'> 61</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    69 <span class='line'> 62</span>
    70 <span class='line'> 63</span> </span><span class="NAME">CKEDITOR.dom.node.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">
    71 <span class='line'> 64</span> </span><span class="PUNC">{</span><span class="WHIT">
    72 <span class='line'> 65</span> </span><span class="WHIT">        </span><span class="COMM">/**
    73 <span class='line'> 66</span>    * Makes this node child of another element.
    74 <span class='line'> 67</span>    * @param {CKEDITOR.dom.element} element The target element to which append
    75 <span class='line'> 68</span>    *              this node.
    76 <span class='line'> 69</span>    * @returns {CKEDITOR.dom.element} The target element.
    77 <span class='line'> 70</span>    * @example
    78 <span class='line'> 71</span>    * var p = new CKEDITOR.dom.element( 'p' );
    79 <span class='line'> 72</span>    * var strong = new CKEDITOR.dom.element( 'strong' );
    80 <span class='line'> 73</span>    * strong.appendTo( p );
    81 <span class='line'> 74</span>    *
    82 <span class='line'> 75</span>    * // result: "&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;"
    83 <span class='line'> 76</span>    */</span><span class="WHIT">
    84 <span class='line'> 77</span> </span><span class="WHIT">        </span><span class="NAME">appendTo</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">element</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    85 <span class='line'> 78</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    86 <span class='line'> 79</span> </span><span class="WHIT">                </span><span class="NAME">element.append</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    87 <span class='line'> 80</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">element</span><span class="PUNC">;</span><span class="WHIT">
    88 <span class='line'> 81</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    89 <span class='line'> 82</span>
    90 <span class='line'> 83</span> </span><span class="WHIT">        </span><span class="COMM">/**
    91 <span class='line'> 84</span>    * Inserts this element after a node.
    92 <span class='line'> 85</span>    * @param {CKEDITOR.dom.node} node The that will preceed this element.
    93 <span class='line'> 86</span>    * @returns {CKEDITOR.dom.node} The node preceeding this one after
    94 <span class='line'> 87</span>    *              insertion.
    95 <span class='line'> 88</span>    * @example
    96 <span class='line'> 89</span>    * var em = new CKEDITOR.dom.element( 'em' );
    97 <span class='line'> 90</span>    * var strong = new CKEDITOR.dom.element( 'strong' );
    98 <span class='line'> 91</span>    * strong.insertAfter( em );
    99 <span class='line'> 92</span>    *
    100 <span class='line'> 93</span>    * // result: "&lt;em&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;"
    101 <span class='line'> 94</span>    */</span><span class="WHIT">
    102 <span class='line'> 95</span> </span><span class="WHIT">        </span><span class="NAME">insertAfter</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">node</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    103 <span class='line'> 96</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    104 <span class='line'> 97</span> </span><span class="WHIT">                </span><span class="NAME">node.$.parentNode.insertBefore</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">node.$.nextSibling</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    105 <span class='line'> 98</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">node</span><span class="PUNC">;</span><span class="WHIT">
    106 <span class='line'> 99</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
    107 <span class='line'>100</span>
    108 <span class='line'>101</span> </span><span class="WHIT">        </span><span class="COMM">/**
    109 <span class='line'>102</span>    * Inserts this element before a node.
    110 <span class='line'>103</span>    * @param {CKEDITOR.dom.node} node The that will be after this element.
    111 <span class='line'>104</span>    * @returns {CKEDITOR.dom.node} The node after this one after insertion.
    112 <span class='line'>105</span>    * @example
    113 <span class='line'>106</span>    * var em = new CKEDITOR.dom.element( 'em' );
    114 <span class='line'>107</span>    * var strong = new CKEDITOR.dom.element( 'strong' );
    115 <span class='line'>108</span>    * strong.insertBefore( em );
    116 <span class='line'>109</span>    *
    117 <span class='line'>110</span>    * // result: "&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;"
    118 <span class='line'>111</span>    */</span><span class="WHIT">
    119 <span class='line'>112</span> </span><span class="WHIT">        </span><span class="NAME">insertBefore</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">node</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    120 <span class='line'>113</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
    121 <span class='line'>114</span> </span><span class="WHIT">                </span><span class="NAME">node.$.parentNode.insertBefore</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">node.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
    122 <span class='line'>115</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
    123 <span class='line'>116</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    124 <span class='line'>117</span> </span></pre></body></html>
     38<span class='line'> 31</span>  * @augments CKEDITOR.dom.domObject
     39<span class='line'> 32</span>  * @param {Object} domNode A native DOM node.
     40<span class='line'> 33</span>  * @constructor
     41<span class='line'> 34</span>  * @see CKEDITOR.dom.element
     42<span class='line'> 35</span>  * @see CKEDITOR.dom.text
     43<span class='line'> 36</span>  * @example
     44<span class='line'> 37</span>  */</span><span class="WHIT">
     45<span class='line'> 38</span> </span><span class="NAME">CKEDITOR.dom.node</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     46<span class='line'> 39</span> </span><span class="PUNC">{</span><span class="WHIT">
     47<span class='line'> 40</span> </span><span class="WHIT">        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     48<span class='line'> 41</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     49<span class='line'> 42</span> </span><span class="WHIT">                </span><span class="KEYW">switch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode.nodeType</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     50<span class='line'> 43</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     51<span class='line'> 44</span> </span><span class="WHIT">                        </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT">    </span><span class="COMM">// ELEMENT_NODE</span><span class="WHIT">
     52<span class='line'> 45</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     53<span class='line'> 46</span>
     54<span class='line'> 47</span> </span><span class="WHIT">                        </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT">    </span><span class="COMM">// TEXT_NODE</span><span class="WHIT">
     55<span class='line'> 48</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.text</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     56<span class='line'> 49</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
     57<span class='line'> 50</span>
     58<span class='line'> 51</span> </span><span class="WHIT">                </span><span class="COMM">/**
     59<span class='line'> 52</span>            * The native DOM node represented by this class instance.
     60<span class='line'> 53</span>            * @type Object
     61<span class='line'> 54</span>            * @example
     62<span class='line'> 55</span>            * var element = new CKEDITOR.dom.node( document.body );
     63<span class='line'> 56</span>            * alert( element.$.nodeType );  // "1"
     64<span class='line'> 57</span>            */</span><span class="WHIT">
     65<span class='line'> 58</span> </span><span class="WHIT">                </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domNode</span><span class="PUNC">;</span><span class="WHIT">
     66<span class='line'> 59</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
     67<span class='line'> 60</span>
     68<span class='line'> 61</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
     69<span class='line'> 62</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     70<span class='line'> 63</span>
     71<span class='line'> 64</span> </span><span class="NAME">CKEDITOR.dom.node.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.domObject</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     72<span class='line'> 65</span>
     73<span class='line'> 66</span> </span><span class="NAME">CKEDITOR.tools.extend</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.node.prototype</span><span class="PUNC">,</span><span class="WHIT">
     74<span class='line'> 67</span> </span><span class="WHIT">        </span><span class="COMM">/** @lends CKEDITOR.dom.node.prototype */</span><span class="WHIT">
     75<span class='line'> 68</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     76<span class='line'> 69</span> </span><span class="WHIT">                </span><span class="COMM">/**
     77<span class='line'> 70</span>            * Makes this node child of another element.
     78<span class='line'> 71</span>            * @param {CKEDITOR.dom.element} element The target element to which append
     79<span class='line'> 72</span>            *              this node.
     80<span class='line'> 73</span>            * @returns {CKEDITOR.dom.element} The target element.
     81<span class='line'> 74</span>            * @example
     82<span class='line'> 75</span>            * var p = new CKEDITOR.dom.element( 'p' );
     83<span class='line'> 76</span>            * var strong = new CKEDITOR.dom.element( 'strong' );
     84<span class='line'> 77</span>            * strong.appendTo( p );
     85<span class='line'> 78</span>            *
     86<span class='line'> 79</span>            * // result: "&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;"
     87<span class='line'> 80</span>            */</span><span class="WHIT">
     88<span class='line'> 81</span> </span><span class="WHIT">                </span><span class="NAME">appendTo</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">element</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     89<span class='line'> 82</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     90<span class='line'> 83</span> </span><span class="WHIT">                        </span><span class="NAME">element.append</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     91<span class='line'> 84</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">element</span><span class="PUNC">;</span><span class="WHIT">
     92<span class='line'> 85</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     93<span class='line'> 86</span>
     94<span class='line'> 87</span> </span><span class="WHIT">                </span><span class="COMM">/**
     95<span class='line'> 88</span>            * Inserts this element after a node.
     96<span class='line'> 89</span>            * @param {CKEDITOR.dom.node} node The that will preceed this element.
     97<span class='line'> 90</span>            * @returns {CKEDITOR.dom.node} The node preceeding this one after
     98<span class='line'> 91</span>            *              insertion.
     99<span class='line'> 92</span>            * @example
     100<span class='line'> 93</span>            * var em = new CKEDITOR.dom.element( 'em' );
     101<span class='line'> 94</span>            * var strong = new CKEDITOR.dom.element( 'strong' );
     102<span class='line'> 95</span>            * strong.insertAfter( em );
     103<span class='line'> 96</span>            *
     104<span class='line'> 97</span>            * // result: "&lt;em&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;"
     105<span class='line'> 98</span>            */</span><span class="WHIT">
     106<span class='line'> 99</span> </span><span class="WHIT">                </span><span class="NAME">insertAfter</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">node</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     107<span class='line'>100</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     108<span class='line'>101</span> </span><span class="WHIT">                        </span><span class="NAME">node.$.parentNode.insertBefore</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">node.$.nextSibling</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     109<span class='line'>102</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">node</span><span class="PUNC">;</span><span class="WHIT">
     110<span class='line'>103</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
     111<span class='line'>104</span>
     112<span class='line'>105</span> </span><span class="WHIT">                </span><span class="COMM">/**
     113<span class='line'>106</span>            * Inserts this element before a node.
     114<span class='line'>107</span>            * @param {CKEDITOR.dom.node} node The that will be after this element.
     115<span class='line'>108</span>            * @returns {CKEDITOR.dom.node} The node after this one after insertion.
     116<span class='line'>109</span>            * @example
     117<span class='line'>110</span>            * var em = new CKEDITOR.dom.element( 'em' );
     118<span class='line'>111</span>            * var strong = new CKEDITOR.dom.element( 'strong' );
     119<span class='line'>112</span>            * strong.insertBefore( em );
     120<span class='line'>113</span>            *
     121<span class='line'>114</span>            * // result: "&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;"
     122<span class='line'>115</span>            */</span><span class="WHIT">
     123<span class='line'>116</span> </span><span class="WHIT">                </span><span class="NAME">insertBefore</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">node</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     124<span class='line'>117</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT">
     125<span class='line'>118</span> </span><span class="WHIT">                        </span><span class="NAME">node.$.parentNode.insertBefore</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">node.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     126<span class='line'>119</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT">
     127<span class='line'>120</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
     128<span class='line'>121</span> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     129<span class='line'>122</span> </span></pre></body></html>
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_window.js.html

    r2189 r2214  
    3535<span class='line'> 28</span>  * Represents a DOM window.
    3636<span class='line'> 29</span>  * @constructor
    37 <span class='line'> 30</span>  * @param {Object} domWindow A native DOM window.
    38 <span class='line'> 31</span>  * @example
    39 <span class='line'> 32</span>  * var document = new CKEDITOR.dom.window( window );
    40 <span class='line'> 33</span>  */</span><span class="WHIT">
    41 <span class='line'> 34</span> </span><span class="NAME">CKEDITOR.dom.window</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domWindow</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
    42 <span class='line'> 35</span> </span><span class="PUNC">{</span><span class="WHIT">
    43 <span class='line'> 36</span> </span><span class="WHIT">        </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domWindow</span><span class="PUNC">;</span><span class="WHIT">
    44 <span class='line'> 37</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
    45 <span class='line'> 38</span> </span></pre></body></html>
     37<span class='line'> 30</span>  * @augments CKEDITOR.dom.domObject
     38<span class='line'> 31</span>  * @param {Object} domWindow A native DOM window.
     39<span class='line'> 32</span>  * @example
     40<span class='line'> 33</span>  * var document = new CKEDITOR.dom.window( window );
     41<span class='line'> 34</span>  */</span><span class="WHIT">
     42<span class='line'> 35</span> </span><span class="NAME">CKEDITOR.dom.window</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domWindow</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
     43<span class='line'> 36</span> </span><span class="PUNC">{</span><span class="WHIT">
     44<span class='line'> 37</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.dom.domObject.call</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">domWindow</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     45<span class='line'> 38</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
     46<span class='line'> 39</span>
     47<span class='line'> 40</span> </span><span class="NAME">CKEDITOR.dom.window.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.domObject</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
     48<span class='line'> 41</span>
     49<span class='line'> 42</span> </span><span class="NAME">CKEDITOR.tools.extend</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.window.prototype</span><span class="PUNC">,</span><span class="WHIT">
     50<span class='line'> 43</span> </span><span class="WHIT">        </span><span class="COMM">/** @lends CKEDITOR.dom.window.prototype */</span><span class="WHIT">
     51<span class='line'> 44</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT">
     52<span class='line'> 45</span> </span><span class="WHIT">                </span><span class="COMM">/**
     53<span class='line'> 46</span>            * Moves the selection focus to this window.
     54<span class='line'> 47</span>            * @example
     55<span class='line'> 48</span>            * var win = new CKEDITOR.dom.window( window );