Changeset 2278


Ignore:
Timestamp:
07/24/08 23:14:18 (6 years ago)
Author:
fredck
Message:

Introduced the basic structure for the toolbar system.

Location:
CKEditor/branches/prototype
Files:
12 added
57 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/prototype/_dev/packager/fckpackager.php

    r2272 r2278  
    356356                // "}" or ")". 
    357357                $script = preg_replace( 
    358                         '/\s*}\s*[\n\r]+\s*(?!\s*(else|catch|finally|while|[}\),;]))/s', 
     358                        '/\s*}\s*[\n\r]+\s*(?!\s*(else|catch|finally|while|[}\),;:]))/s', 
    359359                        '};', $script ) ; 
    360360 
  • CKEditor/branches/prototype/_docs/api/files.html

    r2261 r2278  
    193193        <li><a href="symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    194194 
     195 
     196 
    195197        <li><a href="symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    196198 
     
    240242 
    241243        <li><a href="symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     244 
     245 
     246 
     247 
     248 
     249 
    242250 
    243251 
     
    260268 
    261269                <li> 
     270                        <a href="symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     271                </li> 
     272 
     273                <li> 
    262274 
    263275                </li> 
     
    353365                <li> 
    354366 
     367                </li> 
     368 
     369                <li> 
     370                        <a href="symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     371                </li> 
     372 
     373                <li> 
     374                        <a href="symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     375                </li> 
     376 
     377                <li> 
     378                        <a href="symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    355379                </li> 
    356380 
     
    478502 
    479503                        <div> 
     504                                <h2 style="float:left"><a href="symbols/src/_source_core__commandDefinition.js.html">core/commandDefinition.js</a></h2> 
     505 
     506 
     507                                        <div style="float:right"> 
     508                                                <span class="heading">Version:</span> 
     509                                                        3.0 
     510                                        </div> 
     511 
     512                                <div style="clear:both"></div> 
     513 
     514 
     515Defines the "virtual" <a href="symbols/CKEDITOR.commandDefinition.html#constructor">CKEDITOR.commandDefinition</a> class, 
     516                which contains the defintion of a command. 
     517                                <dl> 
     518 
     519 
     520 
     521                                </dl> 
     522                        </div> 
     523                        <hr /> 
     524 
     525                        <div> 
    480526                                <h2 style="float:left"><a href="symbols/src/_source_core__config.js.html">core/config.js</a></h2> 
    481527 
     
    9621008 
    9631009                        <div> 
     1010                                <h2 style="float:left"><a href="symbols/src/_source_core__ui.js.html">../../_source/core/\ui.js</a></h2> 
     1011 
     1012 
     1013                                        <div style="float:right"> 
     1014                                                <span class="heading">Version:</span> 
     1015                                                        3.0 
     1016                                        </div> 
     1017 
     1018                                <div style="clear:both"></div> 
     1019 
     1020 
     1021                                <dl> 
     1022 
     1023 
     1024 
     1025                                </dl> 
     1026                        </div> 
     1027                        <hr /> 
     1028 
     1029                        <div> 
    9641030                                <h2 style="float:left"><a href="symbols/src/_source_core__xml.js.html">core/xml.js</a></h2> 
    9651031 
     
    9851051                        <div> 
    9861052                                <h2 style="float:left"><a href="symbols/src/_source_plugins__basicstyles_plugin.js.html">../../_source/plugins/\basicstyles\plugin.js</a></h2> 
     1053 
     1054 
     1055                                        <div style="float:right"> 
     1056                                                <span class="heading">Version:</span> 
     1057                                                        3.0 
     1058                                        </div> 
     1059 
     1060                                <div style="clear:both"></div> 
     1061 
     1062 
     1063                                <dl> 
     1064 
     1065 
     1066 
     1067                                </dl> 
     1068                        </div> 
     1069                        <hr /> 
     1070 
     1071                        <div> 
     1072                                <h2 style="float:left"><a href="symbols/src/_source_plugins__button_plugin.js.html">../../_source/plugins/\button\plugin.js</a></h2> 
    9871073 
    9881074 
  • CKEditor/branches/prototype/_docs/api/index.html

    r2261 r2278  
    193193        <li><a href="symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    194194 
     195 
     196 
    195197        <li><a href="symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    196198 
     
    240242 
    241243        <li><a href="symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     244 
     245 
     246 
     247 
     248 
     249 
    242250 
    243251 
     
    260268 
    261269                <li> 
     270                        <a href="symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     271                </li> 
     272 
     273                <li> 
    262274 
    263275                </li> 
     
    353365                <li> 
    354366 
     367                </li> 
     368 
     369                <li> 
     370                        <a href="symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     371                </li> 
     372 
     373                <li> 
     374                        <a href="symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     375                </li> 
     376 
     377                <li> 
     378                        <a href="symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    355379                </li> 
    356380 
     
    391415 
    392416 
     417 
     418 
    393419                        <div> 
    394420                                <h2><a href="symbols/CKEDITOR.config.html#constructor">CKEDITOR.config</a></h2> 
     
    513539 
    514540 
     541 
     542 
     543 
     544 
     545 
     546 
    515547                        <h1 class="classTitle">Class Index</h1> 
    516548 
     
    523555 
    524556 
     557                        <div> 
     558                                <h2><a href="symbols/CKEDITOR.commandDefinition.html#constructor">CKEDITOR.commandDefinition</a></h2> 
     559 
     560                        </div> 
     561                        <hr /> 
     562 
     563 
     564 
    525565 
    526566 
     
    640680 
    641681 
     682 
     683 
     684 
     685                        <div> 
     686                                <h2><a href="symbols/CKEDITOR.ui.html#constructor">CKEDITOR.ui</a></h2> 
     687 
     688                        </div> 
     689                        <hr /> 
     690 
     691 
     692 
     693                        <div> 
     694                                <h2><a href="symbols/CKEDITOR.ui.button.html#constructor">CKEDITOR.ui.button</a></h2> 
     695 
     696                        </div> 
     697                        <hr /> 
     698 
     699 
     700 
     701                        <div> 
     702                                <h2><a href="symbols/CKEDITOR.ui.handlerDefinition.html#constructor">CKEDITOR.ui.handlerDefinition</a></h2> 
     703 
     704                        </div> 
     705                        <hr /> 
    642706 
    643707 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.ajax.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.config.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
     
    601625                                                        <td class="nameDescription"> 
    602626                                                                <div class="fixedFont"> 
     627                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.toolbar">toolbar</a></b> 
     628                                                                </div> 
     629                                                                <div class="description">The toolbox (alias toolbar) definition.</div> 
     630                                                        </td> 
     631                                                </tr> 
     632 
     633                                                <tr> 
     634                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     635                                                        <td class="nameDescription"> 
     636                                                                <div class="fixedFont"> 
    603637                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.toolbarLocation">toolbarLocation</a></b> 
    604638                                                                </div> 
     
    14151449                                        <hr /> 
    14161450 
     1451                                        <a name=".toolbar"> </a> 
     1452                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     1453 
     1454                                        <span class="light">{Array}</span> 
     1455                                        <span class="light">CKEDITOR.config.</span><b>toolbar</b> 
     1456 
     1457                                        </div> 
     1458 
     1459 
     1460                                                <div style="float:right"> 
     1461                                                        <span class="heading">Since:</span> 
     1462                                                                3.0 
     1463                                                </div> 
     1464 
     1465                                        <div style="clear:both"></div> 
     1466 
     1467                                        <div class="description"> 
     1468                                                The toolbox (alias toolbar) definition. It is an array of toolbars (strips), 
     1469each one being also an array, containing a list of UI items. 
     1470 
     1471                                                        <br /> 
     1472                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__toolbar_plugin.js.html">plugins/toolbar/plugin.js</a>. 
     1473 
     1474 
     1475                                        </div> 
     1476 
     1477 
     1478 
     1479 
     1480                                        <pre class="code">// Defines a toolbar with only one strip containing the "Source" button, a 
     1481// separator and the "Bold" and "Italic" buttons. 
     1482<b>CKEDITOR.config.toolbar = 
     1483[ 
     1484    [ 'Source', '-', 'Bold', 'Italic' ] 
     1485]</b>;</pre> 
     1486 
     1487 
     1488 
     1489 
     1490 
     1491 
     1492 
     1493 
     1494                                        <hr /> 
     1495 
    14171496                                        <a name=".toolbarLocation"> </a> 
    14181497                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.document.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.domObject.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.element.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
     
    688712                                                </tr> 
    689713 
     714                                                <tr> 
     715                                                        <td class="attributes">&nbsp;</td> 
     716                                                        <td class="nameDescription"> 
     717                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#unselectable">unselectable</a></b>() 
     718                                                                </div> 
     719                                                                <div class="description">Makes the element unselectable.</div> 
     720                                                        </td> 
     721                                                </tr> 
     722 
    690723                                        </tbody> 
    691724                                </table> 
     
    21612194 
    21622195 
     2196                                        <hr /> 
     2197 
     2198                                        <a name="unselectable"> </a> 
     2199                                        <div class="fixedFont" style="float:left"> 
     2200 
     2201                                        <span class="light">{Undefined}</span> 
     2202                                        <b>unselectable</b>() 
     2203 
     2204                                        </div> 
     2205 
     2206 
     2207                                                <div style="float:right"> 
     2208                                                        <span class="heading">Since:</span> 
     2209                                                                3.0 
     2210                                                </div> 
     2211 
     2212                                        <div style="clear:both"></div> 
     2213 
     2214 
     2215                                        <div class="description"> 
     2216                                                Makes the element unselectable. 
     2217 
     2218 
     2219                                        </div> 
     2220 
     2221 
     2222 
     2223 
     2224                                        <pre class="code">var element = CKEDITOR.dom.element.getById( 'myElement' ); 
     2225element.unselectable();</pre> 
     2226 
     2227 
     2228 
     2229 
     2230 
     2231 
     2232 
     2233 
     2234 
     2235 
     2236 
    21632237 
    21642238 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.event.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.node.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.selection.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.text.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.window.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.editor.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
     
    467491                                                </tr> 
    468492 
     493                                                <tr> 
     494                                                        <td class="attributes">&nbsp;</td> 
     495                                                        <td class="nameDescription"> 
     496                                                                <div class="fixedFont"> 
     497                                                                <b><a href="../symbols/CKEDITOR.editor.html#ui">ui</a></b> 
     498                                                                </div> 
     499                                                                <div class="description">Namespace containing UI features related to this editor instance.</div> 
     500                                                        </td> 
     501                                                </tr> 
     502 
    469503                                        </tbody> 
    470504                                </table> 
     
    497531                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.editor.html#addCommand">addCommand</a></b>(commandName, commandDefinition) 
    498532                                                                </div> 
    499                                                                 <div class="description"><span style="color:red">NO DOCUMENTATION AVAILABLE</span></div> 
     533                                                                <div class="description">Adds a command definition to the editor instance.</div> 
    500534                                                        </td> 
    501535                                                </tr> 
     
    515549                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.editor.html#execCommand">execCommand</a></b>(commandName, data) 
    516550                                                                </div> 
    517                                                                 <div class="description"><span style="color:red">NO DOCUMENTATION AVAILABLE</span></div> 
     551                                                                <div class="description">Executes a command.</div> 
    518552                                                        </td> 
    519553                                                </tr> 
     
    525559                                                                </div> 
    526560                                                                <div class="description">Moves the selection focus to the editing are space in the editor.</div> 
    527                                                         </td> 
    528                                                 </tr> 
    529  
    530                                                 <tr> 
    531                                                         <td class="attributes">&nbsp;</td> 
    532                                                         <td class="nameDescription"> 
    533                                                                 <div class="fixedFont"><b><a href="../symbols/CKEDITOR.editor.html#getCommand">getCommand</a></b>(commandName) 
    534                                                                 </div> 
    535                                                                 <div class="description"><span style="color:red">NO DOCUMENTATION AVAILABLE</span></div> 
    536561                                                        </td> 
    537562                                                </tr> 
     
    813838 
    814839 
    815  
    816  
    817  
    818  
    819 <!-- ============================== method details ========================= --> 
    820  
    821                                 <div class="sectionTitle"> 
    822                                         Method Detail 
    823                                 </div> 
    824  
    825                                         <a name="addCommand"> </a> 
     840                                        <hr /> 
     841 
     842                                        <a name="ui"> </a> 
    826843                                        <div class="fixedFont" style="float:left"> 
    827844 
    828                                         <span class="light">{Undefined}</span> 
    829                                         <b>addCommand</b>(commandName, commandDefinition) 
     845                                        <span class="light">{<a href="../symbols/CKEDITOR.ui.html#constructor">CKEDITOR.ui</a>}</span> 
     846                                        <b>ui</b> 
    830847 
    831848                                        </div> 
     
    839856                                        <div style="clear:both"></div> 
    840857 
    841  
    842858                                        <div class="description"> 
    843                                                 <span style="color:red">NO DOCUMENTATION AVAILABLE</span> 
    844  
    845  
    846                                         </div> 
    847  
    848  
    849  
    850  
    851                                         <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre> 
    852  
    853  
    854  
    855  
    856  
    857                                                         <dl class="detailList"> 
    858                                                         <dt class="heading">Parameters:</dt> 
    859  
    860                                                                 <dt> 
    861                                                                         <b>commandName</b> 
    862  
    863                                                                 </dt> 
    864                                                                 <dd></dd> 
    865  
    866                                                                 <dt> 
    867                                                                         <b>commandDefinition</b> 
    868  
    869                                                                 </dt> 
    870                                                                 <dd></dd> 
    871  
    872                                                         </dl> 
    873  
    874  
    875  
    876  
    877  
    878  
    879  
    880                                         <hr /> 
    881  
    882                                         <a name="addMode"> </a> 
     859                                                Namespace containing UI features related to this editor instance. 
     860 
     861 
     862                                        </div> 
     863 
     864 
     865 
     866 
     867 
     868 
     869 
     870 
     871 
     872 
     873 
     874 
     875 
     876 
     877 
     878<!-- ============================== method details ========================= --> 
     879 
     880                                <div class="sectionTitle"> 
     881                                        Method Detail 
     882                                </div> 
     883 
     884                                        <a name="addCommand"> </a> 
    883885                                        <div class="fixedFont" style="float:left"> 
    884886 
    885887                                        <span class="light">{Undefined}</span> 
    886                                         <b>addMode</b>(mode, modeEditor) 
     888                                        <b>addCommand</b>(commandName, commandDefinition) 
    887889 
    888890                                        </div> 
     
    898900 
    899901                                        <div class="description"> 
    900                                                 Registers an editing mode. This function is to be used mainly by plugins. 
    901  
    902                                                         <br /> 
    903                                                         <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>. 
    904  
    905  
    906                                         </div> 
    907  
    908  
    909  
     902                                                Adds a command definition to the editor instance. Commands added with 
     903this function can be later executed with <a href="#execCommand">#execCommand</a>. 
     904 
     905 
     906                                        </div> 
     907 
     908 
     909 
     910 
     911                                        <pre class="code">editorInstance.addCommand( 'sample', 
     912{ 
     913    exec : function( editor ) 
     914    { 
     915        alert( 'Executing a command for the editor name "' + editor.name + '"!' ); 
     916    } 
     917});</pre> 
    910918 
    911919 
     
    917925 
    918926                                                                <dt> 
    919                                                                         <span class="light fixedFont">{String}</span> <b>mode</b> 
     927                                                                        <span class="light fixedFont">{String}</span> <b>commandName</b> 
    920928 
    921929                                                                </dt> 
    922                                                                 <dd>The mode name.</dd> 
     930                                                                <dd>The indentifier name of the command.</dd> 
    923931 
    924932                                                                <dt> 
    925                                                                         <span class="light fixedFont">{Object}</span> <b>modeEditor</b> 
     933                                                                        <span class="light fixedFont">{<a href="../symbols/CKEDITOR.commandDefinition.html#constructor">CKEDITOR.commandDefinition</a>}</span> <b>commandDefinition</b> 
    926934 
    927935                                                                </dt> 
    928                                                                 <dd>The mode editor definition.</dd> 
     936                                                                <dd>The command definition.</dd> 
    929937 
    930938                                                        </dl> 
     
    938946                                        <hr /> 
    939947 
    940                                         <a name="execCommand"> </a> 
     948                                        <a name="addMode"> </a> 
    941949                                        <div class="fixedFont" style="float:left"> 
    942950 
    943951                                        <span class="light">{Undefined}</span> 
    944                                         <b>execCommand</b>(commandName, data) 
     952                                        <b>addMode</b>(mode, modeEditor) 
    945953 
    946954                                        </div> 
     
    956964 
    957965                                        <div class="description"> 
    958                                                 <span style="color:red">NO DOCUMENTATION AVAILABLE</span> 
    959  
    960  
    961                                         </div> 
    962  
    963  
    964  
    965  
    966                                         <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre> 
     966                                                Registers an editing mode. This function is to be used mainly by plugins. 
     967 
     968                                                        <br /> 
     969                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>. 
     970 
     971 
     972                                        </div> 
     973 
     974 
     975 
    967976 
    968977 
     
    974983 
    975984                                                                <dt> 
    976                                                                         <b>commandName</b> 
     985                                                                        <span class="light fixedFont">{String}</span> <b>mode</b> 
    977986 
    978987                                                                </dt> 
    979                                                                 <dd></dd> 
     988                                                                <dd>The mode name.</dd> 
    980989 
    981990                                                                <dt> 
    982                                                                         <b>data</b> 
     991                                                                        <span class="light fixedFont">{Object}</span> <b>modeEditor</b> 
    983992 
    984993                                                                </dt> 
    985                                                                 <dd></dd> 
     994                                                                <dd>The mode editor definition.</dd> 
    986995 
    987996                                                        </dl> 
     
    9951004                                        <hr /> 
    9961005 
    997                                         <a name="focus"> </a> 
     1006                                        <a name="execCommand"> </a> 
    9981007                                        <div class="fixedFont" style="float:left"> 
    9991008 
    10001009                                        <span class="light">{Undefined}</span> 
    1001                                         <b>focus</b>() 
     1010                                        <b>execCommand</b>(commandName, data) 
    10021011 
    10031012                                        </div> 
     
    10131022 
    10141023                                        <div class="description"> 
    1015                                                 Moves the selection focus to the editing are space in the editor. 
    1016  
    1017                                                         <br /> 
    1018                                                         <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>. 
    1019  
    1020  
    1021                                         </div> 
    1022  
    1023  
    1024  
    1025  
    1026                                         <pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre> 
    1027  
    1028  
    1029  
    1030  
     1024                                                Executes a command. 
     1025 
     1026 
     1027                                        </div> 
     1028 
     1029 
     1030 
     1031 
     1032                                        <pre class="code">editorInstance.execCommand( 'Bold' );</pre> 
     1033 
     1034 
     1035 
     1036 
     1037 
     1038                                                        <dl class="detailList"> 
     1039                                                        <dt class="heading">Parameters:</dt> 
     1040 
     1041                                                                <dt> 
     1042                                                                        <span class="light fixedFont">{String}</span> <b>commandName</b> 
     1043 
     1044                                                                </dt> 
     1045                                                                <dd>The indentifier name of the command.</dd> 
     1046 
     1047                                                                <dt> 
     1048                                                                        <span class="light fixedFont">{Object}</span> <b>data</b> 
     1049                                                                        <i>Optional</i> 
     1050                                                                </dt> 
     1051                                                                <dd>Data to be passed to the command</dd> 
     1052 
     1053                                                        </dl> 
    10311054 
    10321055 
     
    10381061                                        <hr /> 
    10391062 
    1040                                         <a name="getCommand"> </a> 
     1063                                        <a name="focus"> </a> 
    10411064                                        <div class="fixedFont" style="float:left"> 
    10421065 
    10431066                                        <span class="light">{Undefined}</span> 
    1044                                         <b>getCommand</b>(commandName) 
     1067                                        <b>focus</b>() 
    10451068 
    10461069                                        </div> 
     
    10561079 
    10571080                                        <div class="description"> 
    1058                                                 <span style="color:red">NO DOCUMENTATION AVAILABLE</span> 
     1081                                                Moves the selection focus to the editing are space in the editor. 
     1082 
     1083                                                        <br /> 
     1084                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__editingblock_plugin.js.html">plugins/editingblock/plugin.js</a>. 
    10591085 
    10601086 
     
    10691095 
    10701096 
    1071  
    1072                                                         <dl class="detailList"> 
    1073                                                         <dt class="heading">Parameters:</dt> 
    1074  
    1075                                                                 <dt> 
    1076                                                                         <b>commandName</b> 
    1077  
    1078                                                                 </dt> 
    1079                                                                 <dd></dd> 
    1080  
    1081                                                         </dl> 
    10821097 
    10831098 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.env.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.event.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.eventInfo.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
     
    457481 
    458482                                                <tr> 
     483                                                        <td class="attributes">&lt;static&gt; &lt;constant&gt; &nbsp;</td> 
     484                                                        <td class="nameDescription"> 
     485                                                                <div class="fixedFont"> 
     486                                                                CKEDITOR.<b><a href="../symbols/CKEDITOR.html#.UI_BUTTON">UI_BUTTON</a></b> 
     487                                                                </div> 
     488                                                                <div class="description">Button UI element.</div> 
     489                                                        </td> 
     490                                                </tr> 
     491 
     492                                                <tr> 
    459493                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
    460494                                                        <td class="nameDescription"> 
     
    760794                                        <pre class="code">if ( editor.getSelection().getType() == CKEDITOR.SELECTION_TEXT ) 
    761795    alert( 'Text is selected' );</pre> 
     796 
     797 
     798 
     799 
     800 
     801 
     802 
     803 
     804                                        <hr /> 
     805 
     806                                        <a name=".UI_BUTTON"> </a> 
     807                                        <div class="fixedFont" style="float:left">&lt;static&gt; &lt;constant&gt; 
     808 
     809                                        <span class="light">{Undefined}</span> 
     810                                        <span class="light">CKEDITOR.</span><b>UI_BUTTON</b> 
     811 
     812                                        </div> 
     813 
     814 
     815                                                <div style="float:right"> 
     816                                                        <span class="heading">Since:</span> 
     817                                                                3.0 
     818                                                </div> 
     819 
     820                                        <div style="clear:both"></div> 
     821 
     822                                        <div class="description"> 
     823                                                Button UI element. 
     824 
     825                                                        <br /> 
     826                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__button_plugin.js.html">plugins/button/plugin.js</a>. 
     827 
     828 
     829                                        </div> 
     830 
     831 
     832 
    762833 
    763834 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.lang.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.loader.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.pluginDefinition.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
     
    404428                                                                <b><a href="../symbols/CKEDITOR.pluginDefinition.html#constructor">CKEDITOR.pluginDefinition</a></b>() 
    405429                                                        </div> 
    406                                                         <div class="description">This class is not really part of the API.</div> 
     430                                                        <div class="description">(Virtual Class) Do not call this constructor.</div> 
    407431                                                </td> 
    408432                                        </tr> 
     
    431455                                                        <td class="attributes">&nbsp;</td> 
    432456                                                        <td class="nameDescription"> 
     457                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.pluginDefinition.html#beforeInit">beforeInit</a></b>(editor, pluginPath) 
     458                                                                </div> 
     459                                                                <div class="description">Function called on initialization of every editor instance created in the 
     460page before the init() call task.</div> 
     461                                                        </td> 
     462                                                </tr> 
     463 
     464                                                <tr> 
     465                                                        <td class="attributes">&nbsp;</td> 
     466                                                        <td class="nameDescription"> 
    433467                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.pluginDefinition.html#init">init</a></b>(editor, pluginPath) 
    434468                                                                </div> 
     
    465499 
    466500                                <div class="description"> 
    467                                         This class is not really part of the API. It just illustrates the features 
    468                 of plugin objects to passed to the CKEDITOR.plugins.add function. 
     501                                        (Virtual Class) Do not call this constructor. This class is not really part 
     502                of the API. It just illustrates the features of plugin objects to be 
     503                passed to the CKEDITOR.plugins.add function. 
    469504 
    470505                                </div> 
     
    472507 
    473508 
    474  
    475                                 <pre class="code">// Do not do this. 
    476 var myEvent = new CKEDITOR.pluginDefinition();  // Error: CKEDITOR.pluginDefinition is undefined</pre> 
    477509 
    478510 
     
    498530                                        Method Detail 
    499531                                </div> 
     532 
     533                                        <a name="beforeInit"> </a> 
     534                                        <div class="fixedFont" style="float:left"> 
     535 
     536                                        <span class="light">{Undefined}</span> 
     537                                        <b>beforeInit</b>(editor, pluginPath) 
     538 
     539                                        </div> 
     540 
     541 
     542                                                <div style="float:right"> 
     543                                                        <span class="heading">Since:</span> 
     544                                                                3.0 
     545                                                </div> 
     546 
     547                                        <div style="clear:both"></div> 
     548 
     549 
     550                                        <div class="description"> 
     551                                                Function called on initialization of every editor instance created in the 
     552page before the init() call task. The beforeInit function will be called for 
     553all plugins, after that the init function is called for all of them. This 
     554feature makes it possible to initialize things that could be used in the 
     555init function of other plugins. 
     556 
     557 
     558                                        </div> 
     559 
     560 
     561 
     562 
     563                                        <pre class="code">CKEDITOR.plugins.add( 'sample', 
     564{ 
     565    beforeInit : function( editor, pluginPath ) 
     566    { 
     567        alert( 'Editor "' + editor.name + '" is to be initialized!' ); 
     568    } 
     569});</pre> 
     570 
     571 
     572 
     573 
     574 
     575                                                        <dl class="detailList"> 
     576                                                        <dt class="heading">Parameters:</dt> 
     577 
     578                                                                <dt> 
     579                                                                        <span class="light fixedFont">{<a href="../symbols/CKEDITOR.editor.html#constructor">CKEDITOR.editor</a>}</span> <b>editor</b> 
     580 
     581                                                                </dt> 
     582                                                                <dd>The editor instance being initialized.</dd> 
     583 
     584                                                                <dt> 
     585                                                                        <span class="light fixedFont">{String}</span> <b>pluginPath</b> 
     586 
     587                                                                </dt> 
     588                                                                <dd>The URL path for the plugin installation folder.</dd> 
     589 
     590                                                        </dl> 
     591 
     592 
     593 
     594 
     595 
     596 
     597 
     598                                        <hr /> 
    500599 
    501600                                        <a name="init"> </a> 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.plugins.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
     
    418442 
    419443 
     444                                <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class CKEDITOR.plugins."> 
     445                                        <caption>Field Summary</caption> 
     446                                        <thead> 
     447                                                <tr> 
     448                                                        <th scope="col">Field Attributes</th> 
     449                                                        <th scope="col">Field Name and Description</th> 
     450                                                </tr> 
     451                                        </thead> 
     452                                        <tbody> 
     453 
     454                                                <tr> 
     455                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     456                                                        <td class="nameDescription"> 
     457                                                                <div class="fixedFont"> 
     458                                                                CKEDITOR.plugins.<b><a href="../symbols/CKEDITOR.plugins.html#.sourcearea">sourcearea</a></b> 
     459                                                                </div> 
     460                                                                <div class="description">Holds the definition of commands an UI elements included with the sourcearea 
     461plugin.</div> 
     462                                                        </td> 
     463                                                </tr> 
     464 
     465                                        </tbody> 
     466                                </table> 
     467 
    420468 
    421469 
     
    481529<!-- ============================== field details ========================== --> 
    482530 
     531                                <div class="sectionTitle"> 
     532                                        Field Detail 
     533                                </div> 
     534 
     535                                        <a name=".sourcearea"> </a> 
     536                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     537 
     538                                        <span class="light">{Undefined}</span> 
     539                                        <span class="light">CKEDITOR.plugins.</span><b>sourcearea</b> 
     540 
     541                                        </div> 
     542 
     543 
     544                                                <div style="float:right"> 
     545                                                        <span class="heading">Since:</span> 
     546                                                                3.0 
     547                                                </div> 
     548 
     549                                        <div style="clear:both"></div> 
     550 
     551                                        <div class="description"> 
     552                                                Holds the definition of commands an UI elements included with the sourcearea 
     553plugin. 
     554 
     555                                                        <br /> 
     556                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__sourcearea_plugin.js.html">plugins/sourcearea/plugin.js</a>. 
     557 
     558 
     559                                        </div> 
     560 
     561 
     562 
     563 
     564 
     565 
     566 
     567 
     568 
     569 
     570 
     571 
     572 
     573 
    483574 
    484575<!-- ============================== method details ========================= --> 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.resourceManager.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.scriptLoader.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.skins.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.test.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.themes.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.tools.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.xml.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/_global_.html

    r2261 r2278  
    198198        <li><a href="../symbols/CKEDITOR.ajax.html">CKEDITOR.ajax</a></li> 
    199199 
     200 
     201 
    200202        <li><a href="../symbols/CKEDITOR.config.html">CKEDITOR.config</a></li> 
    201203 
     
    245247 
    246248        <li><a href="../symbols/CKEDITOR.tools.html">CKEDITOR.tools</a></li> 
     249 
     250 
     251 
     252 
     253 
     254 
    247255 
    248256 
     
    265273 
    266274                <li> 
     275                        <a href="../symbols/CKEDITOR.commandDefinition.html">CKEDITOR.commandDefinition</a> 
     276                </li> 
     277 
     278                <li> 
    267279 
    268280                </li> 
     
    358370                <li> 
    359371 
     372                </li> 
     373 
     374                <li> 
     375                        <a href="../symbols/CKEDITOR.ui.html">CKEDITOR.ui</a> 
     376                </li> 
     377 
     378                <li> 
     379                        <a href="../symbols/CKEDITOR.ui.button.html">CKEDITOR.ui.button</a> 
     380                </li> 
     381 
     382                <li> 
     383                        <a href="../symbols/CKEDITOR.ui.handlerDefinition.html">CKEDITOR.ui.handlerDefinition</a> 
    360384                </li> 
    361385 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__config.js.html

    r2261 r2278  
    143143<span class='line'>136</span>    * config.plugins = 'editingblock,toolbar,wysiwygarea'; 
    144144<span class='line'>137</span>    */</span><span class="WHIT"> 
    145 <span class='line'>138</span> </span><span class="WHIT">        </span><span class="NAME">plugins</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'basicstyles,editingblock,elementspath,htmldataprocessor,selection,sourcearea,toolbar,wysiwygarea'</span><span class="PUNC">,</span><span class="WHIT"> 
     145<span class='line'>138</span> </span><span class="WHIT">        </span><span class="NAME">plugins</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'basicstyles,button,editingblock,elementspath,htmldataprocessor,selection,sourcearea,toolbar,wysiwygarea'</span><span class="PUNC">,</span><span class="WHIT"> 
    146146<span class='line'>139</span> 
    147147<span class='line'>140</span> </span><span class="WHIT">        </span><span class="COMM">/** 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_element.js.html

    r2214 r2278  
    501501<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"> 
    502502<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> 
     503<span class='line'>496</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     504<span class='line'>497</span> 
     505<span class='line'>498</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     506<span class='line'>499</span>            * Makes the element unselectable. 
     507<span class='line'>500</span>            * @function 
     508<span class='line'>501</span>            * @example 
     509<span class='line'>502</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' ); 
     510<span class='line'>503</span>            * element.unselectable(); 
     511<span class='line'>504</span>            */</span><span class="WHIT"> 
     512<span class='line'>505</span> </span><span class="WHIT">                </span><span class="NAME">unselectable</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     513<span class='line'>506</span> </span><span class="WHIT">                        </span><span class="NAME">CKEDITOR.env.gecko</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> 
     514<span class='line'>507</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
     515<span class='line'>508</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT"> 
     516<span class='line'>509</span> </span><span class="WHIT">                                        </span><span class="NAME">this.$.style.MozUserSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'none'</span><span class="PUNC">;</span><span class="WHIT"> 
     517<span class='line'>510</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> 
     518<span class='line'>511</span> </span><span class="WHIT">                        </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.webkit</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> 
     519<span class='line'>512</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
     520<span class='line'>513</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT"> 
     521<span class='line'>514</span> </span><span class="WHIT">                                        </span><span class="NAME">this.$.style.KhtmlUserSelect</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'none'</span><span class="PUNC">;</span><span class="WHIT"> 
     522<span class='line'>515</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> 
     523<span class='line'>516</span> </span><span class="WHIT">                        </span><span class="PUNC">:</span><span class="WHIT"> 
     524<span class='line'>517</span> </span><span class="WHIT">                                </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
     525<span class='line'>518</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT"> 
     526<span class='line'>519</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"> </span><span class="NAME">CKEDITOR.env.opera</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     527<span class='line'>520</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
     528<span class='line'>521</span> </span><span class="WHIT">                                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">element</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="PUNC">,</span><span class="WHIT"> 
     529<span class='line'>522</span> </span><span class="WHIT">                                                        </span><span class="NAME">e</span><span class="PUNC">,</span><span class="WHIT"> 
     530<span class='line'>523</span> </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="PUNC">;</span><span class="WHIT"> 
     531<span class='line'>524</span> 
     532<span class='line'>525</span> </span><span class="WHIT">                                                </span><span class="NAME">element.unselectable</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'on'</span><span class="PUNC">;</span><span class="WHIT"> 
     533<span class='line'>526</span> 
     534<span class='line'>527</span> </span><span class="WHIT">                                                </span><span class="KEYW">while</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">e</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">element.all</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"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     535<span class='line'>528</span> </span><span class="WHIT">                                                </span><span class="PUNC">{</span><span class="WHIT"> 
     536<span class='line'>529</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">e.tagName.toLowerCase</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     537<span class='line'>530</span> </span><span class="WHIT">                                                        </span><span class="PUNC">{</span><span class="WHIT"> 
     538<span class='line'>531</span> </span><span class="WHIT">                                                                </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'iframe'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     539<span class='line'>532</span> </span><span class="WHIT">                                                                </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'textarea'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     540<span class='line'>533</span> </span><span class="WHIT">                                                                </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'input'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     541<span class='line'>534</span> </span><span class="WHIT">                                                                </span><span class="KEYW">case</span><span class="WHIT"> </span><span class="STRN">'select'</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     542<span class='line'>535</span> </span><span class="WHIT">                                                                        </span><span class="COMM">/* Ignore the above tags */</span><span class="WHIT"> 
     543<span class='line'>536</span> </span><span class="WHIT">                                                                        </span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT"> 
     544<span class='line'>537</span> </span><span class="WHIT">                                                                </span><span class="KEYW">default</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     545<span class='line'>538</span> </span><span class="WHIT">                                                                        </span><span class="NAME">e.unselectable</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'on'</span><span class="PUNC">;</span><span class="WHIT"> 
     546<span class='line'>539</span> </span><span class="WHIT">                                                        </span><span class="PUNC">}</span><span class="WHIT"> 
     547<span class='line'>540</span> </span><span class="WHIT">                                                </span><span class="PUNC">}</span><span class="WHIT"> 
     548<span class='line'>541</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="WHIT"> 
     549<span class='line'>542</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> 
     550<span class='line'>543</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     551<span class='line'>544</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__editor.js.html

    r2262 r2278  
    155155<span class='line'>148</span> </span><span class="WHIT">                                </span><span class="NAME">editor.plugins</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">plugins</span><span class="PUNC">;</span><span class="WHIT"> 
    156156<span class='line'>149</span> 
    157 <span class='line'>150</span> </span><span class="WHIT">                                </span><span class="COMM">// Initialize all plugins that have the "init" method defined.</span><span class="WHIT"> 
    158 <span class='line'>151</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">plugins.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"> 
    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="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pluginName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">plugins</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT"> 
    161 <span class='line'>154</span> </span><span class="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">plugin</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.plugins.get</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">pluginName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    162 <span class='line'>155</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">plugin</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">plugin.init</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    163 <span class='line'>156</span> </span><span class="WHIT">                                                </span><span class="NAME">plugin.init</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.plugins.getPath</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">pluginName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</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> 
    166 <span class='line'>159</span> </span><span class="WHIT">                                </span><span class="COMM">// Load the editor skin and theme.</span><span class="WHIT"> 
    167 <span class='line'>160</span> </span><span class="WHIT">                                </span><span class="NAME">loadSkinTheme</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    168 <span class='line'>161</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    169 <span class='line'>162</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    170 <span class='line'>163</span> 
    171 <span class='line'>164</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">loadSkinTheme</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">editor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    172 <span class='line'>165</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    173 <span class='line'>166</span> </span><span class="WHIT">                </span><span class="COMM">// Load the skin.</span><span class="WHIT"> 
    174 <span class='line'>167</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.skins.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor.config.skin</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'editor'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    175 <span class='line'>168</span> 
    176 <span class='line'>169</span> </span><span class="WHIT">                </span><span class="COMM">// Load the theme.</span><span class="WHIT"> 
    177 <span class='line'>170</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.config.theme</span><span class="PUNC">;</span><span class="WHIT"> 
    178 <span class='line'>171</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.themes.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theme</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"> 
    179 <span class='line'>172</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    180 <span class='line'>173</span> </span><span class="WHIT">                                </span><span class="NAME">CKEDITOR.themes.get</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">build</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.themes.getPath</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    181 <span class='line'>174</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    182 <span class='line'>175</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    183 <span class='line'>176</span> 
    184 <span class='line'>177</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">element</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">instanceConfig</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    185 <span class='line'>178</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    186 <span class='line'>179</span> </span><span class="WHIT">                </span><span class="NAME">this._</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> 
    187 <span class='line'>180</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    188 <span class='line'>181</span> </span><span class="WHIT">                        </span><span class="NAME">commands</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </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="PUNC">;</span><span class="WHIT"> 
    190 <span class='line'>183</span> 
    191 <span class='line'>184</span> </span><span class="WHIT">                </span><span class="COMM">// Call the base constructor.</span><span class="WHIT"> 
    192 <span class='line'>185</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.event.call</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"> 
    193 <span class='line'>186</span> 
    194 <span class='line'>187</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    195 <span class='line'>188</span>            * The DOM element that has been replaced by this editor instance. This 
    196 <span class='line'>189</span>            * element holds the editor data on load and post. 
    197 <span class='line'>190</span>            * @name CKEDITOR.editor.prototype.element 
    198 <span class='line'>191</span>            * @type CKEDITOR.dom.element 
    199 <span class='line'>192</span>            * @example 
    200 <span class='line'>193</span>            * var editor = CKEDITOR.instances.editor1; 
    201 <span class='line'>194</span>            * alert( &lt;b>editor.element&lt;/b>.getName() );  "textarea" 
    202 <span class='line'>195</span>            */</span><span class="WHIT"> 
    203 <span class='line'>196</span> </span><span class="WHIT">                </span><span class="NAME">this.element</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">element</span><span class="PUNC">;</span><span class="WHIT"> 
    204 <span class='line'>197</span> 
    205 <span class='line'>198</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    206 <span class='line'>199</span>            * The editor instance name. It hay be the replaced element id, name or 
    207 <span class='line'>200</span>            * a default name using a progressive counter (editor1, editor2, ...). 
    208 <span class='line'>201</span>            * @name CKEDITOR.editor.prototype.name 
    209 <span class='line'>202</span>            * @type String 
    210 <span class='line'>203</span>            * @example 
    211 <span class='line'>204</span>            * var editor = CKEDITOR.instances.editor1; 
    212 <span class='line'>205</span>            * alert( &lt;b>editor.name&lt;/b> );  "editor1" 
    213 <span class='line'>206</span>            */</span><span class="WHIT"> 
    214 <span class='line'>207</span> </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="NAME">element.getId</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">element.getNameAtt</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">getNewName</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    215 <span class='line'>208</span> 
    216 <span class='line'>209</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    217 <span class='line'>210</span>            * The configurations for this editor instance. It inherits all 
    218 <span class='line'>211</span>            * settings defined in (@link CKEDITOR.config}, combined with settings 
    219 <span class='line'>212</span>            * loaded from custom configuration files and those defined inline in 
    220 <span class='line'>213</span>            * the page when creating the editor. 
    221 <span class='line'>214</span>            * @name CKEDITOR.editor.prototype.config 
    222 <span class='line'>215</span>            * @type Object 
    223 <span class='line'>216</span>            * @example 
    224 <span class='line'>217</span>            * var editor = CKEDITOR.instances.editor1; 
    225 <span class='line'>218</span>            * alert( &lt;b>editor.config.theme&lt;/b> );  "default" e.g. 
    226 <span class='line'>219</span>            */</span><span class="WHIT"> 
    227 <span class='line'>220</span> </span><span class="WHIT">                </span><span class="NAME">this.config</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">config</span><span class="PUNC">(</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="COMM">// Call initConfig using events, to be sure that instanceCreated is</span><span class="WHIT"> 
    230 <span class='line'>223</span> </span><span class="WHIT">                </span><span class="COMM">// fired first.</span><span class="WHIT"> 
    231 <span class='line'>224</span> </span><span class="WHIT">                </span><span class="NAME">this.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'instanceCreated'</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"> 
    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="NAME">initConfig</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">instanceConfig</span><span class="WHIT"> </span><span class="PUNC">)</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="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    235 <span class='line'>228</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    236 <span class='line'>229</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    237 <span class='line'>230</span> 
    238 <span class='line'>231</span> </span><span class="NAME">CKEDITOR.editor.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> 
    239 <span class='line'>232</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    240 <span class='line'>233</span> </span><span class="WHIT">        </span><span class="NAME">addCommand</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">commandName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">commandDefinition</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="PUNC">{</span><span class="WHIT"> 
    242 <span class='line'>235</span> </span><span class="WHIT">                </span><span class="NAME">this._.commands</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">commandDefinition</span><span class="PUNC">;</span><span class="WHIT"> 
    243 <span class='line'>236</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    244 <span class='line'>237</span> 
    245 <span class='line'>238</span> </span><span class="WHIT">        </span><span class="NAME">execCommand</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">commandName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </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">var</span><span class="WHIT"> </span><span class="NAME">command</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    248 <span class='line'>241</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">command</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    249 <span class='line'>242</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">command.exec</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">data</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="KEYW">throw</span><span class="WHIT"> </span><span class="STRN">'Unknown command name "'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'"'</span><span class="PUNC">;</span><span class="WHIT"> 
    252 <span class='line'>245</span> </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="NAME">getCommand</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">commandName</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="PUNC">{</span><span class="WHIT"> 
    256 <span class='line'>249</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this._.commands</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">commandName</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"> 
    257 <span class='line'>250</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    258 <span class='line'>251</span> 
    259 <span class='line'>252</span> </span><span class="WHIT">        </span><span class="COMM">// Both fire and fireOnce will always pass this editor instance as the</span><span class="WHIT"> 
    260 <span class='line'>253</span> </span><span class="WHIT">        </span><span class="COMM">// "editor" param in CKEDITOR.event.fire. So, we override it to do that</span><span class="WHIT"> 
    261 <span class='line'>254</span> </span><span class="WHIT">        </span><span class="COMM">// automaticaly.</span><span class="WHIT"> 
    262 <span class='line'>255</span> 
    263 <span class='line'>256</span> </span><span class="WHIT">        </span><span class="COMM">/** @ignore */</span><span class="WHIT"> 
    264 <span class='line'>257</span> </span><span class="WHIT">        </span><span class="NAME">fire</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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    265 <span class='line'>258</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    266 <span class='line'>259</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.event.prototype.fire.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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</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"> 
    267 <span class='line'>260</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    268 <span class='line'>261</span> 
    269 <span class='line'>262</span> </span><span class="WHIT">        </span><span class="COMM">/** @ignore */</span><span class="WHIT"> 
    270 <span class='line'>263</span> </span><span class="WHIT">        </span><span class="NAME">fireOnce</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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </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">CKEDITOR.event.prototype.fireOnce.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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</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"> 
    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 editor data. The data will be in raw format. It is the same 
    277 <span class='line'>270</span>    * data that is posted by the editor. 
    278 <span class='line'>271</span>    * @type String 
    279 <span class='line'>272</span>    * @returns (String) The editor data. 
    280 <span class='line'>273</span>    * @example 
    281 <span class='line'>274</span>    * if ( CKEDITOR.instances.editor1.&lt;b>getData()&lt;/b> == '' ) 
    282 <span class='line'>275</span>    *     alert( 'There is no data available' ); 
    283 <span class='line'>276</span>    */</span><span class="WHIT"> 
    284 <span class='line'>277</span> </span><span class="WHIT">        </span><span class="NAME">getData</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"> 
    285 <span class='line'>278</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    286 <span class='line'>279</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'beforeGetData'</span><span class="WHIT"> </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="COMM">// Fire "getData" so data manipulation may happen.</span><span class="WHIT"> 
    289 <span class='line'>282</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">dataValue</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this._.data</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">this.element.$.value</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    290 <span class='line'>283</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'getData'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    291 <span class='line'>284</span> 
    292 <span class='line'>285</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">eventData.dataValue</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="WHIT"> 
    294 <span class='line'>287</span> 
    295 <span class='line'>288</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    296 <span class='line'>289</span>    * Sets the editor data. The data must be provided in raw format. 
    297 <span class='line'>290</span>    * @example 
    298 <span class='line'>291</span>    * CKEDITOR.instances.editor1.&lt;b>setData( '&lt;p&gt;This is the editor data.&lt;/p&gt;' )&lt;/b>; 
    299 <span class='line'>292</span>    */</span><span class="WHIT"> 
    300 <span class='line'>293</span> </span><span class="WHIT">        </span><span class="NAME">setData</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">data</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    301 <span class='line'>294</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    302 <span class='line'>295</span> </span><span class="WHIT">                </span><span class="COMM">// Fire "setData" so data manipulation may happen.</span><span class="WHIT"> 
    303 <span class='line'>296</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">dataValue</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    304 <span class='line'>297</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'setData'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    305 <span class='line'>298</span> 
    306 <span class='line'>299</span> </span><span class="WHIT">                </span><span class="NAME">this._.data</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">eventData.dataValue</span><span class="PUNC">;</span><span class="WHIT"> 
    307 <span class='line'>300</span> 
    308 <span class='line'>301</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'afterSetData'</span><span class="WHIT"> </span><span class="PUNC">)</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>    * Updates the &lt;textarea&gt; element that has been replaced by the editor with 
    313 <span class='line'>306</span>    * the current data available in the editor. 
    314 <span class='line'>307</span>    * @example 
    315 <span class='line'>308</span>    * CKEDITOR.instances.editor1.updateElement(); 
    316 <span class='line'>309</span>    * alert( document.getElementById( 'editor1' ).value );  // The current editor data. 
    317 <span class='line'>310</span>    */</span><span class="WHIT"> 
    318 <span class='line'>311</span> </span><span class="WHIT">        </span><span class="NAME">updateElement</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"> 
    319 <span class='line'>312</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    320 <span class='line'>313</span> </span><span class="WHIT">                </span><span class="NAME">this.element.$.value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    321 <span class='line'>314</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT"> 
    322 <span class='line'>315</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    323 <span class='line'>316</span> 
    324 <span class='line'>317</span> </span><span class="COMM">// "Inherit" (copy actually) from CKEDITOR.event.</span><span class="WHIT"> 
    325 <span class='line'>318</span> </span><span class="NAME">CKEDITOR.event.implementOn</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.editor.prototype</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    326 <span class='line'>319</span> </span></pre></body></html> 
     157<span class='line'>150</span> </span><span class="WHIT">                                </span><span class="COMM">// Initialize all plugins that have the "beforeInit" and "init" methods defined.</span><span class="WHIT"> 
     158<span class='line'>151</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">methods</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'beforeInit'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'init'</span><span class="WHIT"> </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="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">m</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">m</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">methods.length</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">m</span><span class="PUNC">++</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     160<span class='line'>153</span> </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="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">plugins.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"> 
     162<span class='line'>155</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
     163<span class='line'>156</span> </span><span class="WHIT">                                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pluginName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">plugins</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT"> 
     164<span class='line'>157</span> </span><span class="WHIT">                                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">plugin</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.plugins.get</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">pluginName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     165<span class='line'>158</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">plugin</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">plugin</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">methods</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">m</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"> 
     166<span class='line'>159</span> </span><span class="WHIT">                                                        </span><span class="NAME">plugin</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">methods</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">m</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.plugins.getPath</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">pluginName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     167<span class='line'>160</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="WHIT"> 
     168<span class='line'>161</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> 
     169<span class='line'>162</span> 
     170<span class='line'>163</span> </span><span class="WHIT">                                </span><span class="COMM">// Load the editor skin and theme.</span><span class="WHIT"> 
     171<span class='line'>164</span> </span><span class="WHIT">                                </span><span class="NAME">loadSkinTheme</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     172<span class='line'>165</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     173<span class='line'>166</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     174<span class='line'>167</span> 
     175<span class='line'>168</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">loadSkinTheme</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">editor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     176<span class='line'>169</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     177<span class='line'>170</span> </span><span class="WHIT">                </span><span class="COMM">// Load the skin.</span><span class="WHIT"> 
     178<span class='line'>171</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.skins.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor.config.skin</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'editor'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     179<span class='line'>172</span> 
     180<span class='line'>173</span> </span><span class="WHIT">                </span><span class="COMM">// Load the theme.</span><span class="WHIT"> 
     181<span class='line'>174</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.config.theme</span><span class="PUNC">;</span><span class="WHIT"> 
     182<span class='line'>175</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.themes.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theme</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"> 
     183<span class='line'>176</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     184<span class='line'>177</span> </span><span class="WHIT">                                </span><span class="NAME">CKEDITOR.themes.get</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">build</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.themes.getPath</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     185<span class='line'>178</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     186<span class='line'>179</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     187<span class='line'>180</span> 
     188<span class='line'>181</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">element</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">instanceConfig</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="PUNC">{</span><span class="WHIT"> 
     190<span class='line'>183</span> </span><span class="WHIT">                </span><span class="NAME">this._</span><span class="WHIT"> </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="WHIT"> 
     192<span class='line'>185</span> </span><span class="WHIT">                        </span><span class="NAME">commands</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="WHIT"> 
     193<span class='line'>186</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     194<span class='line'>187</span> 
     195<span class='line'>188</span> </span><span class="WHIT">                </span><span class="COMM">// Call the base constructor.</span><span class="WHIT"> 
     196<span class='line'>189</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.event.call</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"> 
     197<span class='line'>190</span> 
     198<span class='line'>191</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     199<span class='line'>192</span>            * The DOM element that has been replaced by this editor instance. This 
     200<span class='line'>193</span>            * element holds the editor data on load and post. 
     201<span class='line'>194</span>            * @name CKEDITOR.editor.prototype.element 
     202<span class='line'>195</span>            * @type CKEDITOR.dom.element 
     203<span class='line'>196</span>            * @example 
     204<span class='line'>197</span>            * var editor = CKEDITOR.instances.editor1; 
     205<span class='line'>198</span>            * alert( &lt;b>editor.element&lt;/b>.getName() );  "textarea" 
     206<span class='line'>199</span>            */</span><span class="WHIT"> 
     207<span class='line'>200</span> </span><span class="WHIT">                </span><span class="NAME">this.element</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">element</span><span class="PUNC">;</span><span class="WHIT"> 
     208<span class='line'>201</span> 
     209<span class='line'>202</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     210<span class='line'>203</span>            * The editor instance name. It hay be the replaced element id, name or 
     211<span class='line'>204</span>            * a default name using a progressive counter (editor1, editor2, ...). 
     212<span class='line'>205</span>            * @name CKEDITOR.editor.prototype.name 
     213<span class='line'>206</span>            * @type String 
     214<span class='line'>207</span>            * @example 
     215<span class='line'>208</span>            * var editor = CKEDITOR.instances.editor1; 
     216<span class='line'>209</span>            * alert( &lt;b>editor.name&lt;/b> );  "editor1" 
     217<span class='line'>210</span>            */</span><span class="WHIT"> 
     218<span class='line'>211</span> </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="NAME">element.getId</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">element.getNameAtt</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">getNewName</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     219<span class='line'>212</span> 
     220<span class='line'>213</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     221<span class='line'>214</span>            * The configurations for this editor instance. It inherits all 
     222<span class='line'>215</span>            * settings defined in (@link CKEDITOR.config}, combined with settings 
     223<span class='line'>216</span>            * loaded from custom configuration files and those defined inline in 
     224<span class='line'>217</span>            * the page when creating the editor. 
     225<span class='line'>218</span>            * @name CKEDITOR.editor.prototype.config 
     226<span class='line'>219</span>            * @type Object 
     227<span class='line'>220</span>            * @example 
     228<span class='line'>221</span>            * var editor = CKEDITOR.instances.editor1; 
     229<span class='line'>222</span>            * alert( &lt;b>editor.config.theme&lt;/b> );  "default" e.g. 
     230<span class='line'>223</span>            */</span><span class="WHIT"> 
     231<span class='line'>224</span> </span><span class="WHIT">                </span><span class="NAME">this.config</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">config</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     232<span class='line'>225</span> 
     233<span class='line'>226</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     234<span class='line'>227</span>            * Namespace containing UI features related to this editor instance. 
     235<span class='line'>228</span>            * @name CKEDITOR.editor.prototype.ui 
     236<span class='line'>229</span>            * @type CKEDITOR.ui 
     237<span class='line'>230</span>            * @example 
     238<span class='line'>231</span>            */</span><span class="WHIT"> 
     239<span class='line'>232</span> </span><span class="WHIT">                </span><span class="NAME">this.ui</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.ui</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"> 
     240<span class='line'>233</span> 
     241<span class='line'>234</span> </span><span class="WHIT">                </span><span class="COMM">// Call initConfig using events, to be sure that instanceCreated is</span><span class="WHIT"> 
     242<span class='line'>235</span> </span><span class="WHIT">                </span><span class="COMM">// fired first.</span><span class="WHIT"> 
     243<span class='line'>236</span> </span><span class="WHIT">                </span><span class="NAME">this.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'instanceCreated'</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"> 
     244<span class='line'>237</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     245<span class='line'>238</span> </span><span class="WHIT">                                </span><span class="NAME">initConfig</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">instanceConfig</span><span class="WHIT"> </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="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     247<span class='line'>240</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     248<span class='line'>241</span> </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> 
     250<span class='line'>243</span> </span><span class="NAME">CKEDITOR.editor.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> 
     251<span class='line'>244</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     252<span class='line'>245</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     253<span class='line'>246</span>    * Adds a command definition to the editor instance. Commands added with 
     254<span class='line'>247</span>    * this function can be later executed with {@link #execCommand}. 
     255<span class='line'>248</span>    * @param {String} commandName The indentifier name of the command. 
     256<span class='line'>249</span>    * @param {CKEDITOR.commandDefinition} commandDefinition The command definition. 
     257<span class='line'>250</span>    * @example 
     258<span class='line'>251</span>    * editorInstance.addCommand( 'sample', 
     259<span class='line'>252</span>    * { 
     260<span class='line'>253</span>    *     exec : function( editor ) 
     261<span class='line'>254</span>    *     { 
     262<span class='line'>255</span>    *         alert( 'Executing a command for the editor name "' + editor.name + '"!' ); 
     263<span class='line'>256</span>    *     } 
     264<span class='line'>257</span>    * }); 
     265<span class='line'>258</span>    */</span><span class="WHIT"> 
     266<span class='line'>259</span> </span><span class="WHIT">        </span><span class="NAME">addCommand</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">commandName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">commandDefinition</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     267<span class='line'>260</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     268<span class='line'>261</span> </span><span class="WHIT">                </span><span class="NAME">this._.commands</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">commandDefinition</span><span class="PUNC">;</span><span class="WHIT"> 
     269<span class='line'>262</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     270<span class='line'>263</span> 
     271<span class='line'>264</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     272<span class='line'>265</span>    * Executes a command. 
     273<span class='line'>266</span>    * @param {String} commandName The indentifier name of the command. 
     274<span class='line'>267</span>    * @param {Object} [data] Data to be passed to the command 
     275<span class='line'>268</span>    * @example 
     276<span class='line'>269</span>    * editorInstance.execCommand( 'Bold' ); 
     277<span class='line'>270</span>    */</span><span class="WHIT"> 
     278<span class='line'>271</span> </span><span class="WHIT">        </span><span class="NAME">execCommand</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">commandName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     279<span class='line'>272</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     280<span class='line'>273</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">command</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this._.commands</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT"> 
     281<span class='line'>274</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">command</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     282<span class='line'>275</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">command.exec</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">data</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="KEYW">throw</span><span class="WHIT"> </span><span class="STRN">'Unknown command name "'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'"'</span><span class="PUNC">;</span><span class="WHIT"> 
     285<span class='line'>278</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     286<span class='line'>279</span> 
     287<span class='line'>280</span> </span><span class="WHIT">        </span><span class="COMM">// Both fire and fireOnce will always pass this editor instance as the</span><span class="WHIT"> 
     288<span class='line'>281</span> </span><span class="WHIT">        </span><span class="COMM">// "editor" param in CKEDITOR.event.fire. So, we override it to do that</span><span class="WHIT"> 
     289<span class='line'>282</span> </span><span class="WHIT">        </span><span class="COMM">// automaticaly.</span><span class="WHIT"> 
     290<span class='line'>283</span> 
     291<span class='line'>284</span> </span><span class="WHIT">        </span><span class="COMM">/** @ignore */</span><span class="WHIT"> 
     292<span class='line'>285</span> </span><span class="WHIT">        </span><span class="NAME">fire</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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</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="PUNC">{</span><span class="WHIT"> 
     294<span class='line'>287</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.event.prototype.fire.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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</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"> 
     295<span class='line'>288</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     296<span class='line'>289</span> 
     297<span class='line'>290</span> </span><span class="WHIT">        </span><span class="COMM">/** @ignore */</span><span class="WHIT"> 
     298<span class='line'>291</span> </span><span class="WHIT">        </span><span class="NAME">fireOnce</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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     299<span class='line'>292</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     300<span class='line'>293</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.event.prototype.fireOnce.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">eventName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">data</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"> 
     301<span class='line'>294</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     302<span class='line'>295</span> 
     303<span class='line'>296</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     304<span class='line'>297</span>    * Gets the editor data. The data will be in raw format. It is the same 
     305<span class='line'>298</span>    * data that is posted by the editor. 
     306<span class='line'>299</span>    * @type String 
     307<span class='line'>300</span>    * @returns (String) The editor data. 
     308<span class='line'>301</span>    * @example 
     309<span class='line'>302</span>    * if ( CKEDITOR.instances.editor1.&lt;b>getData()&lt;/b> == '' ) 
     310<span class='line'>303</span>    *     alert( 'There is no data available' ); 
     311<span class='line'>304</span>    */</span><span class="WHIT"> 
     312<span class='line'>305</span> </span><span class="WHIT">        </span><span class="NAME">getData</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"> 
     313<span class='line'>306</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     314<span class='line'>307</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'beforeGetData'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     315<span class='line'>308</span> 
     316<span class='line'>309</span> </span><span class="WHIT">                </span><span class="COMM">// Fire "getData" so data manipulation may happen.</span><span class="WHIT"> 
     317<span class='line'>310</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">dataValue</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this._.data</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">this.element.$.value</span><span class="WHIT"> </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="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'getData'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     319<span class='line'>312</span> 
     320<span class='line'>313</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">eventData.dataValue</span><span class="PUNC">;</span><span class="WHIT"> 
     321<span class='line'>314</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     322<span class='line'>315</span> 
     323<span class='line'>316</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     324<span class='line'>317</span>    * Sets the editor data. The data must be provided in raw format. 
     325<span class='line'>318</span>    * @example 
     326<span class='line'>319</span>    * CKEDITOR.instances.editor1.&lt;b>setData( '&lt;p&gt;This is the editor data.&lt;/p&gt;' )&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">setData</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">data</span><span class="WHIT"> </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="COMM">// Fire "setData" so data manipulation may happen.</span><span class="WHIT"> 
     331<span class='line'>324</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">dataValue</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     332<span class='line'>325</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'setData'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">eventData</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     333<span class='line'>326</span> 
     334<span class='line'>327</span> </span><span class="WHIT">                </span><span class="NAME">this._.data</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">eventData.dataValue</span><span class="PUNC">;</span><span class="WHIT"> 
     335<span class='line'>328</span> 
     336<span class='line'>329</span> </span><span class="WHIT">                </span><span class="NAME">this.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'afterSetData'</span><span class="WHIT"> </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="PUNC">,</span><span class="WHIT"> 
     338<span class='line'>331</span> 
     339<span class='line'>332</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     340<span class='line'>333</span>    * Updates the &lt;textarea&gt; element that has been replaced by the editor with 
     341<span class='line'>334</span>    * the current data available in the editor. 
     342<span class='line'>335</span>    * @example 
     343<span class='line'>336</span>    * CKEDITOR.instances.editor1.updateElement(); 
     344<span class='line'>337</span>    * alert( document.getElementById( 'editor1' ).value );  // The current editor data. 
     345<span class='line'>338</span>    */</span><span class="WHIT"> 
     346<span class='line'>339</span> </span><span class="WHIT">        </span><span class="NAME">updateElement</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"> 
     347<span class='line'>340</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     348<span class='line'>341</span> </span><span class="WHIT">                </span><span class="NAME">this.element.$.value</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getData</span><span class="PUNC">(</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="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     351<span class='line'>344</span> 
     352<span class='line'>345</span> </span><span class="COMM">// "Inherit" (copy actually) from CKEDITOR.event.</span><span class="WHIT"> 
     353<span class='line'>346</span> </span><span class="NAME">CKEDITOR.event.implementOn</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.editor.prototype</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     354<span class='line'>347</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__loader.js.html

    r2262 r2278  
    6161<span class='line'> 54</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom/text'</span><span class="WHIT">                     </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/dom/node'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/dom/domobject'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    6262<span class='line'> 55</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom/window'</span><span class="WHIT">           </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/dom/domobject'</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="STRN">'core/editor'</span><span class="WHIT">                       </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/config'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/event'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/plugins'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/skins'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/themes'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/tools'</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="STRN">'core/editor'</span><span class="WHIT">                       </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/config'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/event'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/plugins'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/skins'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/themes'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/tools'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/ui'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    6464<span class='line'> 57</span> </span><span class="WHIT">                </span><span class="STRN">'core/env'</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"> 
    6565<span class='line'> 58</span> </span><span class="WHIT">                </span><span class="STRN">'core/event'</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"> 
     
    7070<span class='line'> 63</span> </span><span class="WHIT">                </span><span class="STRN">'core/themes'</span><span class="WHIT">                       </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'lang/en'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/resourceManager'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    7171<span class='line'> 64</span> </span><span class="WHIT">                </span><span class="STRN">'core/tools'</span><span class="WHIT">                        </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/env'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    72 <span class='line'> 65</span> </span><span class="WHIT">                </span><span class="STRN">'core/xml'</span><span class="WHIT">                          </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/env'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> 
    73 <span class='line'> 66</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    74 <span class='line'> 67</span> 
    75 <span class='line'> 68</span> </span><span class="WHIT">        </span><span class="KEYW">var</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"> 
    76 <span class='line'> 69</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    77 <span class='line'> 70</span> </span><span class="WHIT">                </span><span class="COMM">// This is a copy of CKEDITOR.basePath, but requires the script having</span><span class="WHIT"> 
    78 <span class='line'> 71</span> </span><span class="WHIT">                </span><span class="COMM">// "_source/core/loader.js".</span><span class="WHIT"> 
    79 <span class='line'> 72</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</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"> 
    80 <span class='line'> 73</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.basePath</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">// Find out the editor directory path, based on its &lt;script> tag.</span><span class="WHIT"> 
    83 <span class='line'> 76</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"> 
    84 <span class='line'> 77</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"> 
    85 <span class='line'> 78</span> 
    86 <span class='line'> 79</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"> 
    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">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">/(^|.*[\\\/])core\/loader.js(?:\?.*)?$/i</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="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"> 
    91 <span class='line'> 84</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    92 <span class='line'> 85</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"> 
    93 <span class='line'> 86</span> </span><span class="WHIT">                                </span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT"> 
    94 <span class='line'> 87</span> </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> 
    97 <span class='line'> 90</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"> 
    98 <span class='line'> 91</span> </span><span class="WHIT">                </span><span class="COMM">// HTML. Other browsers return the full resolved URL instead.</span><span class="WHIT"> 
    99 <span class='line'> 92</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"> 
    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="COMM">// Absolute path.</span><span class="WHIT"> 
    102 <span class='line'> 95</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"> 
    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">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"> 
    104 <span class='line'> 97</span> </span><span class="WHIT">                        </span><span class="COMM">// Relative path.</span><span class="WHIT"> 
    105 <span class='line'> 98</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
    106 <span class='line'> 99</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"> 
    107 <span class='line'>100</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
    108 <span class='line'>101</span> 
    109 <span class='line'>102</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"> 
    110 <span class='line'>103</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"> 
    111 <span class='line'>104</span> 
    112 <span class='line'>105</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">timestamp</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.timestamp</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="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">valueOf</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">       </span><span class="COMM">// @Packager.RemoveLine</span><span class="WHIT"> 
    113 <span class='line'>106</span> </span><span class="WHIT">        </span><span class="COMM">/*                                                                                                                                                            // @Packager.RemoveLine 
    114 <span class='line'>107</span>    * The production implementation contains a fixed timestamp                                             // @Packager.RemoveLine 
    115 <span class='line'>108</span>    * generated by the releaser                                                                                                    // @Packager.RemoveLine 
    116 <span class='line'>109</span>   var timestamp = '%TIMESTAMP%'; 
    117 <span class='line'>110</span>    */</span><span class="WHIT">                                                                                                                                                           </span><span class="COMM">// @Packager.RemoveLine</span><span class="WHIT"> 
    118 <span class='line'>111</span> 
    119 <span class='line'>112</span> </span><span class="WHIT">        </span><span class="KEYW">var</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"> 
    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">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.getUrl</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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.getUrl</span><span class="PUNC">(</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"> 
    123 <span class='line'>116</span> 
    124 <span class='line'>117</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">basePath</span><span class="WHIT"> </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"> 
    125 <span class='line'>118</span> </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"> 
    126 <span class='line'>119</span> </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">timestamp</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="WHIT"> 
    128 <span class='line'>121</span> 
    129 <span class='line'>122</span> </span><span class="WHIT">        </span><span class="COMM">/** @lends CKEDITOR.loader */</span><span class="WHIT"> 
    130 <span class='line'>123</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> 
    131 <span class='line'>124</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    132 <span class='line'>125</span>            * The list of loaded scripts in their loading order. 
    133 <span class='line'>126</span>            * @type Array 
    134 <span class='line'>127</span>            * @example 
    135 <span class='line'>128</span>            * // Alert the loaded script names. 
    136 <span class='line'>129</span>            * alert( &lt;b>CKEDITOR.loader.loadedScripts&lt;/b> ); 
    137 <span class='line'>130</span>            */</span><span class="WHIT"> 
    138 <span class='line'>131</span> </span><span class="WHIT">                </span><span class="NAME">loadedScripts</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"> 
    139 <span class='line'>132</span> 
    140 <span class='line'>133</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    141 <span class='line'>134</span>            * Loads a specific script, including its dependencies. This is not a 
    142 <span class='line'>135</span>            * synchronous loading, which means that the code the be loaded will 
    143 <span class='line'>136</span>            * not necessarily be available after this call. 
    144 <span class='line'>137</span>            * @example 
    145 <span class='line'>138</span>            * CKEDITOR.loader.load( 'core/dom/element' ); 
    146 <span class='line'>139</span>            */</span><span class="WHIT"> 
    147 <span class='line'>140</span> </span><span class="WHIT">                </span><span class="NAME">load</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">scriptName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    148 <span class='line'>141</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    149 <span class='line'>142</span> </span><span class="WHIT">                        </span><span class="COMM">// Check if the script has already been loaded.</span><span class="WHIT"> 
    150 <span class='line'>143</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">scriptName</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.loadedScripts</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">return</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="COMM">// Get the script dependencies list.</span><span class="WHIT"> 
    154 <span class='line'>147</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dependencies</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scripts</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT"> 
    155 <span class='line'>148</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="PUNC">!</span><span class="NAME">dependencies</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="KEYW">throw</span><span class="WHIT"> </span><span class="STRN">'The script name"'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'" is not defined.'</span><span class="PUNC">;</span><span class="WHIT"> 
    157 <span class='line'>150</span> 
    158 <span class='line'>151</span> </span><span class="WHIT">                        </span><span class="COMM">// Mark the script as loaded, even before really loading it, to</span><span class="WHIT"> 
    159 <span class='line'>152</span> </span><span class="WHIT">                        </span><span class="COMM">// avoid cross references recursion.</span><span class="WHIT"> 
    160 <span class='line'>153</span> </span><span class="WHIT">                        </span><span class="NAME">this.loadedScripts</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT"> 
    161 <span class='line'>154</span> 
    162 <span class='line'>155</span> </span><span class="WHIT">                        </span><span class="COMM">// Load all dependencies first.</span><span class="WHIT"> 
    163 <span class='line'>156</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">dependencies.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"> 
    164 <span class='line'>157</span> </span><span class="WHIT">                                </span><span class="NAME">this.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">dependencies</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    165 <span class='line'>158</span> 
    166 <span class='line'>159</span> </span><span class="WHIT">                        </span><span class="COMM">// Append this script to the list of loaded scripts.</span><span class="WHIT"> 
    167 <span class='line'>160</span> </span><span class="WHIT">                        </span><span class="NAME">this.loadedScripts.push</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    168 <span class='line'>161</span> 
    169 <span class='line'>162</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scriptSrc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getUrl</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'_source/'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'.js'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    170 <span class='line'>163</span> 
    171 <span class='line'>164</span> </span><span class="WHIT">                        </span><span class="COMM">// Append the &lt;script> element to the DOM.</span><span class="WHIT"> 
    172 <span class='line'>165</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">document.body</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    173 <span class='line'>166</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    174 <span class='line'>167</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">script</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createElement</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"> 
    175 <span class='line'>168</span> </span><span class="WHIT">                                </span><span class="NAME">script.type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'text/javascript'</span><span class="PUNC">;</span><span class="WHIT"> 
    176 <span class='line'>169</span> </span><span class="WHIT">                                </span><span class="NAME">script.src</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scriptSrc</span><span class="PUNC">;</span><span class="WHIT"> 
    177 <span class='line'>170</span> 
    178 <span class='line'>171</span> </span><span class="WHIT">                                </span><span class="NAME">document.body.appendChild</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">script</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    179 <span class='line'>172</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT"> 
    180 <span class='line'>173</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
    181 <span class='line'>174</span> </span><span class="WHIT">                                </span><span class="NAME">document.write</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'&lt;script src="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">scriptSrc</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'" type="text/javascript">&lt;\/script>'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    182 <span class='line'>175</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
    183 <span class='line'>176</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    184 <span class='line'>177</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    185 <span class='line'>178</span> 
    186 <span class='line'>179</span> </span><span class="COMM">// Check if any script has been defined for autoload.</span><span class="WHIT"> 
    187 <span class='line'>180</span> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR._autoLoad</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    188 <span class='line'>181</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    189 <span class='line'>182</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.loader.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR._autoLoad</span><span class="WHIT"> </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="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">CKEDITOR._autoLoad</span><span class="PUNC">;</span><span class="WHIT"> 
    191 <span class='line'>184</span> </span><span class="PUNC">}</span><span class="WHIT"> 
    192 <span class='line'>185</span> </span></pre></body></html> 
     72<span class='line'> 65</span> </span><span class="WHIT">                </span><span class="STRN">'core/ui'</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"> 
     73<span class='line'> 66</span> </span><span class="WHIT">                </span><span class="STRN">'core/xml'</span><span class="WHIT">                          </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'core/env'</span><span class="WHIT"> </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="PUNC">;</span><span class="WHIT"> 
     75<span class='line'> 68</span> 
     76<span class='line'> 69</span> </span><span class="WHIT">        </span><span class="KEYW">var</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"> 
     77<span class='line'> 70</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     78<span class='line'> 71</span> </span><span class="WHIT">                </span><span class="COMM">// This is a copy of CKEDITOR.basePath, but requires the script having</span><span class="WHIT"> 
     79<span class='line'> 72</span> </span><span class="WHIT">                </span><span class="COMM">// "_source/core/loader.js".</span><span class="WHIT"> 
     80<span class='line'> 73</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</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"> 
     81<span class='line'> 74</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.basePath</span><span class="PUNC">;</span><span class="WHIT"> 
     82<span class='line'> 75</span> 
     83<span class='line'> 76</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"> 
     84<span class='line'> 77</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"> 
     85<span class='line'> 78</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"> 
     86<span class='line'> 79</span> 
     87<span class='line'> 80</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"> 
     88<span class='line'> 81</span> </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="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">/(^|.*[\\\/])core\/loader.js(?:\?.*)?$/i</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="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"> 
     92<span class='line'> 85</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     93<span class='line'> 86</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"> 
     94<span class='line'> 87</span> </span><span class="WHIT">                                </span><span class="KEYW">break</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="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">// In IE (only) the script.src string is the raw valued entered in the</span><span class="WHIT"> 
     99<span class='line'> 92</span> </span><span class="WHIT">                </span><span class="COMM">// HTML. Other browsers return the full resolved URL instead.</span><span class="WHIT"> 
     100<span class='line'> 93</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"> 
     101<span class='line'> 94</span> </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="COMM">// Absolute path.</span><span class="WHIT"> 
     103<span class='line'> 96</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"> 
     104<span class='line'> 97</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"> 
     105<span class='line'> 98</span> </span><span class="WHIT">                        </span><span class="COMM">// Relative path.</span><span class="WHIT"> 
     106<span class='line'> 99</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
     107<span class='line'>100</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"> 
     108<span class='line'>101</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
     109<span class='line'>102</span> 
     110<span class='line'>103</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"> 
     111<span class='line'>104</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"> 
     112<span class='line'>105</span> 
     113<span class='line'>106</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">timestamp</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.timestamp</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="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Date</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">valueOf</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">       </span><span class="COMM">// @Packager.RemoveLine</span><span class="WHIT"> 
     114<span class='line'>107</span> </span><span class="WHIT">        </span><span class="COMM">/*                                                                                                                                                            // @Packager.RemoveLine 
     115<span class='line'>108</span>    * The production implementation contains a fixed timestamp                                             // @Packager.RemoveLine 
     116<span class='line'>109</span>    * generated by the releaser                                                                                                    // @Packager.RemoveLine 
     117<span class='line'>110</span>   var timestamp = '%TIMESTAMP%'; 
     118<span class='line'>111</span>    */</span><span class="WHIT">                                                                                                                                                           </span><span class="COMM">// @Packager.RemoveLine</span><span class="WHIT"> 
     119<span class='line'>112</span> 
     120<span class='line'>113</span> </span><span class="WHIT">        </span><span class="KEYW">var</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"> 
     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="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.getUrl</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     123<span class='line'>116</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.getUrl</span><span class="PUNC">(</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"> 
     124<span class='line'>117</span> 
     125<span class='line'>118</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">basePath</span><span class="WHIT"> </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"> 
     126<span class='line'>119</span> </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"> 
     127<span class='line'>120</span> </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">timestamp</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="PUNC">;</span><span class="WHIT"> 
     129<span class='line'>122</span> 
     130<span class='line'>123</span> </span><span class="WHIT">        </span><span class="COMM">/** @lends CKEDITOR.loader */</span><span class="WHIT"> 
     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">/** 
     133<span class='line'>126</span>            * The list of loaded scripts in their loading order. 
     134<span class='line'>127</span>            * @type Array 
     135<span class='line'>128</span>            * @example 
     136<span class='line'>129</span>            * // Alert the loaded script names. 
     137<span class='line'>130</span>            * alert( &lt;b>CKEDITOR.loader.loadedScripts&lt;/b> ); 
     138<span class='line'>131</span>            */</span><span class="WHIT"> 
     139<span class='line'>132</span> </span><span class="WHIT">                </span><span class="NAME">loadedScripts</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"> 
     140<span class='line'>133</span> 
     141<span class='line'>134</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     142<span class='line'>135</span>            * Loads a specific script, including its dependencies. This is not a 
     143<span class='line'>136</span>            * synchronous loading, which means that the code the be loaded will 
     144<span class='line'>137</span>            * not necessarily be available after this call. 
     145<span class='line'>138</span>            * @example 
     146<span class='line'>139</span>            * CKEDITOR.loader.load( 'core/dom/element' ); 
     147<span class='line'>140</span>            */</span><span class="WHIT"> 
     148<span class='line'>141</span> </span><span class="WHIT">                </span><span class="NAME">load</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">scriptName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     149<span class='line'>142</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     150<span class='line'>143</span> </span><span class="WHIT">                        </span><span class="COMM">// Check if the script has already been loaded.</span><span class="WHIT"> 
     151<span class='line'>144</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">scriptName</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.loadedScripts</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     152<span class='line'>145</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT"> 
     153<span class='line'>146</span> 
     154<span class='line'>147</span> </span><span class="WHIT">                        </span><span class="COMM">// Get the script dependencies list.</span><span class="WHIT"> 
     155<span class='line'>148</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dependencies</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scripts</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </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="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">dependencies</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">throw</span><span class="WHIT"> </span><span class="STRN">'The script name"'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'" is not defined.'</span><span class="PUNC">;</span><span class="WHIT"> 
     158<span class='line'>151</span> 
     159<span class='line'>152</span> </span><span class="WHIT">                        </span><span class="COMM">// Mark the script as loaded, even before really loading it, to</span><span class="WHIT"> 
     160<span class='line'>153</span> </span><span class="WHIT">                        </span><span class="COMM">// avoid cross references recursion.</span><span class="WHIT"> 
     161<span class='line'>154</span> </span><span class="WHIT">                        </span><span class="NAME">this.loadedScripts</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</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="COMM">// Load all dependencies first.</span><span class="WHIT"> 
     164<span class='line'>157</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">dependencies.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"> 
     165<span class='line'>158</span> </span><span class="WHIT">                                </span><span class="NAME">this.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">dependencies</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">i</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     166<span class='line'>159</span> 
     167<span class='line'>160</span> </span><span class="WHIT">                        </span><span class="COMM">// Append this script to the list of loaded scripts.</span><span class="WHIT"> 
     168<span class='line'>161</span> </span><span class="WHIT">                        </span><span class="NAME">this.loadedScripts.push</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     169<span class='line'>162</span> 
     170<span class='line'>163</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">scriptSrc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getUrl</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'_source/'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">scriptName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'.js'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     171<span class='line'>164</span> 
     172<span class='line'>165</span> </span><span class="WHIT">                        </span><span class="COMM">// Append the &lt;script> element to the DOM.</span><span class="WHIT"> 
     173<span class='line'>166</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">document.body</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     174<span class='line'>167</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     175<span class='line'>168</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">script</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createElement</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"> 
     176<span class='line'>169</span> </span><span class="WHIT">                                </span><span class="NAME">script.type</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'text/javascript'</span><span class="PUNC">;</span><span class="WHIT"> 
     177<span class='line'>170</span> </span><span class="WHIT">                                </span><span class="NAME">script.src</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">scriptSrc</span><span class="PUNC">;</span><span class="WHIT"> 
     178<span class='line'>171</span> 
     179<span class='line'>172</span> </span><span class="WHIT">                                </span><span class="NAME">document.body.appendChild</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">script</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     180<span class='line'>173</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT"> 
     181<span class='line'>174</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
     182<span class='line'>175</span> </span><span class="WHIT">                                </span><span class="NAME">document.write</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'&lt;script src="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">scriptSrc</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'" type="text/javascript">&lt;\/script>'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     183<span class='line'>176</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
     184<span class='line'>177</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     185<span class='line'>178</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     186<span class='line'>179</span> 
     187<span class='line'>180</span> </span><span class="COMM">// Check if any script has been defined for autoload.</span><span class="WHIT"> 
     188<span class='line'>181</span> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR._autoLoad</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     189<span class='line'>182</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     190<span class='line'>183</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.loader.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR._autoLoad</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     191<span class='line'>184</span> </span><span class="WHIT">        </span><span class="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">CKEDITOR._autoLoad</span><span class="PUNC">;</span><span class="WHIT"> 
     192<span class='line'>185</span> </span><span class="PUNC">}</span><span class="WHIT"> 
     193<span class='line'>186</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__pluginDefinition.js.html

    r2180 r2278  
    3434<span class='line'> 27</span> 
    3535<span class='line'> 28</span> </span><span class="COMM">/** 
    36 <span class='line'> 29</span>  * This class is not really part of the API. It just illustrates the features 
    37 <span class='line'> 30</span>  *                of plugin objects to passed to the {@link CKEDITOR.plugins.add} function. 
    38 <span class='line'> 31</span>  * @name CKEDITOR.pluginDefinition 
    39 <span class='line'> 32</span>  * @constructor 
    40 <span class='line'> 33</span>  * @example 
    41 <span class='line'> 34</span>  * // Do not do this. 
    42 <span class='line'> 35</span>  * var myEvent = new CKEDITOR.pluginDefinition();  // Error: CKEDITOR.pluginDefinition is undefined 
    43 <span class='line'> 36</span>  */</span><span class="WHIT"> 
    44 <span class='line'> 37</span> 
    45 <span class='line'> 38</span> </span><span class="WHIT"> </span><span class="COMM">/** 
    46 <span class='line'> 39</span>  * Function called on initialization of every editor instance created in the 
    47 <span class='line'> 40</span>  * page. 
    48 <span class='line'> 41</span>  * @name CKEDITOR.pluginDefinition.prototype.init 
    49 <span class='line'> 42</span>  * @function 
    50 <span class='line'> 43</span>  * @param {CKEDITOR.editor} editor The editor instance being initialized. 
    51 <span class='line'> 44</span>  * @param {String} pluginPath The URL path for the plugin installation folder. 
    52 <span class='line'> 45</span>  * @example 
    53 <span class='line'> 46</span>  * CKEDITOR.plugins.add( 'sample', 
    54 <span class='line'> 47</span>  * { 
    55 <span class='line'> 48</span>  *     init : function( editor, pluginPath ) 
    56 <span class='line'> 49</span>  *     { 
    57 <span class='line'> 50</span>  *         alert( 'Editor "' + editor.name + '" is being initialized!' ); 
    58 <span class='line'> 51</span>  *     } 
    59 <span class='line'> 52</span>  * }); 
    60 <span class='line'> 53</span>  */</span><span class="WHIT"> 
    61 <span class='line'> 54</span> </span></pre></body></html> 
     36<span class='line'> 29</span>  * (Virtual Class) Do not call this constructor. This class is not really part 
     37<span class='line'> 30</span>  *                of the API. It just illustrates the features of plugin objects to be 
     38<span class='line'> 31</span>  *                passed to the {@link CKEDITOR.plugins.add} function. 
     39<span class='line'> 32</span>  * @name CKEDITOR.pluginDefinition 
     40<span class='line'> 33</span>  * @constructor 
     41<span class='line'> 34</span>  * @example 
     42<span class='line'> 35</span>  */</span><span class="WHIT"> 
     43<span class='line'> 36</span> 
     44<span class='line'> 37</span> </span><span class="WHIT"> </span><span class="COMM">/** 
     45<span class='line'> 38</span>  * Function called on initialization of every editor instance created in the 
     46<span class='line'> 39</span>  * page before the init() call task. The beforeInit function will be called for 
     47<span class='line'> 40</span>  * all plugins, after that the init function is called for all of them. This 
     48<span class='line'> 41</span>  * feature makes it possible to initialize things that could be used in the 
     49<span class='line'> 42</span>  * init function of other plugins. 
     50<span class='line'> 43</span>  * @name CKEDITOR.pluginDefinition.prototype.beforeInit 
     51<span class='line'> 44</span>  * @function 
     52<span class='line'> 45</span>  * @param {CKEDITOR.editor} editor The editor instance being initialized. 
     53<span class='line'> 46</span>  * @param {String} pluginPath The URL path for the plugin installation folder. 
     54<span class='line'> 47</span>  * @example 
     55<span class='line'> 48</span>  * CKEDITOR.plugins.add( 'sample', 
     56<span class='line'> 49</span>  * { 
     57<span class='line'> 50</span>  *     beforeInit : function( editor, pluginPath ) 
     58<span class='line'> 51</span>  *     { 
     59<span class='line'> 52</span>  *         alert( 'Editor "' + editor.name + '" is to be initialized!' ); 
     60<span class='line'> 53</span>  *     } 
     61<span class='line'> 54</span>  * }); 
     62<span class='line'> 55</span>  */</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>  * Function called on initialization of every editor instance created in the 
     66<span class='line'> 59</span>  * page. 
     67<span class='line'> 60</span>  * @name CKEDITOR.pluginDefinition.prototype.init 
     68<span class='line'> 61</span>  * @function 
     69<span class='line'> 62</span>  * @param {CKEDITOR.editor} editor The editor instance being initialized. 
     70<span class='line'> 63</span>  * @param {String} pluginPath The URL path for the plugin installation folder. 
     71<span class='line'> 64</span>  * @example 
     72<span class='line'> 65</span>  * CKEDITOR.plugins.add( 'sample', 
     73<span class='line'> 66</span>  * { 
     74<span class='line'> 67</span>  *     init : function( editor, pluginPath ) 
     75<span class='line'> 68</span>  *     { 
     76<span class='line'> 69</span>  *         alert( 'Editor "' + editor.name + '" is being initialized!' ); 
     77<span class='line'> 70</span>  *     } 
     78<span class='line'> 71</span>  * }); 
     79<span class='line'> 72</span>  */</span><span class="WHIT"> 
     80<span class='line'> 73</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__basicstyles_plugin.js.html

    r2261 r2278  
    3131<span class='line'> 24</span> </span><span class="WHIT">        </span><span class="NAME">init</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">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">pluginPath</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    3232<span class='line'> 25</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    33 <span class='line'> 26</span> </span><span class="WHIT">                </span><span class="NAME">editor.addCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'bold'</span><span class="PUNC">,</span><span class="WHIT"> 
    34 <span class='line'> 27</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    35 <span class='line'> 28</span> </span><span class="WHIT">                                </span><span class="NAME">exec</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"> 
    36 <span class='line'> 29</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT"> 
    37 <span class='line'> 30</span> </span><span class="WHIT">                                        </span><span class="NAME">editor.focus</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    38 <span class='line'> 31</span> 
    39 <span class='line'> 32</span> </span><span class="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">doc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.document</span><span class="PUNC">;</span><span class="WHIT"> 
    40 <span class='line'> 33</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">doc</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    41 <span class='line'> 34</span> </span><span class="WHIT">                                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">doc.$.execCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'bold'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    42 <span class='line'> 35</span> </span><span class="WHIT">                                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT"> 
    43 <span class='line'> 36</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="WHIT"> 
    44 <span class='line'> 37</span> </span><span class="WHIT">                        </span><span class="PUNC">}</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="WHIT">                </span><span class="NAME">editor.addCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'italic'</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="NAME">exec</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"> 
    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="NAME">editor.focus</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    51 <span class='line'> 44</span> </span><span class="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">doc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.document</span><span class="PUNC">;</span><span class="WHIT"> 
    52 <span class='line'> 45</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">doc</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">return</span><span class="WHIT"> </span><span class="NAME">doc.$.execCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'italic'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</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">false</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="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    57 <span class='line'> 50</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT"> 
    58 <span class='line'> 51</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    59 <span class='line'> 52</span> </span></pre></body></html> 
     33<span class='line'> 26</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">basicstyles</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.plugins.basicstyles</span><span class="PUNC">,</span><span class="WHIT"> 
     34<span class='line'> 27</span> </span><span class="WHIT">                        </span><span class="NAME">commands</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">basicstyles.commands</span><span class="PUNC">,</span><span class="WHIT"> 
     35<span class='line'> 28</span> </span><span class="WHIT">                        </span><span class="NAME">ui</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">basicstyles.ui</span><span class="PUNC">;</span><span class="WHIT"> 
     36<span class='line'> 29</span> 
     37<span class='line'> 30</span> </span><span class="WHIT">                </span><span class="NAME">editor.addCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'bold'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">commands.bold</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     38<span class='line'> 31</span> </span><span class="WHIT">                </span><span class="NAME">editor.addCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'italic'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">commands.italic</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     39<span class='line'> 32</span> 
     40<span class='line'> 33</span> </span><span class="WHIT">                </span><span class="NAME">editor.ui.addButton</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'Bold'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">ui.bold</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     41<span class='line'> 34</span> </span><span class="WHIT">                </span><span class="NAME">editor.ui.addButton</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'Italic'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">ui.italic</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     42<span class='line'> 35</span> </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="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     44<span class='line'> 37</span> 
     45<span class='line'> 38</span> </span><span class="NAME">CKEDITOR.plugins.basicstyles</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="NAME">commands</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="NAME">bold</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="NAME">exec</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">editor</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="PUNC">{</span><span class="WHIT"> 
     53<span class='line'> 46</span> </span><span class="WHIT">                                </span><span class="NAME">editor.focus</span><span class="PUNC">(</span><span class="PUNC">)</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="KEYW">var</span><span class="WHIT"> </span><span class="NAME">doc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.document</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">doc</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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">doc.$.execCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'bold'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">null</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">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</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="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     61<span class='line'> 54</span> 
     62<span class='line'> 55</span> </span><span class="WHIT">                </span><span class="NAME">italic</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="PUNC">{</span><span class="WHIT"> 
     64<span class='line'> 57</span> </span><span class="WHIT">                        </span><span class="NAME">exec</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">editor</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="PUNC">{</span><span class="WHIT"> 
     66<span class='line'> 59</span> </span><span class="WHIT">                                </span><span class="NAME">editor.focus</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="KEYW">var</span><span class="WHIT"> </span><span class="NAME">doc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.document</span><span class="PUNC">;</span><span class="WHIT"> 
     69<span class='line'> 62</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">doc</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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">doc.$.execCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'italic'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     71<span class='line'> 64</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT"> 
     72<span class='line'> 65</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT"> 
     73<span class='line'> 66</span> </span><span class="WHIT">                </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="PUNC">,</span><span class="WHIT"> 
     75<span class='line'> 68</span> 
     76<span class='line'> 69</span> </span><span class="WHIT">        </span><span class="NAME">ui</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     77<span class='line'> 70</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     78<span class='line'> 71</span> </span><span class="WHIT">                </span><span class="NAME">bold</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> 
     79<span class='line'> 72</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     80<span class='line'> 73</span> </span><span class="WHIT">                        </span><span class="NAME">label</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'Bold'</span><span class="PUNC">,</span><span class="WHIT"> 
     81<span class='line'> 74</span> </span><span class="WHIT">                        </span><span class="NAME">command</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'bold'</span><span class="WHIT"> 
     82<span class='line'> 75</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     83<span class='line'> 76</span> 
     84<span class='line'> 77</span> </span><span class="WHIT">                </span><span class="NAME">italic</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">label</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'Italic'</span><span class="PUNC">,</span><span class="WHIT"> 
     87<span class='line'> 80</span> </span><span class="WHIT">                        </span><span class="NAME">command</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'italic'</span><span class="WHIT"> 
     88<span class='line'> 81</span> </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="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     91<span class='line'> 84</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__elementspath_plugin.js.html

    r2180 r2278  
    3636<span class='line'> 29</span> </span><span class="WHIT">        </span><span class="NAME">init</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">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">pluginPath</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    3737<span class='line'> 30</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    38 <span class='line'> 31</span> </span><span class="WHIT">                </span><span class="NAME">editor.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'themeSpace'</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">event</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    39 <span class='line'> 32</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    40 <span class='line'> 33</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">event.data.space</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'bottom'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    41 <span class='line'> 34</span> </span><span class="WHIT">                                        </span><span class="NAME">event.data.html</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> 
    42 <span class='line'> 35</span> </span><span class="WHIT">                                                </span><span class="STRN">'&lt;div>Elements Path!&lt;/div>'</span><span class="PUNC">;</span><span class="WHIT"> 
    43 <span class='line'> 36</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    44 <span class='line'> 37</span> </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="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    46 <span class='line'> 39</span> </span></pre></body></html> 
     38<span class='line'> 31</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">spaceId</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'cke_path_'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">editor.name</span><span class="PUNC">;</span><span class="WHIT"> 
     39<span class='line'> 32</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">spaceElement</span><span class="PUNC">;</span><span class="WHIT"> 
     40<span class='line'> 33</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">getSpaceElement</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"> 
     41<span class='line'> 34</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     42<span class='line'> 35</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="PUNC">!</span><span class="NAME">spaceElement</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     43<span class='line'> 36</span> </span><span class="WHIT">                                </span><span class="NAME">spaceElement</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.document.getById</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">spaceId</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     44<span class='line'> 37</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">spaceElement</span><span class="PUNC">;</span><span class="WHIT"> 
     45<span class='line'> 38</span> </span><span class="WHIT">                </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="WHIT">                </span><span class="NAME">editor.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'themeSpace'</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">event</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">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">event.data.space</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'bottom'</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="NAME">event.data.html</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'&lt;div id="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">spaceId</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'" class="cke_path">&lt;br>&lt;/div>'</span><span class="PUNC">;</span><span class="WHIT"> 
     51<span class='line'> 44</span> </span><span class="WHIT">                        </span><span class="PUNC">}</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="NAME">editor.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'selectionChange'</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"> 
     54<span class='line'> 47</span> </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="KEYW">var</span><span class="WHIT"> </span><span class="NAME">element</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getSelection</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">getStartElement</span><span class="PUNC">(</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="NAME">html</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"> 
     57<span class='line'> 50</span> </span><span class="WHIT">                                        </span><span class="NAME">elementsList</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this._.elementsPathList</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"> 
     58<span class='line'> 51</span> 
     59<span class='line'> 52</span> </span><span class="WHIT">                                </span><span class="KEYW">while</span><span class="WHIT"> </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"> 
     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">var</span><span class="WHIT"> </span><span class="NAME">index</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">elementsList.push</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"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">,</span><span class="WHIT"> 
     62<span class='line'> 55</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="NAME">element.getName</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="NAME">html.unshift</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'&lt;a href="element:'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'" onclick="return CKEDITOR._.elementsPathClick( \''</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'\','</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">index</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">');">'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'&lt;/a>'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     65<span class='line'> 58</span> 
     66<span class='line'> 59</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">'body'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     67<span class='line'> 60</span> </span><span class="WHIT">                                                </span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT"> 
     68<span class='line'> 61</span> 
     69<span class='line'> 62</span> </span><span class="WHIT">                                        </span><span class="NAME">element</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">element.getParent</span><span class="PUNC">(</span><span class="PUNC">)</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="WHIT"> 
     71<span class='line'> 64</span> 
     72<span class='line'> 65</span> </span><span class="WHIT">                                </span><span class="NAME">getSpaceElement</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">setHtml</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">html.join</span><span class="PUNC">(</span><span class="STRN">''</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     73<span class='line'> 66</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     74<span class='line'> 67</span> 
     75<span class='line'> 68</span> </span><span class="WHIT">                </span><span class="NAME">editor.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'contentDomUnload'</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"> 
     76<span class='line'> 69</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     77<span class='line'> 70</span> </span><span class="WHIT">                                </span><span class="NAME">getSpaceElement</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">setHtml</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'&lt;br>'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     78<span class='line'> 71</span> </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> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT"> 
     80<span class='line'> 73</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     81<span class='line'> 74</span> 
     82<span class='line'> 75</span> </span><span class="COMM">/** 
     83<span class='line'> 76</span>  * Handles the click on an element in the element path. 
     84<span class='line'> 77</span>  * @private 
     85<span class='line'> 78</span>  */</span><span class="WHIT"> 
     86<span class='line'> 79</span> </span><span class="NAME">CKEDITOR._.elementsPathClick</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">instanceName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">elementIndex</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     87<span class='line'> 80</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     88<span class='line'> 81</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.instances</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">instanceName</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="NAME">editor.focus</span><span class="PUNC">(</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="KEYW">var</span><span class="WHIT"> </span><span class="NAME">element</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor._.elementsPathList</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">elementIndex</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT"> 
     92<span class='line'> 85</span> </span><span class="WHIT">        </span><span class="NAME">editor.getSelection</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">selectElement</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">element</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="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT"> 
     95<span class='line'> 88</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     96<span class='line'> 89</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__selection_plugin.js.html

    r2262 r2278  
    6767<span class='line'> 60</span> 
    6868<span class='line'> 61</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimer</span><span class="PUNC">;</span><span class="WHIT"> 
    69 <span class='line'> 62</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeout</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"> 
    70 <span class='line'> 63</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    71 <span class='line'> 64</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">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    72 <span class='line'> 65</span> </span><span class="WHIT">                        </span><span class="NAME">window.clearTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    73 <span class='line'> 66</span> 
    74 <span class='line'> 67</span> </span><span class="WHIT">                </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.setTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChange</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">100</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"> 
    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">// #### checkSelectionChange : END</span><span class="WHIT"> 
    78 <span class='line'> 71</span> 
    79 <span class='line'> 72</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.plugins.add</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'selection'</span><span class="PUNC">,</span><span class="WHIT"> 
    80 <span class='line'> 73</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    81 <span class='line'> 74</span> </span><span class="WHIT">                </span><span class="NAME">init</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">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">pluginPath</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="NAME">editor.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'contentDom'</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"> 
    84 <span class='line'> 77</span> </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="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"> 
    86 <span class='line'> 79</span> </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="COMM">// IE is the only to provide the "selectionchange"</span><span class="WHIT"> 
    88 <span class='line'> 81</span> </span><span class="WHIT">                                                </span><span class="COMM">// event.</span><span class="WHIT"> 
    89 <span class='line'> 82</span> </span><span class="WHIT">                                                </span><span class="NAME">editor.document.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'selectionchange'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">checkSelectionChange</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    90 <span class='line'> 83</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="WHIT"> 
    91 <span class='line'> 84</span> </span><span class="WHIT">                                        </span><span class="KEYW">else</span><span class="WHIT"> 
    92 <span class='line'> 85</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
    93 <span class='line'> 86</span> </span><span class="WHIT">                                                </span><span class="COMM">// In other browsers, we make the selection change</span><span class="WHIT"> 
    94 <span class='line'> 87</span> </span><span class="WHIT">                                                </span><span class="COMM">// check based on other events, like clicks or keys</span><span class="WHIT"> 
    95 <span class='line'> 88</span> </span><span class="WHIT">                                                </span><span class="COMM">// press.</span><span class="WHIT"> 
    96 <span class='line'> 89</span> 
    97 <span class='line'> 90</span> </span><span class="WHIT">                                                </span><span class="NAME">editor.document.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'mouseup'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">checkSelectionChange</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    98 <span class='line'> 91</span> 
    99 <span class='line'> 92</span> </span><span class="WHIT">                                                </span><span class="COMM">// Firing the "OnSelectionChange" event on every key</span><span class="WHIT"> 
    100 <span class='line'> 93</span> </span><span class="WHIT">                                                </span><span class="COMM">// press started to be too slow. So, a timer has been</span><span class="WHIT"> 
    101 <span class='line'> 94</span> </span><span class="WHIT">                                                </span><span class="COMM">// implemented to solve performance issues when typing</span><span class="WHIT"> 
    102 <span class='line'> 95</span> </span><span class="WHIT">                                                </span><span class="COMM">// to quickly.</span><span class="WHIT"> 
    103 <span class='line'> 96</span> </span><span class="WHIT">                                                </span><span class="NAME">editor.document.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'keyup'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeout</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </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="PUNC">}</span><span class="WHIT"> 
    105 <span class='line'> 98</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">)</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> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    108 <span class='line'>101</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    109 <span class='line'>102</span> 
    110 <span class='line'>103</span> </span><span class="COMM">/** 
    111 <span class='line'>104</span>  * Gets the current selection from the editing area when in WYSIWYG mode. 
    112 <span class='line'>105</span>  * @returns {CKEDITOR.dom.selection} A selection object or null if not on 
    113 <span class='line'>106</span>  *                WYSIWYG mode or no selection is available. 
    114 <span class='line'>107</span>  * @example 
    115 <span class='line'>108</span>  * var selection = CKEDITOR.instances.editor1.&lt;b>getSelection()&lt;/b>; 
    116 <span class='line'>109</span>  * alert( selection.getType() ); 
    117 <span class='line'>110</span>  */</span><span class="WHIT"> 
    118 <span class='line'>111</span> </span><span class="NAME">CKEDITOR.editor.prototype.getSelection</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"> 
    119 <span class='line'>112</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    120 <span class='line'>113</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.document</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NAME">this.document.getSelection</span><span class="PUNC">(</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"> 
    121 <span class='line'>114</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    122 <span class='line'>115</span> 
    123 <span class='line'>116</span> </span><span class="COMM">/** 
    124 <span class='line'>117</span>  * Gets the current selection from the document. 
    125 <span class='line'>118</span>  * @returns {CKEDITOR.dom.selection} A selection object. 
    126 <span class='line'>119</span>  * @example 
    127 <span class='line'>120</span>  * var selection = CKEDITOR.instances.editor1.document.&lt;b>getSelection()&lt;/b>; 
    128 <span class='line'>121</span>  * alert( selection.getType() ); 
    129 <span class='line'>122</span>  */</span><span class="WHIT"> 
    130 <span class='line'>123</span> </span><span class="NAME">CKEDITOR.dom.document.prototype.getSelection</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"> 
    131 <span class='line'>124</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    132 <span class='line'>125</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.selection</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"> 
    133 <span class='line'>126</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    134 <span class='line'>127</span> 
    135 <span class='line'>128</span> </span><span class="COMM">/** 
    136 <span class='line'>129</span>  * No selection. 
    137 <span class='line'>130</span>  * @constant 
    138 <span class='line'>131</span>  * @example 
    139 <span class='line'>132</span>  * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_NONE ) 
    140 <span class='line'>133</span>  *     alert( 'Nothing is selected' ); 
    141 <span class='line'>134</span>  */</span><span class="WHIT"> 
    142 <span class='line'>135</span> </span><span class="NAME">CKEDITOR.SELECTION_NONE</span><span class="WHIT">               </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> 
    143 <span class='line'>136</span> 
    144 <span class='line'>137</span> </span><span class="COMM">/** 
    145 <span class='line'>138</span>  * Text or collapsed selection. 
    146 <span class='line'>139</span>  * @constant 
    147 <span class='line'>140</span>  * @example 
    148 <span class='line'>141</span>  * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_TEXT ) 
    149 <span class='line'>142</span>  *     alert( 'Text is selected' ); 
    150 <span class='line'>143</span>  */</span><span class="WHIT"> 
    151 <span class='line'>144</span> </span><span class="NAME">CKEDITOR.SELECTION_TEXT</span><span class="WHIT">               </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">;</span><span class="WHIT"> 
    152 <span class='line'>145</span> 
    153 <span class='line'>146</span> </span><span class="COMM">/** 
    154 <span class='line'>147</span>  * Element selection. 
    155 <span class='line'>148</span>  * @constant 
    156 <span class='line'>149</span>  * @example 
    157 <span class='line'>150</span>  * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_ELEMENT ) 
    158 <span class='line'>151</span>  *     alert( 'An element is selected' ); 
    159 <span class='line'>152</span>  */</span><span class="WHIT"> 
    160 <span class='line'>153</span> </span><span class="NAME">CKEDITOR.SELECTION_ELEMENT</span><span class="WHIT">    </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">;</span><span class="WHIT"> 
    161 <span class='line'>154</span> 
    162 <span class='line'>155</span> </span><span class="COMM">/** 
    163 <span class='line'>156</span>  * Manipulates the selection in a DOM document. 
    164 <span class='line'>157</span>  * @constructor 
    165 <span class='line'>158</span>  * @example 
    166 <span class='line'>159</span>  */</span><span class="WHIT"> 
    167 <span class='line'>160</span> </span><span class="NAME">CKEDITOR.dom.selection</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">document</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    168 <span class='line'>161</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    169 <span class='line'>162</span> </span><span class="WHIT">        </span><span class="NAME">this.document</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document</span><span class="PUNC">;</span><span class="WHIT"> 
    170 <span class='line'>163</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    171 <span class='line'>164</span> 
    172 <span class='line'>165</span> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
    173 <span class='line'>166</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    174 <span class='line'>167</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">styleObjectElements</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">img</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">hr</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">li</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">table</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">tr</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">td</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">embed</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">object</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">ol</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">ul</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    175 <span class='line'>168</span> 
    176 <span class='line'>169</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.dom.selection.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> 
    177 <span class='line'>170</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    178 <span class='line'>171</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    179 <span class='line'>172</span>            * Gets the native selection object from the browser. 
    180 <span class='line'>173</span>            * @returns {Object} The native selection object. 
    181 <span class='line'>174</span>            * @example 
    182 <span class='line'>175</span>            * var selection = editor.getSelection().&lt;b>getNative()&lt;/b>; 
    183 <span class='line'>176</span>            */</span><span class="WHIT"> 
    184 <span class='line'>177</span> </span><span class="WHIT">                </span><span class="NAME">getNative</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"> 
    185 <span class='line'>178</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    186 <span class='line'>179</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"> 
    187 <span class='line'>180</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="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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.document.$.selection</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> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
    192 <span class='line'>185</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="PUNC">)</span><span class="WHIT"> 
    193 <span class='line'>186</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
    194 <span class='line'>187</span> </span><span class="WHIT">                                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.document.getWindow</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">$.getSelection</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    195 <span class='line'>188</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    196 <span class='line'>189</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"> 
    197 <span class='line'>190</span> 
     69<span class='line'> 62</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeoutPending</span><span class="PUNC">;</span><span class="WHIT"> 
     70<span class='line'> 63</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeout</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"> 
     71<span class='line'> 64</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     72<span class='line'> 65</span> </span><span class="WHIT">                </span><span class="COMM">// Firing the "OnSelectionChange" event on every key press started to</span><span class="WHIT"> 
     73<span class='line'> 66</span> </span><span class="WHIT">                </span><span class="COMM">// be too slow. This function guarantees that there will be at least</span><span class="WHIT"> 
     74<span class='line'> 67</span> </span><span class="WHIT">                </span><span class="COMM">// 200ms delay between selection checks.</span><span class="WHIT"> 
     75<span class='line'> 68</span> 
     76<span class='line'> 69</span> </span><span class="WHIT">                </span><span class="NAME">checkSelectionChangeTimeoutPending</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="PUNC">;</span><span class="WHIT"> 
     77<span class='line'> 70</span> 
     78<span class='line'> 71</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">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     79<span class='line'> 72</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT"> 
     80<span class='line'> 73</span> 
     81<span class='line'> 74</span> </span><span class="WHIT">                </span><span class="NAME">checkSelectionChangeTimeoutExec.call</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"> 
     82<span class='line'> 75</span> 
     83<span class='line'> 76</span> </span><span class="WHIT">                </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.setTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeoutExec</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">200</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"> 
     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="KEYW">var</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeoutExec</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"> 
     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="NAME">checkSelectionChangeTimer</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"> 
     89<span class='line'> 82</span> 
     90<span class='line'> 83</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">checkSelectionChangeTimeoutPending</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     91<span class='line'> 84</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     92<span class='line'> 85</span> </span><span class="WHIT">                        </span><span class="COMM">// Call this with a timeout so the browser properly moves the</span><span class="WHIT"> 
     93<span class='line'> 86</span> </span><span class="WHIT">                        </span><span class="COMM">// selection after the mouseup. It happened that the selection was</span><span class="WHIT"> 
     94<span class='line'> 87</span> </span><span class="WHIT">                        </span><span class="COMM">// being moved after the mouseup when clicking inside selected text</span><span class="WHIT"> 
     95<span class='line'> 88</span> </span><span class="WHIT">                        </span><span class="COMM">// with Firefox.</span><span class="WHIT"> 
     96<span class='line'> 89</span> </span><span class="WHIT">                        </span><span class="NAME">CKEDITOR.tools.setTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChange</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">0</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"> 
     97<span class='line'> 90</span> 
     98<span class='line'> 91</span> </span><span class="WHIT">                        </span><span class="NAME">checkSelectionChangeTimeoutPending</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">;</span><span class="WHIT"> 
     99<span class='line'> 92</span> </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="PUNC">;</span><span class="WHIT"> 
     101<span class='line'> 94</span> 
     102<span class='line'> 95</span> </span><span class="WHIT">        </span><span class="COMM">// #### checkSelectionChange : END</span><span class="WHIT"> 
     103<span class='line'> 96</span> 
     104<span class='line'> 97</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.plugins.add</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'selection'</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="NAME">init</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">editor</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">pluginPath</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">editor.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'contentDom'</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"> 
     109<span class='line'>102</span> </span><span class="WHIT">                                </span><span class="PUNC">{</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">CKEDITOR.env.ie</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">// IE is the only to provide the "selectionchange"</span><span class="WHIT"> 
     113<span class='line'>106</span> </span><span class="WHIT">                                                </span><span class="COMM">// event.</span><span class="WHIT"> 
     114<span class='line'>107</span> </span><span class="WHIT">                                                </span><span class="NAME">editor.document.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'selectionchange'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeout</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </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">else</span><span class="WHIT"> 
     117<span class='line'>110</span> </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">// In other browsers, we make the selection change</span><span class="WHIT"> 
     119<span class='line'>112</span> </span><span class="WHIT">                                                </span><span class="COMM">// check based on other events, like clicks or keys</span><span class="WHIT"> 
     120<span class='line'>113</span> </span><span class="WHIT">                                                </span><span class="COMM">// press.</span><span class="WHIT"> 
     121<span class='line'>114</span> 
     122<span class='line'>115</span> </span><span class="WHIT">                                                </span><span class="NAME">editor.document.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'mouseup'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeout</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </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="NAME">editor.document.on</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'keyup'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimeout</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editor</span><span class="WHIT"> </span><span class="PUNC">)</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="PUNC">}</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="PUNC">)</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="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     129<span class='line'>122</span> 
     130<span class='line'>123</span> </span><span class="COMM">/** 
     131<span class='line'>124</span>  * Gets the current selection from the editing area when in WYSIWYG mode. 
     132<span class='line'>125</span>  * @returns {CKEDITOR.dom.selection} A selection object or null if not on 
     133<span class='line'>126</span>  *                WYSIWYG mode or no selection is available. 
     134<span class='line'>127</span>  * @example 
     135<span class='line'>128</span>  * var selection = CKEDITOR.instances.editor1.&lt;b>getSelection()&lt;/b>; 
     136<span class='line'>129</span>  * alert( selection.getType() ); 
     137<span class='line'>130</span>  */</span><span class="WHIT"> 
     138<span class='line'>131</span> </span><span class="NAME">CKEDITOR.editor.prototype.getSelection</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="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">this.document</span><span class="WHIT"> </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="NAME">this.document.getSelection</span><span class="PUNC">(</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"> 
     141<span class='line'>134</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     142<span class='line'>135</span> 
     143<span class='line'>136</span> </span><span class="COMM">/** 
     144<span class='line'>137</span>  * Gets the current selection from the document. 
     145<span class='line'>138</span>  * @returns {CKEDITOR.dom.selection} A selection object. 
     146<span class='line'>139</span>  * @example 
     147<span class='line'>140</span>  * var selection = CKEDITOR.instances.editor1.document.&lt;b>getSelection()&lt;/b>; 
     148<span class='line'>141</span>  * alert( selection.getType() ); 
     149<span class='line'>142</span>  */</span><span class="WHIT"> 
     150<span class='line'>143</span> </span><span class="NAME">CKEDITOR.dom.document.prototype.getSelection</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"> 
     151<span class='line'>144</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     152<span class='line'>145</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.selection</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"> 
     153<span class='line'>146</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     154<span class='line'>147</span> 
     155<span class='line'>148</span> </span><span class="COMM">/** 
     156<span class='line'>149</span>  * No selection. 
     157<span class='line'>150</span>  * @constant 
     158<span class='line'>151</span>  * @example 
     159<span class='line'>152</span>  * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_NONE ) 
     160<span class='line'>153</span>  *     alert( 'Nothing is selected' ); 
     161<span class='line'>154</span>  */</span><span class="WHIT"> 
     162<span class='line'>155</span> </span><span class="NAME">CKEDITOR.SELECTION_NONE</span><span class="WHIT">               </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT"> 
     163<span class='line'>156</span> 
     164<span class='line'>157</span> </span><span class="COMM">/** 
     165<span class='line'>158</span>  * Text or collapsed selection. 
     166<span class='line'>159</span>  * @constant 
     167<span class='line'>160</span>  * @example 
     168<span class='line'>161</span>  * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_TEXT ) 
     169<span class='line'>162</span>  *     alert( 'Text is selected' ); 
     170<span class='line'>163</span>  */</span><span class="WHIT"> 
     171<span class='line'>164</span> </span><span class="NAME">CKEDITOR.SELECTION_TEXT</span><span class="WHIT">               </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">;</span><span class="WHIT"> 
     172<span class='line'>165</span> 
     173<span class='line'>166</span> </span><span class="COMM">/** 
     174<span class='line'>167</span>  * Element selection. 
     175<span class='line'>168</span>  * @constant 
     176<span class='line'>169</span>  * @example 
     177<span class='line'>170</span>  * if ( editor.getSelection().getType() == CKEDITOR.SELECTION_ELEMENT ) 
     178<span class='line'>171</span>  *     alert( 'An element is selected' ); 
     179<span class='line'>172</span>  */</span><span class="WHIT"> 
     180<span class='line'>173</span> </span><span class="NAME">CKEDITOR.SELECTION_ELEMENT</span><span class="WHIT">    </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">;</span><span class="WHIT"> 
     181<span class='line'>174</span> 
     182<span class='line'>175</span> </span><span class="COMM">/** 
     183<span class='line'>176</span>  * Manipulates the selection in a DOM document. 
     184<span class='line'>177</span>  * @constructor 
     185<span class='line'>178</span>  * @example 
     186<span class='line'>179</span>  */</span><span class="WHIT"> 
     187<span class='line'>180</span> </span><span class="NAME">CKEDITOR.dom.selection</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">document</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     188<span class='line'>181</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     189<span class='line'>182</span> </span><span class="WHIT">        </span><span class="NAME">this.document</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document</span><span class="PUNC">;</span><span class="WHIT"> 
     190<span class='line'>183</span> </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="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
     193<span class='line'>186</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     194<span class='line'>187</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">styleObjectElements</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">img</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">hr</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">li</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">table</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">tr</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">td</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">embed</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">object</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">ol</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="PUNC">,</span><span class="NAME">ul</span><span class="PUNC">:</span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     195<span class='line'>188</span> 
     196<span class='line'>189</span> </span><span class="WHIT">        </span><span class="NAME">CKEDITOR.dom.selection.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> 
     197<span class='line'>190</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    198198<span class='line'>191</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    199 <span class='line'>192</span>            * Gets the type of the current selection. The following values are 
    200 <span class='line'>193</span>            * available: 
    201 <span class='line'>194</span>            * &lt;ul> 
    202 <span class='line'>195</span>            *              &lt;li>{@link CKEDITOR.SELECTION_NONE} (1): No selection.&lt;/li> 
    203 <span class='line'>196</span>            *              &lt;li>{@link CKEDITOR.SELECTION_TEXT} (2): Text is selected or 
    204 <span class='line'>197</span>            *                      collapsed selection.&lt;/li> 
    205 <span class='line'>198</span>            *              &lt;li>{@link CKEDITOR.SELECTION_ELEMENT} (3): A element 
    206 <span class='line'>199</span>            *                      selection.&lt;/li> 
    207 <span class='line'>200</span>            * &lt;/ul> 
    208 <span class='line'>201</span>            * @returns {Number} One of the following constant values: 
    209 <span class='line'>202</span>            *              {@link CKEDITOR.SELECTION_NONE}, {@link CKEDITOR.SELECTION_TEXT} or 
    210 <span class='line'>203</span>            *              {@link CKEDITOR.SELECTION_ELEMENT}. 
    211 <span class='line'>204</span>            * @example 
    212 <span class='line'>205</span>            * if ( editor.getSelection().&lt;b>getType()&lt;/b> == CKEDITOR.SELECTION_TEXT ) 
    213 <span class='line'>206</span>            *     alert( 'Text is selected' ); 
    214 <span class='line'>207</span>            */</span><span class="WHIT"> 
    215 <span class='line'>208</span> </span><span class="WHIT">                </span><span class="NAME">getType</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"> 
    216 <span class='line'>209</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    217 <span class='line'>210</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"> 
    218 <span class='line'>211</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="PUNC">)</span><span class="WHIT"> 
    219 <span class='line'>212</span> </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">try</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">var</span><span class="WHIT"> </span><span class="NAME">sel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getNative</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> 
    223 <span class='line'>216</span> </span><span class="WHIT">                                                                </span><span class="NAME">ieType</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">sel.type</span><span class="PUNC">;</span><span class="WHIT"> 
    224 <span class='line'>217</span> 
    225 <span class='line'>218</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">ieType</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'Text'</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">CKEDITOR.SELECTION_TEXT</span><span class="PUNC">;</span><span class="WHIT"> 
    227 <span class='line'>220</span> 
    228 <span class='line'>221</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">ieType</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'Control'</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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.SELECTION_ELEMENT</span><span class="PUNC">;</span><span class="WHIT"> 
    230 <span class='line'>223</span> 
    231 <span class='line'>224</span> </span><span class="WHIT">                                                        </span><span class="COMM">// It is possible that we can still get a text range</span><span class="WHIT"> 
    232 <span class='line'>225</span> </span><span class="WHIT">                                                        </span><span class="COMM">// object even when type == 'None' is returned by IE.</span><span class="WHIT"> 
    233 <span class='line'>226</span> </span><span class="WHIT">                                                        </span><span class="COMM">// So we'd better check the object returned by</span><span class="WHIT"> 
    234 <span class='line'>227</span> </span><span class="WHIT">                                                        </span><span class="COMM">// createRange() rather than by looking at the type.</span><span class="WHIT"> 
    235 <span class='line'>228</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">sel.createRange</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">parentElement</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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.SELECTION_TEXT</span><span class="PUNC">;</span><span class="WHIT"> 
    237 <span class='line'>230</span> </span><span class="WHIT">                                                </span><span class="PUNC">}</span><span class="WHIT"> 
    238 <span class='line'>231</span> </span><span class="WHIT">                                                </span><span class="KEYW">catch</span><span class="PUNC">(</span><span class="NAME">e</span><span class="PUNC">)</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">CKEDITOR.SELECTION_NONE</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"> 
    242 <span class='line'>235</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
    243 <span class='line'>236</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="PUNC">)</span><span class="WHIT"> 
    244 <span class='line'>237</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
    245 <span class='line'>238</span> </span><span class="WHIT">                                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.getNative</span><span class="PUNC">(</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="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">sel</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">CKEDITOR.SELECTION_NONE</span><span class="PUNC">;</span><span class="WHIT"> 
    248 <span class='line'>241</span> 
    249 <span class='line'>242</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">sel.rangeCount</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    250 <span class='line'>243</span> </span><span class="WHIT">                                                </span><span class="PUNC">{</span><span class="WHIT"> 
    251 <span class='line'>244</span> &l