Changeset 2189


Ignore:
Timestamp:
07/08/08 01:08:11 (6 years ago)
Author:
fredck
Message:

Introduced the base for the editing are support (wysiwyg plugin).
The size is now fully configurable.

Location:
CKEditor/branches/prototype
Files:
4 added
46 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/prototype/_docs/api/files.html

    r2180 r2189  
    207207 
    208208 
     209 
     210 
    209211        <li><a href="symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    210212 
     
    276278 
    277279                <li> 
     280                        <a href="symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
     281                </li> 
     282 
     283                <li> 
    278284                        <a href="symbols/CKEDITOR.editor.html">CKEDITOR.editor</a> 
    279285                </li> 
     
    577583Defines the <a href="symbols/CKEDITOR.dom.text.html#constructor">CKEDITOR.dom.text</a> class, which represents 
    578584                a DOM text node. 
     585                                <dl> 
     586 
     587 
     588 
     589                                </dl> 
     590                        </div> 
     591                        <hr /> 
     592 
     593                        <div> 
     594                                <h2 style="float:left"><a href="symbols/src/_source_core__dom_window.js.html">core/dom/window.js</a></h2> 
     595 
     596 
     597                                        <div style="float:right"> 
     598                                                <span class="heading">Version:</span> 
     599                                                        3.0 
     600                                        </div> 
     601 
     602                                <div style="clear:both"></div> 
     603 
     604 
     605Defines the <a href="symbols/CKEDITOR.dom.document.html#constructor">CKEDITOR.dom.document</a> class, which 
     606                represents a DOM document. 
    579607                                <dl> 
    580608 
  • CKEditor/branches/prototype/_docs/api/index.html

    r2180 r2189  
    207207 
    208208 
     209 
     210 
    209211        <li><a href="symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    210212 
     
    276278 
    277279                <li> 
     280                        <a href="symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
     281                </li> 
     282 
     283                <li> 
    278284                        <a href="symbols/CKEDITOR.editor.html">CKEDITOR.editor</a> 
    279285                </li> 
     
    393399 
    394400 
     401 
     402 
    395403                        <div> 
    396404                                <h2><a href="symbols/CKEDITOR.env.html#constructor">CKEDITOR.env</a></h2> 
     
    521529                        <div> 
    522530                                <h2><a href="symbols/CKEDITOR.dom.text.html#constructor">CKEDITOR.dom.text</a></h2> 
     531 
     532                        </div> 
     533                        <hr /> 
     534 
     535 
     536 
     537                        <div> 
     538                                <h2><a href="symbols/CKEDITOR.dom.window.html#constructor">CKEDITOR.dom.window</a></h2> 
    523539 
    524540                        </div> 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.ajax.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.config.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
     
    419425                                                        <td class="nameDescription"> 
    420426                                                                <div class="fixedFont"> 
     427                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.contentsCss">contentsCss</a></b> 
     428                                                                </div> 
     429                                                                <div class="description">The CSS file to be used to apply style to the contents.</div> 
     430                                                        </td> 
     431                                                </tr> 
     432 
     433                                                <tr> 
     434                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     435                                                        <td class="nameDescription"> 
     436                                                                <div class="fixedFont"> 
     437                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.contentsLangDirection">contentsLangDirection</a></b> 
     438                                                                </div> 
     439                                                                <div class="description">The writting direction of the language used to write the editor 
     440contents.</div> 
     441                                                        </td> 
     442                                                </tr> 
     443 
     444                                                <tr> 
     445                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     446                                                        <td class="nameDescription"> 
     447                                                                <div class="fixedFont"> 
    421448                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.corePlugins">corePlugins</a></b> 
    422449                                                                </div> 
     
    440467                                                        <td class="nameDescription"> 
    441468                                                                <div class="fixedFont"> 
     469                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.disableNativeSpellChecker">disableNativeSpellChecker</a></b> 
     470                                                                </div> 
     471                                                                <div class="description">Disables the built-in spell checker while typing natively available in the 
     472browser (currently Firefox and Safari only).</div> 
     473                                                        </td> 
     474                                                </tr> 
     475 
     476                                                <tr> 
     477                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     478                                                        <td class="nameDescription"> 
     479                                                                <div class="fixedFont"> 
     480                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.disableNativeTableHandles">disableNativeTableHandles</a></b> 
     481                                                                </div> 
     482                                                                <div class="description">Disables the "table tools" offered natively by the browser (currently 
     483Firefox only) to make quick table editing operations, like adding or 
     484deleting rows and columns.</div> 
     485                                                        </td> 
     486                                                </tr> 
     487 
     488                                                <tr> 
     489                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     490                                                        <td class="nameDescription"> 
     491                                                                <div class="fixedFont"> 
     492                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.disableObjectResizing">disableObjectResizing</a></b> 
     493                                                                </div> 
     494                                                                <div class="description">Disables the ability of resize objects (image and tables) in the editing 
     495area</div> 
     496                                                        </td> 
     497                                                </tr> 
     498 
     499                                                <tr> 
     500                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     501                                                        <td class="nameDescription"> 
     502                                                                <div class="fixedFont"> 
     503                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.docType">docType</a></b> 
     504                                                                </div> 
     505                                                                <div class="description">Sets the doctype to be used when loading the editor content as HTML.</div> 
     506                                                        </td> 
     507                                                </tr> 
     508 
     509                                                <tr> 
     510                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     511                                                        <td class="nameDescription"> 
     512                                                                <div class="fixedFont"> 
     513                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.fullPage">fullPage</a></b> 
     514                                                                </div> 
     515                                                                <div class="description">Indicates whether the contents to be edited are being inputted as a full 
     516HTML page.</div> 
     517                                                        </td> 
     518                                                </tr> 
     519 
     520                                                <tr> 
     521                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     522                                                        <td class="nameDescription"> 
     523                                                                <div class="fixedFont"> 
     524                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.height">height</a></b> 
     525                                                                </div> 
     526                                                                <div class="description">The editor height, in CSS size format or pixel integer.</div> 
     527                                                        </td> 
     528                                                </tr> 
     529 
     530                                                <tr> 
     531                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     532                                                        <td class="nameDescription"> 
     533                                                                <div class="fixedFont"> 
    442534                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.plugins">plugins</a></b> 
    443535                                                                </div> 
     
    484576                                                                </div> 
    485577                                                                <div class="description">The "theme space" to which rendering the toolbar.</div> 
     578                                                        </td> 
     579                                                </tr> 
     580 
     581                                                <tr> 
     582                                                        <td class="attributes">&lt;static&gt; &nbsp;</td> 
     583                                                        <td class="nameDescription"> 
     584                                                                <div class="fixedFont"> 
     585                                                                CKEDITOR.config.<b><a href="../symbols/CKEDITOR.config.html#.width">width</a></b> 
     586                                                                </div> 
     587                                                                <div class="description">The editor width in CSS size format or pixel integer.</div> 
    486588                                                        </td> 
    487589                                                </tr> 
     
    594696                                        <hr /> 
    595697 
     698                                        <a name=".contentsCss"> </a> 
     699                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     700 
     701                                        <span class="light">{String}</span> 
     702                                        <span class="light">CKEDITOR.config.</span><b>contentsCss</b> 
     703 
     704                                        </div> 
     705 
     706 
     707                                                <div style="float:right"> 
     708                                                        <span class="heading">Since:</span> 
     709                                                                3.0 
     710                                                </div> 
     711 
     712                                        <div style="clear:both"></div> 
     713 
     714                                        <div class="description"> 
     715                                                The CSS file to be used to apply style to the contents. It should 
     716reflect the CSS used in the final pages where the contents are to be 
     717used. 
     718 
     719 
     720                                        </div> 
     721 
     722 
     723 
     724 
     725                                        <pre class="code">config.contentsCss = '/css/mysitestyles.css';</pre> 
     726 
     727 
     728 
     729 
     730 
     731 
     732 
     733                                                        <dl class="detailList"> 
     734                                                        <dt class="heading">Default Value:</dt> 
     735                                                        <dd> 
     736                                                                '&lt;CKEditor folder&gt;/contents.css' 
     737                                                        </dd> 
     738                                                        </dl> 
     739 
     740 
     741                                        <hr /> 
     742 
     743                                        <a name=".contentsLangDirection"> </a> 
     744                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     745 
     746                                        <span class="light">{String}</span> 
     747                                        <span class="light">CKEDITOR.config.</span><b>contentsLangDirection</b> 
     748 
     749                                        </div> 
     750 
     751 
     752                                                <div style="float:right"> 
     753                                                        <span class="heading">Since:</span> 
     754                                                                3.0 
     755                                                </div> 
     756 
     757                                        <div style="clear:both"></div> 
     758 
     759                                        <div class="description"> 
     760                                                The writting direction of the language used to write the editor 
     761contents. Allowed values are 'ltr' for Left-To-Right language (like 
     762English), or 'rtl' for Right-To-Left languages (like Arabic). 
     763 
     764 
     765                                        </div> 
     766 
     767 
     768 
     769 
     770                                        <pre class="code">config.contentsLangDirection = 'rtl';</pre> 
     771 
     772 
     773 
     774 
     775 
     776 
     777 
     778                                                        <dl class="detailList"> 
     779                                                        <dt class="heading">Default Value:</dt> 
     780                                                        <dd> 
     781                                                                'ltr' 
     782                                                        </dd> 
     783                                                        </dl> 
     784 
     785 
     786                                        <hr /> 
     787 
    596788                                        <a name=".corePlugins"> </a> 
    597789                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
    598790 
    599                                         <span class="light">{Undefined}</span> 
     791                                        <span class="light">{String}</span> 
    600792                                        <span class="light">CKEDITOR.config.</span><b>corePlugins</b> 
    601793 
     
    686878                                        <hr /> 
    687879 
     880                                        <a name=".disableNativeSpellChecker"> </a> 
     881                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     882 
     883                                        <span class="light">{Boolean}</span> 
     884                                        <span class="light">CKEDITOR.config.</span><b>disableNativeSpellChecker</b> 
     885 
     886                                        </div> 
     887 
     888 
     889                                                <div style="float:right"> 
     890                                                        <span class="heading">Since:</span> 
     891                                                                3.0 
     892                                                </div> 
     893 
     894                                        <div style="clear:both"></div> 
     895 
     896                                        <div class="description"> 
     897                                                Disables the built-in spell checker while typing natively available in the 
     898browser (currently Firefox and Safari only).<br /><br /> 
     899 
     900Even if word suggestions will not appear in the FCKeditor context menu, this 
     901feature is useful to help quickly identifying misspelled words.<br /><br /> 
     902 
     903This setting is currently compatible with Firefox only due to limitations in 
     904other browsers. 
     905 
     906                                                        <br /> 
     907                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__wysiwygarea_plugin.js.html">plugins/wysiwygarea/plugin.js</a>. 
     908 
     909 
     910                                        </div> 
     911 
     912 
     913 
     914 
     915                                        <pre class="code">config.disableNativeSpellChecker = false;</pre> 
     916 
     917 
     918 
     919 
     920 
     921 
     922 
     923                                                        <dl class="detailList"> 
     924                                                        <dt class="heading">Default Value:</dt> 
     925                                                        <dd> 
     926                                                                true 
     927                                                        </dd> 
     928                                                        </dl> 
     929 
     930 
     931                                        <hr /> 
     932 
     933                                        <a name=".disableNativeTableHandles"> </a> 
     934                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     935 
     936                                        <span class="light">{Boolean}</span> 
     937                                        <span class="light">CKEDITOR.config.</span><b>disableNativeTableHandles</b> 
     938 
     939                                        </div> 
     940 
     941 
     942                                                <div style="float:right"> 
     943                                                        <span class="heading">Since:</span> 
     944                                                                3.0 
     945                                                </div> 
     946 
     947                                        <div style="clear:both"></div> 
     948 
     949                                        <div class="description"> 
     950                                                Disables the "table tools" offered natively by the browser (currently 
     951Firefox only) to make quick table editing operations, like adding or 
     952deleting rows and columns. 
     953 
     954                                                        <br /> 
     955                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__wysiwygarea_plugin.js.html">plugins/wysiwygarea/plugin.js</a>. 
     956 
     957 
     958                                        </div> 
     959 
     960 
     961 
     962 
     963                                        <pre class="code">config.disableNativeTableHandles = false;</pre> 
     964 
     965 
     966 
     967 
     968 
     969 
     970 
     971                                                        <dl class="detailList"> 
     972                                                        <dt class="heading">Default Value:</dt> 
     973                                                        <dd> 
     974                                                                true 
     975                                                        </dd> 
     976                                                        </dl> 
     977 
     978 
     979                                        <hr /> 
     980 
     981                                        <a name=".disableObjectResizing"> </a> 
     982                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     983 
     984                                        <span class="light">{Boolean}</span> 
     985                                        <span class="light">CKEDITOR.config.</span><b>disableObjectResizing</b> 
     986 
     987                                        </div> 
     988 
     989 
     990                                                <div style="float:right"> 
     991                                                        <span class="heading">Since:</span> 
     992                                                                3.0 
     993                                                </div> 
     994 
     995                                        <div style="clear:both"></div> 
     996 
     997                                        <div class="description"> 
     998                                                Disables the ability of resize objects (image and tables) in the editing 
     999area 
     1000 
     1001                                                        <br /> 
     1002                                                        <i>Defined in: </i> <a href="../symbols/src/_source_plugins__wysiwygarea_plugin.js.html">plugins/wysiwygarea/plugin.js</a>. 
     1003 
     1004 
     1005                                        </div> 
     1006 
     1007 
     1008 
     1009 
     1010                                        <pre class="code">config.disableObjectResizing = true;</pre> 
     1011 
     1012 
     1013 
     1014 
     1015 
     1016 
     1017 
     1018                                                        <dl class="detailList"> 
     1019                                                        <dt class="heading">Default Value:</dt> 
     1020                                                        <dd> 
     1021                                                                false 
     1022                                                        </dd> 
     1023                                                        </dl> 
     1024 
     1025 
     1026                                        <hr /> 
     1027 
     1028                                        <a name=".docType"> </a> 
     1029                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     1030 
     1031                                        <span class="light">{String}</span> 
     1032                                        <span class="light">CKEDITOR.config.</span><b>docType</b> 
     1033 
     1034                                        </div> 
     1035 
     1036 
     1037                                                <div style="float:right"> 
     1038                                                        <span class="heading">Since:</span> 
     1039                                                                3.0 
     1040                                                </div> 
     1041 
     1042                                        <div style="clear:both"></div> 
     1043 
     1044                                        <div class="description"> 
     1045                                                Sets the doctype to be used when loading the editor content as HTML. 
     1046 
     1047 
     1048                                        </div> 
     1049 
     1050 
     1051 
     1052 
     1053                                        <pre class="code">// Set the doctype to the HTML 4 (quirks) mode. 
     1054config.docType = '&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;';</pre> 
     1055 
     1056 
     1057 
     1058 
     1059 
     1060 
     1061 
     1062                                                        <dl class="detailList"> 
     1063                                                        <dt class="heading">Default Value:</dt> 
     1064                                                        <dd> 
     1065                                                                '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;' 
     1066                                                        </dd> 
     1067                                                        </dl> 
     1068 
     1069 
     1070                                        <hr /> 
     1071 
     1072                                        <a name=".fullPage"> </a> 
     1073                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     1074 
     1075                                        <span class="light">{Boolean}</span> 
     1076                                        <span class="light">CKEDITOR.config.</span><b>fullPage</b> 
     1077 
     1078                                        </div> 
     1079 
     1080 
     1081                                                <div style="float:right"> 
     1082                                                        <span class="heading">Since:</span> 
     1083                                                                3.0 
     1084                                                </div> 
     1085 
     1086                                        <div style="clear:both"></div> 
     1087 
     1088                                        <div class="description"> 
     1089                                                Indicates whether the contents to be edited are being inputted as a full 
     1090HTML page. A full page includes the &lt;html&gt;, &lt;head&gt; and 
     1091&lt;body&gt; tags. The final output will also reflect this setting, 
     1092including the &lt;body&gt; contents only if this setting is disabled. 
     1093 
     1094 
     1095                                        </div> 
     1096 
     1097 
     1098 
     1099 
     1100                                        <pre class="code">config.fullPage = true;</pre> 
     1101 
     1102 
     1103 
     1104 
     1105 
     1106 
     1107 
     1108                                                        <dl class="detailList"> 
     1109                                                        <dt class="heading">Default Value:</dt> 
     1110                                                        <dd> 
     1111                                                                false 
     1112                                                        </dd> 
     1113                                                        </dl> 
     1114 
     1115 
     1116                                        <hr /> 
     1117 
     1118                                        <a name=".height"> </a> 
     1119                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     1120 
     1121                                        <span class="light">{String|Number}</span> 
     1122                                        <span class="light">CKEDITOR.config.</span><b>height</b> 
     1123 
     1124                                        </div> 
     1125 
     1126 
     1127                                                <div style="float:right"> 
     1128                                                        <span class="heading">Since:</span> 
     1129                                                                3.0 
     1130                                                </div> 
     1131 
     1132                                        <div style="clear:both"></div> 
     1133 
     1134                                        <div class="description"> 
     1135                                                The editor height, in CSS size format or pixel integer. 
     1136 
     1137 
     1138                                        </div> 
     1139 
     1140 
     1141 
     1142 
     1143 
     1144 
     1145 
     1146 
     1147 
     1148 
     1149                                                        <dl class="detailList"> 
     1150                                                        <dt class="heading">Default Value:</dt> 
     1151                                                        <dd> 
     1152                                                                '15em' 
     1153                                                        </dd> 
     1154                                                        </dl> 
     1155 
     1156 
     1157                                        <hr /> 
     1158 
    6881159                                        <a name=".plugins"> </a> 
    6891160                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     
    9181389                                                        <dd> 
    9191390                                                                'top' 
     1391                                                        </dd> 
     1392                                                        </dl> 
     1393 
     1394 
     1395                                        <hr /> 
     1396 
     1397                                        <a name=".width"> </a> 
     1398                                        <div class="fixedFont" style="float:left">&lt;static&gt; 
     1399 
     1400                                        <span class="light">{String|Number}</span> 
     1401                                        <span class="light">CKEDITOR.config.</span><b>width</b> 
     1402 
     1403                                        </div> 
     1404 
     1405 
     1406                                                <div style="float:right"> 
     1407                                                        <span class="heading">Since:</span> 
     1408                                                                3.0 
     1409                                                </div> 
     1410 
     1411                                        <div style="clear:both"></div> 
     1412 
     1413                                        <div class="description"> 
     1414                                                The editor width in CSS size format or pixel integer. 
     1415 
     1416 
     1417                                        </div> 
     1418 
     1419 
     1420 
     1421 
     1422 
     1423 
     1424 
     1425 
     1426 
     1427 
     1428                                                        <dl class="detailList"> 
     1429                                                        <dt class="heading">Default Value:</dt> 
     1430                                                        <dd> 
     1431                                                                '100%' 
    9201432                                                        </dd> 
    9211433                                                        </dl> 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.document.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
     
    378384                                                <td class="nameDescription" > 
    379385                                                        <div class="fixedFont"> 
    380                                                                 <b><a href="../symbols/CKEDITOR.dom.document.html#constructor">CKEDITOR.dom.document</a></b>(document) 
     386                                                                <b><a href="../symbols/CKEDITOR.dom.document.html#constructor">CKEDITOR.dom.document</a></b>(domDocument) 
    381387                                                        </div> 
    382388                                                        <div class="description">Represents a DOM document.</div> 
     
    464470 
    465471                                <div class="fixedFont" style="float:left"> 
    466                                                 <b>CKEDITOR.dom.document</b>(document) 
     472                                                <b>CKEDITOR.dom.document</b>(domDocument) 
    467473                                </div> 
    468474 
     
    483489 
    484490 
    485                                 <pre class="code">// Create a new &lt;span&gt; element. 
    486 var document = new CKEDITOR.dom.document( document );</pre> 
     491                                <pre class="code">var document = new CKEDITOR.dom.document( document );</pre> 
    487492 
    488493 
     
    495500 
    496501                                                        <dt> 
    497                                                                 <span class="light fixedFont">{Object}</span>  <b>document</b> 
     502                                                                <span class="light fixedFont">{Object}</span>  <b>domDocument</b> 
    498503 
    499504                                                        </dt> 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.element.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
     
    541547                                                        <td class="attributes">&nbsp;</td> 
    542548                                                        <td class="nameDescription"> 
     549                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#remove">remove</a></b>() 
     550                                                                </div> 
     551                                                                <div class="description">Removes the element from the document DOM.</div> 
     552                                                        </td> 
     553                                                </tr> 
     554 
     555                                                <tr> 
     556                                                        <td class="attributes">&nbsp;</td> 
     557                                                        <td class="nameDescription"> 
    543558                                                                <div class="fixedFont"><b><a href="../symbols/CKEDITOR.dom.element.html#removeAttribute">removeAttribute</a></b>(name) 
    544559                                                                </div> 
     
    13321347                                        <hr /> 
    13331348 
     1349                                        <a name="remove"> </a> 
     1350                                        <div class="fixedFont" style="float:left"> 
     1351 
     1352                                        <span class="light">{Undefined}</span> 
     1353                                        <b>remove</b>() 
     1354 
     1355                                        </div> 
     1356 
     1357 
     1358                                                <div style="float:right"> 
     1359                                                        <span class="heading">Since:</span> 
     1360                                                                3.0 
     1361                                                </div> 
     1362 
     1363                                        <div style="clear:both"></div> 
     1364 
     1365 
     1366                                        <div class="description"> 
     1367                                                Removes the element from the document DOM. 
     1368 
     1369 
     1370                                        </div> 
     1371 
     1372 
     1373 
     1374 
     1375                                        <pre class="code">var element = CKEDITOR.dom.element.getById( 'MyElement' ); 
     1376<b>element.remove()</b>;</pre> 
     1377 
     1378 
     1379 
     1380 
     1381 
     1382 
     1383 
     1384 
     1385 
     1386 
     1387 
     1388                                        <hr /> 
     1389 
    13341390                                        <a name="removeAttribute"> </a> 
    13351391                                        <div class="fixedFont" style="float:left"> 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.node.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.dom.text.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.editor.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.env.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.event.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.eventInfo.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.lang.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
     
    486492 
    487493                                        <div class="description"> 
    488                                                 The language reading direction. Possible values are "rtl" for "Right to 
    489 Left" languages (like Arabic) and "ltr" for "Left to Right" languages (like 
    490 English). 
     494                                                The language reading direction. Possible values are "rtl" for 
     495Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right 
     496languages (like English). 
    491497 
    492498 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.loader.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.pluginDefinition.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.plugins.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.resourceManager.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.scriptLoader.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.skins.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.test.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.themes.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.tools.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/CKEDITOR.xml.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/_global_.html

    r2180 r2189  
    212212 
    213213 
     214 
     215 
    214216        <li><a href="../symbols/CKEDITOR.env.html">CKEDITOR.env</a></li> 
    215217 
     
    278280                <li> 
    279281                        <a href="../symbols/CKEDITOR.dom.text.html">CKEDITOR.dom.text</a> 
     282                </li> 
     283 
     284                <li> 
     285                        <a href="../symbols/CKEDITOR.dom.window.html">CKEDITOR.dom.window</a> 
    280286                </li> 
    281287 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__config.js.html

    r2180 r2189  
    7373<span class='line'> 66</span> 
    7474<span class='line'> 67</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    75 <span class='line'> 68</span>    * A comma separated list of plugins that are not related to editor 
    76 <span class='line'> 69</span>    * instances. Reserved to plugins that extend the core code only.&lt;br />&lt;br /> 
    77 <span class='line'> 70</span>    * 
    78 <span class='line'> 71</span>    * There are no ways to override this setting, except by editing the source 
    79 <span class='line'> 72</span>    * code of CKEditor (_source/core/config.js). 
     75<span class='line'> 68</span>    * The CSS file to be used to apply style to the contents. It should 
     76<span class='line'> 69</span>    * reflect the CSS used in the final pages where the contents are to be 
     77<span class='line'> 70</span>    * used. 
     78<span class='line'> 71</span>    * @type String 
     79<span class='line'> 72</span>    * @default '&lt;CKEditor folder&gt;/contents.css' 
    8080<span class='line'> 73</span>    * @example 
    81 <span class='line'> 74</span>    */</span><span class="WHIT"> 
    82 <span class='line'> 75</span> </span><span class="WHIT">        </span><span class="NAME">corePlugins</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">''</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="COMM">/** 
    85 <span class='line'> 78</span>    * Comma separated list of plugins to load and initialize for an editor 
    86 <span class='line'> 79</span>    * instance. 
    87 <span class='line'> 80</span>    * @type String 
    88 <span class='line'> 81</span>    * @default 'editingblock,elementspath,sourcearea,toolbar,wysiwygarea' 
    89 <span class='line'> 82</span>    * @example 
    90 <span class='line'> 83</span>    * config.plugins = 'editingblock,toolbar,wysiwygarea'; 
    91 <span class='line'> 84</span>    */</span><span class="WHIT"> 
    92 <span class='line'> 85</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">'editingblock,elementspath,htmldataprocessor,sourcearea,toolbar,wysiwygarea'</span><span class="PUNC">,</span><span class="WHIT"> 
    93 <span class='line'> 86</span> 
    94 <span class='line'> 87</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    95 <span class='line'> 88</span>    * The theme to be used to build the UI. 
    96 <span class='line'> 89</span>    * @type String 
    97 <span class='line'> 90</span>    * @default 'default' 
    98 <span class='line'> 91</span>    * @see CKEDITOR.config.skin 
    99 <span class='line'> 92</span>    * @example 
    100 <span class='line'> 93</span>    * config.theme = 'default'; 
    101 <span class='line'> 94</span>    */</span><span class="WHIT"> 
    102 <span class='line'> 95</span> </span><span class="WHIT">        </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'default'</span><span class="PUNC">,</span><span class="WHIT"> 
    103 <span class='line'> 96</span> 
    104 <span class='line'> 97</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    105 <span class='line'> 98</span>    * The skin to load. 
    106 <span class='line'> 99</span>    * @type String 
    107 <span class='line'>100</span>    * @default 'default' 
    108 <span class='line'>101</span>    * @example 
    109 <span class='line'>102</span>    * config.skin = 'v2'; 
    110 <span class='line'>103</span>    */</span><span class="WHIT"> 
    111 <span class='line'>104</span> </span><span class="WHIT">        </span><span class="NAME">skin</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'default'</span><span class="WHIT"> 
    112 <span class='line'>105</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    113 <span class='line'>106</span> </span></pre></body></html> 
     81<span class='line'> 74</span>    * config.contentsCss = '/css/mysitestyles.css'; 
     82<span class='line'> 75</span>    */</span><span class="WHIT"> 
     83<span class='line'> 76</span> </span><span class="WHIT">        </span><span class="NAME">contentsCss</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.basePath</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'contents.css'</span><span class="PUNC">,</span><span class="WHIT"> 
     84<span class='line'> 77</span> 
     85<span class='line'> 78</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     86<span class='line'> 79</span>    * The writting direction of the language used to write the editor 
     87<span class='line'> 80</span>    * contents. Allowed values are 'ltr' for Left-To-Right language (like 
     88<span class='line'> 81</span>    * English), or 'rtl' for Right-To-Left languages (like Arabic). 
     89<span class='line'> 82</span>    * @default 'ltr' 
     90<span class='line'> 83</span>    * @type String 
     91<span class='line'> 84</span>    * @example 
     92<span class='line'> 85</span>    * config.contentsLangDirection = 'rtl'; 
     93<span class='line'> 86</span>    */</span><span class="WHIT"> 
     94<span class='line'> 87</span> </span><span class="WHIT">        </span><span class="NAME">contentsLangDirection</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'ltr'</span><span class="PUNC">,</span><span class="WHIT"> 
     95<span class='line'> 88</span> 
     96<span class='line'> 89</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     97<span class='line'> 90</span>    * A comma separated list of plugins that are not related to editor 
     98<span class='line'> 91</span>    * instances. Reserved to plugins that extend the core code only.&lt;br />&lt;br /> 
     99<span class='line'> 92</span>    * 
     100<span class='line'> 93</span>    * There are no ways to override this setting, except by editing the source 
     101<span class='line'> 94</span>    * code of CKEditor (_source/core/config.js). 
     102<span class='line'> 95</span>    * @type String 
     103<span class='line'> 96</span>    * @example 
     104<span class='line'> 97</span>    */</span><span class="WHIT"> 
     105<span class='line'> 98</span> </span><span class="WHIT">        </span><span class="NAME">corePlugins</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">,</span><span class="WHIT"> 
     106<span class='line'> 99</span> 
     107<span class='line'>100</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     108<span class='line'>101</span>    * Sets the doctype to be used when loading the editor content as HTML. 
     109<span class='line'>102</span>    * @type String 
     110<span class='line'>103</span>    * @default '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;' 
     111<span class='line'>104</span>    * @example 
     112<span class='line'>105</span>    * // Set the doctype to the HTML 4 (quirks) mode. 
     113<span class='line'>106</span>    * config.docType = '&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;'; 
     114<span class='line'>107</span>    */</span><span class="WHIT"> 
     115<span class='line'>108</span> </span><span class="WHIT">        </span><span class="NAME">docType</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'</span><span class="PUNC">,</span><span class="WHIT"> 
     116<span class='line'>109</span> 
     117<span class='line'>110</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     118<span class='line'>111</span>    * Indicates whether the contents to be edited are being inputted as a full 
     119<span class='line'>112</span>    * HTML page. A full page includes the &lt;html&gt;, &lt;head&gt; and 
     120<span class='line'>113</span>    * &lt;body&gt; tags. The final output will also reflect this setting, 
     121<span class='line'>114</span>    * including the &lt;body&gt; contents only if this setting is disabled. 
     122<span class='line'>115</span>    * @type Boolean 
     123<span class='line'>116</span>    * @default false 
     124<span class='line'>117</span>    * @example 
     125<span class='line'>118</span>    * config.fullPage = true; 
     126<span class='line'>119</span>    */</span><span class="WHIT"> 
     127<span class='line'>120</span> </span><span class="WHIT">        </span><span class="NAME">fullPage</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"> 
     128<span class='line'>121</span> 
     129<span class='line'>122</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     130<span class='line'>123</span>    * The editor height, in CSS size format or pixel integer. 
     131<span class='line'>124</span>    * @type String|Number 
     132<span class='line'>125</span>    * @default '15em' 
     133<span class='line'>126</span>    * @example 
     134<span class='line'>127</span>    */</span><span class="WHIT"> 
     135<span class='line'>128</span> </span><span class="WHIT">        </span><span class="NAME">height</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'15em'</span><span class="PUNC">,</span><span class="WHIT"> 
     136<span class='line'>129</span> 
     137<span class='line'>130</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     138<span class='line'>131</span>    * Comma separated list of plugins to load and initialize for an editor 
     139<span class='line'>132</span>    * instance. 
     140<span class='line'>133</span>    * @type String 
     141<span class='line'>134</span>    * @default 'editingblock,elementspath,sourcearea,toolbar,wysiwygarea' 
     142<span class='line'>135</span>    * @example 
     143<span class='line'>136</span>    * config.plugins = 'editingblock,toolbar,wysiwygarea'; 
     144<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">'editingblock,elementspath,htmldataprocessor,sourcearea,toolbar,wysiwygarea'</span><span class="PUNC">,</span><span class="WHIT"> 
     146<span class='line'>139</span> 
     147<span class='line'>140</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     148<span class='line'>141</span>    * The theme to be used to build the UI. 
     149<span class='line'>142</span>    * @type String 
     150<span class='line'>143</span>    * @default 'default' 
     151<span class='line'>144</span>    * @see CKEDITOR.config.skin 
     152<span class='line'>145</span>    * @example 
     153<span class='line'>146</span>    * config.theme = 'default'; 
     154<span class='line'>147</span>    */</span><span class="WHIT"> 
     155<span class='line'>148</span> </span><span class="WHIT">        </span><span class="NAME">theme</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'default'</span><span class="PUNC">,</span><span class="WHIT"> 
     156<span class='line'>149</span> 
     157<span class='line'>150</span> </span><span class="WHIT">        </span><span class="COMM">/** 
     158<span class='line'>151</span>    * The skin to load. 
     159<span class='line'>152</span>    * @type String 
     160<span class='line'>153</span>    * @default 'default' 
     161<span class='line'>154</span>    * @example 
     162<span class='line'>155</span>    * config.skin = 'v2'; 
     163<span class='line'>156</span>    */</span><span class="WHIT"> 
     164<span class='line'>157</span> </span><span class="WHIT">        </span><span class="NAME">skin</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'default'</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">/** 
     167<span class='line'>160</span>    * The editor width in CSS size format or pixel integer. 
     168<span class='line'>161</span>    * @type String|Number 
     169<span class='line'>162</span>    * @default '100%' 
     170<span class='line'>163</span>    * @example 
     171<span class='line'>164</span>    */</span><span class="WHIT"> 
     172<span class='line'>165</span> </span><span class="WHIT">        </span><span class="NAME">width</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="WHIT"> 
     173<span class='line'>166</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     174<span class='line'>167</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_document.js.html

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

    r2180 r2189  
    381381<span class='line'>374</span> 
    382382<span class='line'>375</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    383 <span class='line'>376</span>            * Removes an attribute from the element. 
    384 <span class='line'>377</span>            * @param {String} name The attribute name. 
    385 <span class='line'>378</span>            * @function 
    386 <span class='line'>379</span>            * @example 
    387 <span class='line'>380</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div class="classA">&lt;/div>' ); 
    388 <span class='line'>381</span>            * element.removeAttribute( 'class' ); 
    389 <span class='line'>382</span>            */</span><span class="WHIT"> 
    390 <span class='line'>383</span> </span><span class="WHIT">                </span><span class="NAME">removeAttribute</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
    391 <span class='line'>384</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    392 <span class='line'>385</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    393 <span class='line'>386</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    394 <span class='line'>387</span> </span><span class="WHIT">                                </span><span class="NAME">this.$.removeAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    395 <span class='line'>388</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    396 <span class='line'>389</span> 
    397 <span class='line'>390</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"> 
    398 <span class='line'>391</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    399 <span class='line'>392</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    400 <span class='line'>393</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT"> 
    401 <span class='line'>394</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'class'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    402 <span class='line'>395</span> </span><span class="WHIT">                                                </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'className'</span><span class="PUNC">;</span><span class="WHIT"> 
    403 <span class='line'>396</span> </span><span class="WHIT">                                        </span><span class="NAME">standard.call</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    404 <span class='line'>397</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    405 <span class='line'>398</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT"> 
    406 <span class='line'>399</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
    407 <span class='line'>400</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="PUNC">;</span><span class="WHIT"> 
    408 <span class='line'>401</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"> 
    409 <span class='line'>402</span> 
    410 <span class='line'>403</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    411 <span class='line'>404</span>            * Sets the value of an element style. 
    412 <span class='line'>405</span>            * @param {String} name The name of the style. The CSS naming notation 
    413 <span class='line'>406</span>            *              must be used (e.g. "background-color"). 
    414 <span class='line'>407</span>            * @param {String} value The value to be set to the style. 
    415 <span class='line'>408</span>            * @example 
    416 <span class='line'>409</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' ); 
    417 <span class='line'>410</span>            * &lt;b>element.setStyle( 'background-color', '#ff0000' )&lt;/b>; 
    418 <span class='line'>411</span>            * &lt;b>element.setStyle( 'margin-top', '10px' )&lt;/b>; 
    419 <span class='line'>412</span>            * &lt;b>element.setStyle( 'float', 'right' )&lt;/b>; 
    420 <span class='line'>413</span>            */</span><span class="WHIT"> 
    421 <span class='line'>414</span> </span><span class="WHIT">                </span><span class="NAME">setStyle</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    422 <span class='line'>415</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    423 <span class='line'>416</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.style</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.cssStyleToDomStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT"> 
    424 <span class='line'>417</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    425 <span class='line'>418</span> 
    426 <span class='line'>419</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    427 <span class='line'>420</span>            * Sets the value of several element styles. 
    428 <span class='line'>421</span>            * @param {Object} stylesPairs An object containing the names and 
    429 <span class='line'>422</span>            *              values of the styles. 
    430 <span class='line'>423</span>            * @example 
    431 <span class='line'>424</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' ); 
    432 <span class='line'>425</span>            * &lt;b>element.setStyles({ 
    433 <span class='line'>426</span>            *     'position' : 'absolute', 
    434 <span class='line'>427</span>            *     'float' : 'right' })&lt;/b>; 
    435 <span class='line'>428</span>            */</span><span class="WHIT"> 
    436 <span class='line'>429</span> </span><span class="WHIT">                </span><span class="NAME">setStyles</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    437 <span class='line'>430</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    438 <span class='line'>431</span> </span><span class="WHIT">                        </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    439 <span class='line'>432</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"> 
    440 <span class='line'>433</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
    441 <span class='line'>434</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    442 <span class='line'>435</span> </span></pre></body></html> 
     383<span class='line'>376</span>            * Removes the element from the document DOM. 
     384<span class='line'>377</span>            * @example 
     385<span class='line'>378</span>            * var element = CKEDITOR.dom.element.getById( 'MyElement' ); 
     386<span class='line'>379</span>            * &lt;b>element.remove()&lt;/b>; 
     387<span class='line'>380</span>            */</span><span class="WHIT"> 
     388<span class='line'>381</span> </span><span class="WHIT">                </span><span class="NAME">remove</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
     389<span class='line'>382</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     390<span class='line'>383</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.parentNode.removeChild</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.$</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     391<span class='line'>384</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     392<span class='line'>385</span> 
     393<span class='line'>386</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     394<span class='line'>387</span>            * Removes an attribute from the element. 
     395<span class='line'>388</span>            * @param {String} name The attribute name. 
     396<span class='line'>389</span>            * @function 
     397<span class='line'>390</span>            * @example 
     398<span class='line'>391</span>            * var element = CKEDITOR.dom.element.createFromHtml( '&lt;div class="classA">&lt;/div>' ); 
     399<span class='line'>392</span>            * element.removeAttribute( 'class' ); 
     400<span class='line'>393</span>            */</span><span class="WHIT"> 
     401<span class='line'>394</span> </span><span class="WHIT">                </span><span class="NAME">removeAttribute</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> 
     402<span class='line'>395</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     403<span class='line'>396</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     404<span class='line'>397</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     405<span class='line'>398</span> </span><span class="WHIT">                                </span><span class="NAME">this.$.removeAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     406<span class='line'>399</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     407<span class='line'>400</span> 
     408<span class='line'>401</span> </span><span class="WHIT">                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.ie</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     409<span class='line'>402</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     410<span class='line'>403</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     411<span class='line'>404</span> </span><span class="WHIT">                                </span><span class="PUNC">{</span><span class="WHIT"> 
     412<span class='line'>405</span> </span><span class="WHIT">                                        </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'class'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     413<span class='line'>406</span> </span><span class="WHIT">                                                </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'className'</span><span class="PUNC">;</span><span class="WHIT"> 
     414<span class='line'>407</span> </span><span class="WHIT">                                        </span><span class="NAME">standard.call</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     415<span class='line'>408</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     416<span class='line'>409</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="WHIT"> 
     417<span class='line'>410</span> </span><span class="WHIT">                        </span><span class="KEYW">else</span><span class="WHIT"> 
     418<span class='line'>411</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">standard</span><span class="PUNC">;</span><span class="WHIT"> 
     419<span class='line'>412</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> 
     420<span class='line'>413</span> 
     421<span class='line'>414</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     422<span class='line'>415</span>            * Sets the value of an element style. 
     423<span class='line'>416</span>            * @param {String} name The name of the style. The CSS naming notation 
     424<span class='line'>417</span>            *              must be used (e.g. "background-color"). 
     425<span class='line'>418</span>            * @param {String} value The value to be set to the style. 
     426<span class='line'>419</span>            * @example 
     427<span class='line'>420</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' ); 
     428<span class='line'>421</span>            * &lt;b>element.setStyle( 'background-color', '#ff0000' )&lt;/b>; 
     429<span class='line'>422</span>            * &lt;b>element.setStyle( 'margin-top', '10px' )&lt;/b>; 
     430<span class='line'>423</span>            * &lt;b>element.setStyle( 'float', 'right' )&lt;/b>; 
     431<span class='line'>424</span>            */</span><span class="WHIT"> 
     432<span class='line'>425</span> </span><span class="WHIT">                </span><span class="NAME">setStyle</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">value</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     433<span class='line'>426</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     434<span class='line'>427</span> </span><span class="WHIT">                        </span><span class="NAME">this.$.style</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.cssStyleToDomStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">value</span><span class="PUNC">;</span><span class="WHIT"> 
     435<span class='line'>428</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     436<span class='line'>429</span> 
     437<span class='line'>430</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     438<span class='line'>431</span>            * Sets the value of several element styles. 
     439<span class='line'>432</span>            * @param {Object} stylesPairs An object containing the names and 
     440<span class='line'>433</span>            *              values of the styles. 
     441<span class='line'>434</span>            * @example 
     442<span class='line'>435</span>            * var element = CKEDITOR.dom.element.getById( 'myElement' ); 
     443<span class='line'>436</span>            * &lt;b>element.setStyles({ 
     444<span class='line'>437</span>            *     'position' : 'absolute', 
     445<span class='line'>438</span>            *     'float' : 'right' })&lt;/b>; 
     446<span class='line'>439</span>            */</span><span class="WHIT"> 
     447<span class='line'>440</span> </span><span class="WHIT">                </span><span class="NAME">setStyles</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     448<span class='line'>441</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     449<span class='line'>442</span> </span><span class="WHIT">                        </span><span class="KEYW">for</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     450<span class='line'>443</span> </span><span class="WHIT">                                </span><span class="NAME">this.setStyle</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">name</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">stylesPairs</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">name</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     451<span class='line'>444</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
     452<span class='line'>445</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     453<span class='line'>446</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__loader.js.html

    r2180 r2189  
    5454<span class='line'> 47</span> </span><span class="WHIT">                </span><span class="STRN">'core/config'</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/ckeditor_base'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    5555<span class='line'> 48</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom'</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"> 
    56 <span class='line'> 49</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom/document'</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'</span><span class="PUNC">,</span><span class="STRN">'core/dom/element'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
     56<span class='line'> 49</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom/document'</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'</span><span class="PUNC">,</span><span class="STRN">'core/dom/element'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/dom/window'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    5757<span class='line'> 50</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom/element'</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'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'core/dom/document'</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/tools'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    5858<span class='line'> 51</span> </span><span class="WHIT">                </span><span class="STRN">'core/dom/node'</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"> 
    5959<span class='line'> 52</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="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    60 <span class='line'> 53</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"> 
    61 <span class='line'> 54</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"> 
    62 <span class='line'> 55</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"> 
    63 <span class='line'> 56</span> </span><span class="WHIT">                </span><span class="STRN">'core/plugins'</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/resourceManager'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
    64 <span class='line'> 57</span> </span><span class="WHIT">                </span><span class="STRN">'core/resourceManager'</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/scriptLoader'</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"> 
    65 <span class='line'> 58</span> </span><span class="WHIT">                </span><span class="STRN">'core/scriptLoader'</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/element'</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"> 
    66 <span class='line'> 59</span> </span><span class="WHIT">                </span><span class="STRN">'core/skins'</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"> 
    67 <span class='line'> 60</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"> 
    68 <span class='line'> 61</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"> 
    69 <span class='line'> 62</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"> 
    70 <span class='line'> 63</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    71 <span class='line'> 64</span> 
    72 <span class='line'> 65</span> </span><span class="WHIT">        </span><span class="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"> 
    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="COMM">// This is a copy of CKEDITOR.basePath, but requires the script having</span><span class="WHIT"> 
    75 <span class='line'> 68</span> </span><span class="WHIT">                </span><span class="COMM">// "_source/core/loader.js".</span><span class="WHIT"> 
    76 <span class='line'> 69</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"> 
    77 <span class='line'> 70</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"> 
    78 <span class='line'> 71</span> 
    79 <span class='line'> 72</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"> 
    80 <span class='line'> 73</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"> 
    81 <span class='line'> 74</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"> 
    82 <span class='line'> 75</span> 
    83 <span class='line'> 76</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"> 
    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">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"> 
    86 <span class='line'> 79</span> 
    87 <span class='line'> 80</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"> 
    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="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"> 
    90 <span class='line'> 83</span> </span><span class="WHIT">                                </span><span class="KEYW">break</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="PUNC">}</span><span class="WHIT"> 
    93 <span class='line'> 86</span> 
    94 <span class='line'> 87</span> </span><span class="WHIT">                </span><span class="COMM">// In IE (only) the script.src string is the raw valued entered in the</span><span class="WHIT"> 
    95 <span class='line'> 88</span> </span><span class="WHIT">                </span><span class="COMM">// HTML. Other browsers return the full resolved URL instead.</span><span class="WHIT"> 
    96 <span class='line'> 89</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"> 
    97 <span class='line'> 90</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    98 <span class='line'> 91</span> </span><span class="WHIT">                        </span><span class="COMM">// Absolute path.</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="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"> 
    100 <span class='line'> 93</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"> 
    101 <span class='line'> 94</span> </span><span class="WHIT">                        </span><span class="COMM">// Relative path.</span><span class="WHIT"> 
    102 <span class='line'> 95</span> </span><span class="WHIT">                        </span><span class="KEYW">else</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="PUNC">}</span><span class="WHIT"> 
    105 <span class='line'> 98</span> 
    106 <span class='line'> 99</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"> 
    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="PUNC">)</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="COMM">/** @lends CKEDITOR.loader */</span><span class="WHIT"> 
    110 <span class='line'>103</span> </span><span class="WHIT">        </span><span class="KEYW">return</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="COMM">/** 
    112 <span class='line'>105</span>            * The list of loaded scripts in their loading order. 
    113 <span class='line'>106</span>            * @type Array 
    114 <span class='line'>107</span>            * @example 
    115 <span class='line'>108</span>            * // Alert the loaded script names. 
    116 <span class='line'>109</span>            * alert( &lt;b>CKEDITOR.loader.loadedScripts&lt;/b> ); 
    117 <span class='line'>110</span>            */</span><span class="WHIT"> 
    118 <span class='line'>111</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"> 
    119 <span class='line'>112</span> 
    120 <span class='line'>113</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    121 <span class='line'>114</span>            * Loads a specific script, including its dependencies. This is not a 
    122 <span class='line'>115</span>            * synchronous loading, which means that the code the be loaded will 
    123 <span class='line'>116</span>            * not necessarily be available after this call. 
    124 <span class='line'>117</span>            * @example 
    125 <span class='line'>118</span>            * CKEDITOR.loader.load( 'core/dom/element' ); 
    126 <span class='line'>119</span>            */</span><span class="WHIT"> 
    127 <span class='line'>120</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"> 
    128 <span class='line'>121</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
    129 <span class='line'>122</span> </span><span class="WHIT">                        </span><span class="COMM">// Check if the script has already been loaded.</span><span class="WHIT"> 
    130 <span class='line'>123</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"> 
    131 <span class='line'>124</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT"> 
    132 <span class='line'>125</span> 
    133 <span class='line'>126</span> </span><span class="WHIT">                        </span><span class="COMM">// Get the script dependencies list.</span><span class="WHIT"> 
    134 <span class='line'>127</span> </span><span class="WHIT">                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">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"> 
    135 <span class='line'>128</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"> 
    136 <span class='line'>129</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"> 
    137 <span class='line'>130</span> 
    138 <span class='line'>131</span> </span><span class="WHIT">                        </span><span class="COMM">// Mark the script as loaded, even before really loading it, to</span><span class="WHIT"> 
    139 <span class='line'>132</span> </span><span class="WHIT">                        </span><span class="COMM">// avoid cross references recursion.</span><span class="WHIT"> 
    140 <span class='line'>133</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"> 
    141 <span class='line'>134</span> 
    142 <span class='line'>135</span> </span><span class="WHIT">                        </span><span class="COMM">// Load all dependencies first.</span><span class="WHIT"> 
    143 <span class='line'>136</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"> 
    144 <span class='line'>137</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"> 
    145 <span class='line'>138</span> 
    146 <span class='line'>139</span> </span><span class="WHIT">                        </span><span class="COMM">// Append this script to the list of loaded scripts.</span><span class="WHIT"> 
    147 <span class='line'>140</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"> 
    148 <span class='line'>141</span> 
    149 <span class='line'>142</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">basePath</span><span class="WHIT"> </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="PUNC">;</span><span class="WHIT"> 
    150 <span class='line'>143</span> 
    151 <span class='line'>144</span> </span><span class="WHIT">                        </span><span class="COMM">// Append the &lt;script> element to the DOM.</span><span class="WHIT"> 
    152 <span class='line'>145</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"> 
    153 <span class='line'>146</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
    154 <span class='line'>147</span> </span><span class="WHIT">                                </span><span class="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"> 
    155 <span class='line'>148</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"> 
    156 <span class='line'>149</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"> 
    157 <span class='line'>150</span> 
    158 <span class='line'>151</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"> 
    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">else</span><span class="WHIT"> 
    161 <span class='line'>154</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"> 
    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="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    164 <span class='line'>157</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"> 
    165 <span class='line'>158</span> 
    166 <span class='line'>159</span> </span><span class="COMM">// Check if any script has been defined for autoload.</span><span class="WHIT"> 
    167 <span class='line'>160</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"> 
    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">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"> 
    170 <span class='line'>163</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"> 
    171 <span class='line'>164</span> </span><span class="PUNC">}</span><span class="WHIT"> 
    172 <span class='line'>165</span> </span></pre></body></html> 
     60<span class='line'> 53</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="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
     61<span class='line'> 54</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"> 
     62<span class='line'> 55</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"> 
     63<span class='line'> 56</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"> 
     64<span class='line'> 57</span> </span><span class="WHIT">                </span><span class="STRN">'core/plugins'</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/resourceManager'</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> 
     65<span class='line'> 58</span> </span><span class="WHIT">                </span><span class="STRN">'core/resourceManager'</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/scriptLoader'</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"> 
     66<span class='line'> 59</span> </span><span class="WHIT">                </span><span class="STRN">'core/scriptLoader'</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/element'</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"> 
     67<span class='line'> 60</span> </span><span class="WHIT">                </span><span class="STRN">'core/skins'</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"> 
     68<span class='line'> 61</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"> 
     69<span class='line'> 62</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"> 
     70<span class='line'> 63</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"> 
     71<span class='line'> 64</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     72<span class='line'> 65</span> 
     73<span class='line'> 66</span> </span><span class="WHIT">        </span><span class="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"> 
     74<span class='line'> 67</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
     75<span class='line'> 68</span> </span><span class="WHIT">                </span><span class="COMM">// This is a copy of CKEDITOR.basePath, but requires the script having</span><span class="WHIT"> 
     76<span class='line'> 69</span> </span><span class="WHIT">                </span><span class="COMM">// "_source/core/loader.js".</span><span class="WHIT"> 
     77<span class='line'> 70</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"> 
     78<span class='line'> 71</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"> 
     79<span class='line'> 72</span> 
     80<span class='line'> 73</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"> 
     81<span class='line'> 74</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"> 
     82<span class='line'> 75</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"> 
     83<span class='line'> 76</span> 
     84<span class='line'> 77</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"> 
     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="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"> 
     87<span class='line'> 80</span> 
     88<span class='line'> 81</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"> 
     89<span class='line'> 82</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     90<span class='line'> 83</span> </span><span class="WHIT">                                </span><span class="NAME">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"> 
     91<span class='line'> 84</span> </span><span class="WHIT">                                </span><span class="KEYW">break</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="PUNC">}</span><span class="WHIT"> 
     94<span class='line'> 87</span> 
     95<span class='line'> 88</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"> 
     96<span class='line'> 89</span> </span><span class="WHIT">                </span><span class="COMM">// HTML. Other browsers return the full resolved URL instead.</span><span class="WHIT"> 
     97<span class='line'> 90</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"> 
     98<span class='line'> 91</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     99<span class='line'> 92</span> </span><span class="WHIT">                        </span><span class="COMM">// Absolute path.</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="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"> 
     101<span class='line'> 94</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"> 
     102<span class='line'> 95</span> </span><span class="WHIT">                        </span><span class="COMM">// Relative path.</span><span class="WHIT"> 
     103<span class='line'> 96</span> </span><span class="WHIT">                        </span><span class="KEYW">else</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="PUNC">}</span><span class="WHIT"> 
     106<span class='line'> 99</span> 
     107<span class='line'>100</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"> 
     108<span class='line'>101</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"> 
     109<span class='line'>102</span> 
     110<span class='line'>103</span> </span><span class="WHIT">        </span><span class="COMM">/** @lends CKEDITOR.loader */</span><span class="WHIT"> 
     111<span class='line'>104</span> </span><span class="WHIT">        </span><span class="KEYW">return</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">/** 
     113<span class='line'>106</span>            * The list of loaded scripts in their loading order. 
     114<span class='line'>107</span>            * @type Array 
     115<span class='line'>108</span>            * @example 
     116<span class='line'>109</span>            * // Alert the loaded script names. 
     117<span class='line'>110</span>            * alert( &lt;b>CKEDITOR.loader.loadedScripts&lt;/b> ); 
     118<span class='line'>111</span>            */</span><span class="WHIT"> 
     119<span class='line'>112</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"> 
     120<span class='line'>113</span> 
     121<span class='line'>114</span> </span><span class="WHIT">                </span><span class="COMM">/** 
     122<span class='line'>115</span>            * Loads a specific script, including its dependencies. This is not a 
     123<span class='line'>116</span>            * synchronous loading, which means that the code the be loaded will 
     124<span class='line'>117</span>            * not necessarily be available after this call. 
     125<span class='line'>118</span>            * @example 
     126<span class='line'>119</span>            * CKEDITOR.loader.load( 'core/dom/element' ); 
     127<span class='line'>120</span>            */</span><span class="WHIT"> 
     128<span class='line'>121</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"> 
     129<span class='line'>122</span> </span><span class="WHIT">                </span><span class="PUNC">{</span><span class="WHIT"> 
     130<span class='line'>123</span> </span><span class="WHIT">                        </span><span class="COMM">// Check if the script has already been loaded.</span><span class="WHIT"> 
     131<span class='line'>124</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"> 
     132<span class='line'>125</span> </span><span class="WHIT">                                </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT"> 
     133<span class='line'>126</span> 
     134<span class='line'>127</span> </span><span class="WHIT">                        </span><span class="COMM">// Get the script dependencies list.</span><span class="WHIT"> 
     135<span class='line'>128</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"> 
     136<span class='line'>129</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"> 
     137<span class='line'>130</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"> 
     138<span class='line'>131</span> 
     139<span class='line'>132</span> </span><span class="WHIT">                        </span><span class="COMM">// Mark the script as loaded, even before really loading it, to</span><span class="WHIT"> 
     140<span class='line'>133</span> </span><span class="WHIT">                        </span><span class="COMM">// avoid cross references recursion.</span><span class="WHIT"> 
     141<span class='line'>134</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"> 
     142<span class='line'>135</span> 
     143<span class='line'>136</span> </span><span class="WHIT">                        </span><span class="COMM">// Load all dependencies first.</span><span class="WHIT"> 
     144<span class='line'>137</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"> 
     145<span class='line'>138</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"> 
     146<span class='line'>139</span> 
     147<span class='line'>140</span> </span><span class="WHIT">                        </span><span class="COMM">// Append this script to the list of loaded scripts.</span><span class="WHIT"> 
     148<span class='line'>141</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"> 
     149<span class='line'>142</span> 
     150<span class='line'>143</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">basePath</span><span class="WHIT"> </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="PUNC">;</span><span class="WHIT"> 
     151<span class='line'>144</span> 
     152<span class='line'>145</span> </span><span class="WHIT">                        </span><span class="COMM">// Append the &lt;script> element to the DOM.</span><span class="WHIT"> 
     153<span class='line'>146</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"> 
     154<span class='line'>147</span> </span><span class="WHIT">                        </span><span class="PUNC">{</span><span class="WHIT"> 
     155<span class='line'>148</span> </span><span class="WHIT">                                </span><span class="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"> 
     156<span class='line'>149</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"> 
     157<span class='line'>150</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"> 
     158<span class='line'>151</span> 
     159<span class='line'>152</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"> 
     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">else</span><span class="WHIT"> 
     162<span class='line'>155</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"> 
     163<span class='line'>156</span> </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="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     165<span class='line'>158</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"> 
     166<span class='line'>159</span> 
     167<span class='line'>160</span> </span><span class="COMM">// Check if any script has been defined for autoload.</span><span class="WHIT"> 
     168<span class='line'>161</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"> 
     169<span class='line'>162</span> </span><span class="PUNC">{</span><span class="WHIT"> 
     170<span class='line'>163</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"> 
     171<span class='line'>164</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"> 
     172<span class='line'>165</span> </span><span class="PUNC">}</span><span class="WHIT"> 
     173<span class='line'>166</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_lang_en.js.html

    r2180 r2189  
    4444<span class='line'> 37</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    4545<span class='line'> 38</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    46 <span class='line'> 39</span>    * The language reading direction. Possible values are "rtl" for "Right to 
    47 <span class='line'> 40</span>    * Left" languages (like Arabic) and "ltr" for "Left to Right" languages (like 
    48 <span class='line'> 41</span>    * English). 
     46<span class='line'> 39</span>    * The language reading direction. Possible values are "rtl" for 
     47<span class='line'> 40</span>    * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right 
     48<span class='line'> 41</span>    * languages (like English). 
    4949<span class='line'> 42</span>    * @default 'ltr' 
    5050<span class='line'> 43</span>    */</span><span class="WHIT"> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__editingblock_plugin.js.html

    r2180 r2189  
    128128<span class='line'>121</span> </span><span class="WHIT">                        </span><span class="NAME">data</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">currentMode.getData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    129129<span class='line'>122</span> </span><span class="WHIT">                        </span><span class="NAME">currentMode.unload</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">holderElement</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    130 <span class='line'>123</span> </span><span class="WHIT">                        </span><span class="NAME">holderElement.setHtml</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">''</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    131 <span class='line'>124</span> </span><span class="WHIT">                        </span><span class="NAME">this.mode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT"> 
    132 <span class='line'>125</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
    133 <span class='line'>126</span> 
    134 <span class='line'>127</span> </span><span class="WHIT">                </span><span class="COMM">// Load required mode.</span><span class="WHIT"> 
    135 <span class='line'>128</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">modeEditor</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getMode</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">mode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    136 <span class='line'>129</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">modeEditor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    137 <span class='line'>130</span> </span><span class="WHIT">                        </span><span class="KEYW">throw</span><span class="WHIT"> </span><span class="STRN">'[CKEDITOR.editor.setMode] Unknown mode "'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">mode</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'".'</span><span class="PUNC">;</span><span class="WHIT"> 
    138 <span class='line'>131</span> 
    139 <span class='line'>132</span> </span><span class="WHIT">                </span><span class="NAME">modeEditor.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">holderElement</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"> </span><span class="NAME">this.getData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </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="NAME">this.mode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">mode</span><span class="PUNC">;</span><span class="WHIT"> 
    142 <span class='line'>135</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    143 <span class='line'>136</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    144 <span class='line'>137</span> 
    145 <span class='line'>138</span> </span><span class="COMM">/** 
    146 <span class='line'>139</span>  * The mode to load at the editor startup. It depends on the plugins 
    147 <span class='line'>140</span>  * loaded. By default, the "wysiwyg" and "source" modes are available. 
    148 <span class='line'>141</span>  * @type String 
    149 <span class='line'>142</span>  * @default 'wysiwyg' 
    150 <span class='line'>143</span>  * @example 
    151 <span class='line'>144</span>  * config.toolbarLocation = 'source'; 
    152 <span class='line'>145</span>  */</span><span class="WHIT"> 
    153 <span class='line'>146</span> </span><span class="NAME">CKEDITOR.config.startupMode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'wysiwyg'</span><span class="PUNC">;</span><span class="WHIT"> 
    154 <span class='line'>147</span> </span></pre></body></html> 
     130<span class='line'>123</span> </span><span class="WHIT">                        </span><span class="NAME">this.mode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">''</span><span class="PUNC">;</span><span class="WHIT"> 
     131<span class='line'>124</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
     132<span class='line'>125</span> 
     133<span class='line'>126</span> </span><span class="WHIT">                </span><span class="NAME">holderElement.setHtml</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">''</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     134<span class='line'>127</span> 
     135<span class='line'>128</span> </span><span class="WHIT">                </span><span class="COMM">// Load required mode.</span><span class="WHIT"> 
     136<span class='line'>129</span> </span><span class="WHIT">                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">modeEditor</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">getMode</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">mode</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     137<span class='line'>130</span> </span><span class="WHIT">                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">modeEditor</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     138<span class='line'>131</span> </span><span class="WHIT">                        </span><span class="KEYW">throw</span><span class="WHIT"> </span><span class="STRN">'[CKEDITOR.editor.setMode] Unknown mode "'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">mode</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'".'</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="NAME">modeEditor.load</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">holderElement</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"> </span><span class="NAME">this.getData</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     141<span class='line'>134</span> 
     142<span class='line'>135</span> </span><span class="WHIT">                </span><span class="NAME">this.mode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">mode</span><span class="PUNC">;</span><span class="WHIT"> 
     143<span class='line'>136</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     144<span class='line'>137</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"> 
     145<span class='line'>138</span> 
     146<span class='line'>139</span> </span><span class="COMM">/** 
     147<span class='line'>140</span>  * The mode to load at the editor startup. It depends on the plugins 
     148<span class='line'>141</span>  * loaded. By default, the "wysiwyg" and "source" modes are available. 
     149<span class='line'>142</span>  * @type String 
     150<span class='line'>143</span>  * @default 'wysiwyg' 
     151<span class='line'>144</span>  * @example 
     152<span class='line'>145</span>  * config.toolbarLocation = 'source'; 
     153<span class='line'>146</span>  */</span><span class="WHIT"> 
     154<span class='line'>147</span> </span><span class="NAME">CKEDITOR.config.startupMode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'wysiwyg'</span><span class="PUNC">;</span><span class="WHIT"> 
     155<span class='line'>148</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__sourcearea_plugin.js.html

    r2180 r2189  
    4949<span class='line'> 42</span> </span><span class="WHIT">                                                        </span><span class="NAME">textarea.addClass</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'cke_source'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    5050<span class='line'> 43</span> </span><span class="WHIT">                                                        </span><span class="NAME">textarea.setStyles</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="NAME">width</span><span class="WHIT">       </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'500px'</span><span class="PUNC">,</span><span class="WHIT"> 
    52 <span class='line'> 45</span> </span><span class="WHIT">                                                                </span><span class="NAME">height</span><span class="WHIT">      </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'100px'</span><span class="PUNC">,</span><span class="WHIT"> 
     51<span class='line'> 44</span> </span><span class="WHIT">                                                                </span><span class="NAME">width</span><span class="WHIT">       </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="PUNC">,</span><span class="WHIT"> 
     52<span class='line'> 45</span> </span><span class="WHIT">                                                                </span><span class="NAME">height</span><span class="WHIT">      </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="PUNC">,</span><span class="WHIT"> 
    5353<span class='line'> 46</span> </span><span class="WHIT">                                                                </span><span class="NAME">resize</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"> 
    5454<span class='line'> 47</span> </span><span class="WHIT">                                                                </span><span class="NAME">outline</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"> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__wysiwygarea_plugin.js.html

    r2180 r2189  
    3838<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">'editingBlockReady'</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"> 
    3939<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">var</span><span class="WHIT"> </span><span class="NAME">mainElement</span><span class="PUNC">;</span><span class="WHIT"> 
    41 <span class='line'> 34</span> 
    42 <span class='line'> 35</span> </span><span class="WHIT">                                </span><span class="NAME">editor.addMode</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'wysiwyg'</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="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">holderElement</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"> 
    45 <span class='line'> 38</span> </span><span class="WHIT">                                                </span><span class="PUNC">{</span><span class="WHIT"> 
    46 <span class='line'> 39</span> </span><span class="WHIT">                                                        </span><span class="NAME">mainElement</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">holderElement</span><span class="PUNC">;</span><span class="WHIT"> 
    47 <span class='line'> 40</span> </span><span class="WHIT">                                                        </span><span class="NAME">this.loadData</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"> 
    48 <span class='line'> 41</span> </span><span class="WHIT">                                                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    49 <span class='line'> 42</span> 
    50 <span class='line'> 43</span> </span><span class="WHIT">                                                </span><span class="NAME">loadData</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"> 
    51 <span class='line'> 44</span> </span><span class="WHIT">                                                </span><span class="PUNC">{</span><span class="WHIT"> 
    52 <span class='line'> 45</span> </span><span class="WHIT">                                                        </span><span class="NAME">mainElement.setHtml</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">editor.dataProcessor.toHtml</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"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    53 <span class='line'> 46</span> </span><span class="WHIT">                                                </span><span class="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="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"> 
    56 <span class='line'> 49</span> </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">editor.dataProcessor.toDataFormat</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">mainElement</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="PUNC">}</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">mainElement</span><span class="PUNC">,</span><span class="WHIT"> 
     41<span class='line'> 34</span> </span><span class="WHIT">                                        </span><span class="NAME">iframe</span><span class="PUNC">;</span><span class="WHIT"> 
     42<span class='line'> 35</span> 
     43<span class='line'> 36</span> </span><span class="WHIT">                                </span><span class="COMM">// The following information is needed for IE only.</span><span class="WHIT"> 
     44<span class='line'> 37</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">isCustomDomain</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">document.domain</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">window.location.hostname</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="COMM">// Creates the iframe that holds the editable document.</span><span class="WHIT"> 
     47<span class='line'> 40</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">createIFrame</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"> 
     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">iframe</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">iframe.remove</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     51<span class='line'> 44</span> 
     52<span class='line'> 45</span> </span><span class="WHIT">                                        </span><span class="NAME">iframe</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'iframe'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     53<span class='line'> 46</span> </span><span class="WHIT">                                        </span><span class="NAME">iframe.setAttributes</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="NAME">frameBorder</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"> 
     55<span class='line'> 48</span> </span><span class="WHIT">                                                </span><span class="NAME">allowTransparency</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="WHIT"> </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">iframe.setStyles</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">width</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="PUNC">,</span><span class="WHIT"> 
     58<span class='line'> 51</span> </span><span class="WHIT">                                                </span><span class="NAME">height</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    5959<span class='line'> 52</span> 
    60 <span class='line'> 53</span> </span><span class="WHIT">                                                </span><span class="NAME">unload</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">holderElement</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="PUNC">{</span><span class="WHIT"> 
    62 <span class='line'> 55</span> </span><span class="WHIT">                                                        </span><span class="NAME">mainElement</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"> 
    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="PUNC">}</span><span class="PUNC">)</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="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    66 <span class='line'> 59</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT"> 
    67 <span class='line'> 60</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    68 <span class='line'> 61</span> </span></pre></body></html> 
     60<span class='line'> 53</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"> 
     61<span class='line'> 54</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
     62<span class='line'> 55</span> </span><span class="WHIT">                                                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">isCustomDomain</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="COMM">// The document domain must be set within the src</span><span class="WHIT"> 
     65<span class='line'> 58</span> </span><span class="WHIT">                                                        </span><span class="COMM">// attribute.</span><span class="WHIT"> 
     66<span class='line'> 59</span> </span><span class="WHIT">                                                        </span><span class="NAME">iframe.setAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'src'</span><span class="PUNC">,</span><span class="WHIT"> 
     67<span class='line'> 60</span> </span><span class="WHIT">                                                                </span><span class="STRN">'javascript:void( (function(){'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     68<span class='line'> 61</span> </span><span class="WHIT">                                                                        </span><span class="STRN">'document.open();'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     69<span class='line'> 62</span> </span><span class="WHIT">                                                                        </span><span class="STRN">'document.domain="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">document.domain</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"> 
     70<span class='line'> 63</span> </span><span class="WHIT">                                                                        </span><span class="STRN">'document.write( window.parent._cke_htmlToLoad_'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">editor.name</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"> 
     71<span class='line'> 64</span> </span><span class="WHIT">                                                                        </span><span class="STRN">'document.close();'</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="STRN">'window.parent._cke_htmlToLoad_'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">editor.name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">' = null;'</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="STRN">'})() )'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     74<span class='line'> 67</span> </span><span class="WHIT">                                                </span><span class="PUNC">}</span><span class="WHIT"> 
     75<span class='line'> 68</span> </span><span class="WHIT">                                                </span><span class="KEYW">else</span><span class="WHIT"> 
     76<span class='line'> 69</span> </span><span class="WHIT">                                                        </span><span class="COMM">// To avoid HTTPS warnings.</span><span class="WHIT"> 
     77<span class='line'> 70</span> </span><span class="WHIT">                                                        </span><span class="NAME">iframe.setAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'src'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'javascript:void(0)'</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="WHIT"> 
     79<span class='line'> 72</span> 
     80<span class='line'> 73</span> </span><span class="WHIT">                                        </span><span class="COMM">// Append the new IFRAME to the main element. For IE, it</span><span class="WHIT"> 
     81<span class='line'> 74</span> </span><span class="WHIT">                                        </span><span class="COMM">// must be done after setting the "src", to avoid the</span><span class="WHIT"> 
     82<span class='line'> 75</span> </span><span class="WHIT">                                        </span><span class="COMM">// "secure/unsecure" message under HTTPS.</span><span class="WHIT"> 
     83<span class='line'> 76</span> </span><span class="WHIT">                                        </span><span class="NAME">mainElement.append</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">iframe</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     84<span class='line'> 77</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     85<span class='line'> 78</span> 
     86<span class='line'> 79</span> </span><span class="WHIT">                                </span><span class="COMM">// The script that is appended to the data being loaded. It</span><span class="WHIT"> 
     87<span class='line'> 80</span> </span><span class="WHIT">                                </span><span class="COMM">// enables editing, and makes some</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">activationScript</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="STRN">'&lt;script id="cke_actscrpt" type="text/javascript">'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     90<span class='line'> 83</span> </span><span class="WHIT">                                                </span><span class="STRN">'window.onload = function()'</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="STRN">'{'</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">// Remove this script from the DOM.</span><span class="WHIT"> 
     93<span class='line'> 86</span> </span><span class="WHIT">                                                        </span><span class="STRN">'var s = document.getElementById( "cke_actscrpt" );'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     94<span class='line'> 87</span> </span><span class="WHIT">                                                        </span><span class="STRN">'s.parentNode.removeChild( s );'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     95<span class='line'> 88</span> 
     96<span class='line'> 89</span> </span><span class="WHIT">                                                        </span><span class="COMM">// Call the temporary function for the editing</span><span class="WHIT"> 
     97<span class='line'> 90</span> </span><span class="WHIT">                                                        </span><span class="COMM">// boostrap.</span><span class="WHIT"> 
     98<span class='line'> 91</span> </span><span class="WHIT">                                                        </span><span class="STRN">'window.parent.CKEDITOR.instances.'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">editor.name</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'._.contentDomReady( window );'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     99<span class='line'> 92</span> </span><span class="WHIT">                                                </span><span class="STRN">'}'</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="STRN">'&lt;/script>'</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">// Editing area bootstrap code.</span><span class="WHIT"> 
     103<span class='line'> 96</span> </span><span class="WHIT">                                </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">contentDomReady</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domWindow</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     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="KEYW">delete</span><span class="WHIT"> </span><span class="NAME">editor._.contentDomReady</span><span class="PUNC">;</span><span class="WHIT"> 
     106<span class='line'> 99</span> 
     107<span class='line'>100</span> </span><span class="WHIT">                                        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">domDocument</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domWindow.document</span><span class="PUNC">,</span><span class="WHIT"> 
     108<span class='line'>101</span> </span><span class="WHIT">                                                </span><span class="NAME">body</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">domDocument.body</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="NAME">body.spellcheck</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">editor.config.disableNativeSpellChecker</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">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"> 
     113<span class='line'>106</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
     114<span class='line'>107</span> </span><span class="WHIT">                                                </span><span class="COMM">// Disable and re-enable the body to avoid IE from</span><span class="WHIT"> 
     115<span class='line'>108</span> </span><span class="WHIT">                                                </span><span class="COMM">// taking the editing focus at startup. (#141 / #523)</span><span class="WHIT"> 
     116<span class='line'>109</span> </span><span class="WHIT">                                                </span><span class="NAME">body.disabled</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"> 
     117<span class='line'>110</span> </span><span class="WHIT">                                                </span><span class="NAME">body.contentEditable</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"> 
     118<span class='line'>111</span> </span><span class="WHIT">                                                </span><span class="NAME">body.removeAttribute</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'disabled'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     119<span class='line'>112</span> </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="KEYW">else</span><span class="WHIT"> 
     121<span class='line'>114</span> </span><span class="WHIT">                                                </span><span class="NAME">domDocument.designMode</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"> 
     122<span class='line'>115</span> 
     123<span class='line'>116</span> </span><span class="WHIT">                                        </span><span class="COMM">// IE, Opera and Safari may not support it and throw</span><span class="WHIT"> 
     124<span class='line'>117</span> </span><span class="WHIT">                                        </span><span class="COMM">// errors.</span><span class="WHIT"> 
     125<span class='line'>118</span> </span><span class="WHIT">                                        </span><span class="KEYW">try</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">domDocument.execCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'enableObjectResizing'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">editor.config.disableObjectResizing</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">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"> 
     126<span class='line'>119</span> </span><span class="WHIT">                                        </span><span class="KEYW">try</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">domDocument.execCommand</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'enableInlineTableEditing'</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">editor.config.disableNativeTableHandles</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">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"> 
     127<span class='line'>120</span> 
     128<span class='line'>121</span> </span><span class="WHIT">                                        </span><span class="NAME">editor.window</span><span class="WHIT">       </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.window</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domWindow</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     129<span class='line'>122</span> </span><span class="WHIT">                                        </span><span class="NAME">editor.document</span><span class="WHIT">     </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.document</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">domDocument</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     130<span class='line'>123</span> 
     131<span class='line'>124</span> </span><span class="WHIT">                                        </span><span class="NAME">editor.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'contentDom'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     132<span class='line'>125</span> </span><span class="WHIT">                                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
     133<span class='line'>126</span> 
     134<span class='line'>127</span> </span><span class="WHIT">                                </span><span class="NAME">editor.addMode</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'wysiwyg'</span><span class="PUNC">,</span><span class="WHIT"> 
     135<span class='line'>128</span> </span><span class="WHIT">                                        </span><span class="PUNC">{</span><span class="WHIT"> 
     136<span class='line'>129</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">holderElement</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"> 
     137<span class='line'>130</span> </span><span class="WHIT">                                                </span><span class="PUNC">{</span><span class="WHIT"> 
     138<span class='line'>131</span> </span><span class="WHIT">                                                        </span><span class="NAME">mainElement</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">holderElement</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">// Create the iframe at load for all browsers</span><span class="WHIT"> 
     141<span class='line'>134</span> </span><span class="WHIT">                                                        </span><span class="COMM">// except FF and IE with custom domain.</span><span class="WHIT"> 
     142<span class='line'>135</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">isCustomDomain</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">CKEDITOR.env.gecko</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
     143<span class='line'>136</span> </span><span class="WHIT">                                                                </span><span class="NAME">createIFrame</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     144<span class='line'>137</span> 
     145<span class='line'>138</span> </span><span class="WHIT">                                                        </span><span class="NAME">this.loadData</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"> 
     146<span class='line'>139</span> </span><span class="WHIT">                                                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     147<span class='line'>140</span> 
     148<span class='line'>141</span> </span><span class="WHIT">                                                </span><span class="NAME">loadData</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"> 
     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="NAME">data</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="NAME">CKEDITOR.config.docType</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="STRN">'&lt;html dir="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.config.contentLangDirection</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"> 
     153<span class='line'>146</span> </span><span class="WHIT">                                                                </span><span class="STRN">'&lt;head>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     154<span class='line'>147</span> </span><span class="WHIT">                                                                        </span><span class="STRN">'&lt;link href="'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.config.contentsCss</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'" type="text/css" rel="stylesheet" _fcktemp="true"/>'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> 
     155<span class='line'>148</span> </span><span class="WHIT">                                                                </span><span class="STRN">'&lt;/head>'</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="STRN">'&lt;body>'</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="NAME">editor.dataProcessor.toHtml</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"> </span><span class="PUNC">+</span><span class="WHIT"> 
     158<span class='line'>151</span> </span><span class="WHIT">                                                                </span><span class="STRN">'&lt;/body>'</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="STRN">'&lt;/html>'</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="NAME">activationScript</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">// For custom domain in IE, set the global variable</span><span class="WHIT"> 
     163<span class='line'>156</span> </span><span class="WHIT">                                                        </span><span class="COMM">// that will temporarily hold the editor data. This</span><span class="WHIT"> 
     164<span class='line'>157</span> </span><span class="WHIT">                                                        </span><span class="COMM">// reference will be used in the ifram src.</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">isCustomDomain</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">window</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="STRN">'_cke_htmlToLoad_'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">editor.name</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">data</span><span class="PUNC">;</span><span class="WHIT"> 
     167<span class='line'>160</span> 
     168<span class='line'>161</span> </span><span class="WHIT">                                                        </span><span class="NAME">editor._.contentDomReady</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">contentDomReady</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">// We need to recreate the iframe in FF for every</span><span class="WHIT"> 
     171<span class='line'>164</span> </span><span class="WHIT">                                                        </span><span class="COMM">// data load, otherwise the following spellcheck</span><span class="WHIT"> 
     172<span class='line'>165</span> </span><span class="WHIT">                                                        </span><span class="COMM">// and execCommand features will be active only for</span><span class="WHIT"> 
     173<span class='line'>166</span> </span><span class="WHIT">                                                        </span><span class="COMM">// the first time.</span><span class="WHIT"> 
     174<span class='line'>167</span> </span><span class="WHIT">                                                        </span><span class="COMM">// The same is valid for IE with custom domain,</span><span class="WHIT"> 
     175<span class='line'>168</span> </span><span class="WHIT">                                                        </span><span class="COMM">// because the iframe src must be reset every time.</span><span class="WHIT"> 
     176<span class='line'>169</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">isCustomDomain</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.env.gecko</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="NAME">createIFrame</span><span class="PUNC">(</span><span class="PUNC">)</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="COMM">// For custom domain in IE, the data loading is</span><span class="WHIT"> 
     180<span class='line'>173</span> </span><span class="WHIT">                                                        </span><span class="COMM">// done through the src attribute of the iframe.</span><span class="WHIT"> 
     181<span class='line'>174</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">isCustomDomain</span><span class="WHIT"> </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="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">iframe.$.contentWindow.document</span><span class="PUNC">;</span><span class="WHIT"> 
     184<span class='line'>177</span> </span><span class="WHIT">                                                                </span><span class="NAME">doc.open</span><span class="PUNC">(</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="NAME">doc.write</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"> 
     186<span class='line'>179</span> </span><span class="WHIT">                                                                </span><span class="NAME">doc.close</span><span class="PUNC">(</span><span class="PUNC">)</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="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
     189<span class='line'>182</span> 
     190<span class='line'>183</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"> 
     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="KEYW">return</span><span class="WHIT"> </span><span class="NAME">editor.dataProcessor.toDataFormat</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.dom.element</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">iframe.$.contentWindow.document.body</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="NAME">unload</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">holderElement</span><span class="WHIT"> </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="WHIT"> 
     197<span class='line'>190</span> </span><span class="WHIT">                                                        </span><span class="NAME">editor.window</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">editor.document</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">iframe</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">mainElement</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"> 
     198<span class='line'>191</span> 
     199<span class='line'>192</span> </span><span class="WHIT">                                                        </span><span class="NAME">editor.fire</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'contentDomUnload'</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     200<span class='line'>193</span> </span><span class="WHIT">                                                </span><span class="PUNC">}</span><span class="WHIT"> 
     201<span class='line'>194</span> </span><span class="WHIT">                                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     202<span class='line'>195</span> </span><span class="WHIT">                        </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     203<span class='line'>196</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT"> 
     204<span class='line'>197</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     205<span class='line'>198</span> 
     206<span class='line'>199</span> </span><span class="COMM">/** 
     207<span class='line'>200</span>  * Disables the ability of resize objects (image and tables) in the editing 
     208<span class='line'>201</span>  * area 
     209<span class='line'>202</span>  * @type Boolean 
     210<span class='line'>203</span>  * @default false 
     211<span class='line'>204</span>  * @example 
     212<span class='line'>205</span>  * config.disableObjectResizing = true; 
     213<span class='line'>206</span>  */</span><span class="WHIT"> 
     214<span class='line'>207</span> </span><span class="NAME">CKEDITOR.config.disableObjectResizing</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"> 
     215<span class='line'>208</span> 
     216<span class='line'>209</span> </span><span class="COMM">/** 
     217<span class='line'>210</span>  * Disables the "table tools" offered natively by the browser (currently 
     218<span class='line'>211</span>  * Firefox only) to make quick table editing operations, like adding or 
     219<span class='line'>212</span>  * deleting rows and columns. 
     220<span class='line'>213</span>  * @type Boolean 
     221<span class='line'>214</span>  * @default true 
     222<span class='line'>215</span>  * @example 
     223<span class='line'>216</span>  * config.disableNativeTableHandles = false; 
     224<span class='line'>217</span>  */</span><span class="WHIT"> 
     225<span class='line'>218</span> </span><span class="NAME">CKEDITOR.config.disableNativeTableHandles</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"> 
     226<span class='line'>219</span> 
     227<span class='line'>220</span> </span><span class="COMM">/** 
     228<span class='line'>221</span>  * Disables the built-in spell checker while typing natively available in the 
     229<span class='line'>222</span>  * browser (currently Firefox and Safari only).&lt;br />&lt;br /> 
     230<span class='line'>223</span>  * 
     231<span class='line'>224</span>  * Even if word suggestions will not appear in the FCKeditor context menu, this 
     232<span class='line'>225</span>  * feature is useful to help quickly identifying misspelled words.&lt;br />&lt;br /> 
     233<span class='line'>226</span>  * 
     234<span class='line'>227</span>  * This setting is currently compatible with Firefox only due to limitations in 
     235<span class='line'>228</span>  * other browsers. 
     236<span class='line'>229</span>  * @type Boolean 
     237<span class='line'>230</span>  * @default true 
     238<span class='line'>231</span>  * @example 
     239<span class='line'>232</span>  * config.disableNativeSpellChecker = false; 
     240<span class='line'>233</span>  */</span><span class="WHIT"> 
     241<span class='line'>234</span> </span><span class="NAME">CKEDITOR.config.disableNativeSpellChecker</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"> 
     242<span class='line'>235</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_source/core/config.js

    r2180 r2189  
    6666 
    6767        /** 
     68         * The CSS file to be used to apply style to the contents. It should 
     69         * reflect the CSS used in the final pages where the contents are to be 
     70         * used. 
     71         * @type String 
     72         * @default '&lt;CKEditor folder&gt;/contents.css' 
     73         * @example 
     74         * config.contentsCss = '/css/mysitestyles.css'; 
     75         */ 
     76        contentsCss : CKEDITOR.basePath + 'contents.css', 
     77 
     78        /** 
     79         * The writting direction of the language used to write the editor 
     80         * contents. Allowed values are 'ltr' for Left-To-Right language (like 
     81         * English), or 'rtl' for Right-To-Left languages (like Arabic). 
     82         * @default 'ltr' 
     83         * @type String 
     84         * @example 
     85         * config.contentsLangDirection = 'rtl'; 
     86         */ 
     87        contentsLangDirection : 'ltr', 
     88 
     89        /** 
    6890         * A comma separated list of plugins that are not related to editor 
    6991         * instances. Reserved to plugins that extend the core code only.<br /><br /> 
     
    7193         * There are no ways to override this setting, except by editing the source 
    7294         * code of CKEditor (_source/core/config.js). 
     95         * @type String 
    7396         * @example 
    7497         */ 
    7598        corePlugins : '', 
     99 
     100        /** 
     101         * Sets the doctype to be used when loading the editor content as HTML. 
     102         * @type String 
     103         * @default '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;' 
     104         * @example 
     105         * // Set the doctype to the HTML 4 (quirks) mode. 
     106         * config.docType = '&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;'; 
     107         */ 
     108        docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 
     109 
     110        /** 
     111         * Indicates whether the contents to be edited are being inputted as a full 
     112         * HTML page. A full page includes the &lt;html&gt;, &lt;head&gt; and 
     113         * &lt;body&gt; tags. The final output will also reflect this setting, 
     114         * including the &lt;body&gt; contents only if this setting is disabled. 
     115         * @type Boolean 
     116         * @default false 
     117         * @example 
     118         * config.fullPage = true; 
     119         */ 
     120        fullPage : false, 
     121 
     122        /** 
     123         * The editor height, in CSS size format or pixel integer. 
     124         * @type String|Number 
     125         * @default '15em' 
     126         * @example 
     127         */ 
     128        height : '15em', 
    76129 
    77130        /** 
     
    102155         * config.skin = 'v2'; 
    103156         */ 
    104         skin : 'default' 
     157        skin : 'default', 
     158 
     159        /** 
     160         * The editor width in CSS size format or pixel integer. 
     161         * @type String|Number 
     162         * @default '100%' 
     163         * @example 
     164         */ 
     165        width : '100%' 
    105166}; 
  • CKEditor/branches/prototype/_source/core/dom/document.js

    r2180 r2189  
    2828 * Represents a DOM document. 
    2929 * @constructor 
    30  * @param {Object} document A native DOM document. 
     30 * @param {Object} domDocument A native DOM document. 
    3131 * @example 
    32  * // Create a new &lt;span&gt; element. 
    3332 * var document = new CKEDITOR.dom.document( document ); 
    3433 */ 
    35 CKEDITOR.dom.document = function( document ) 
     34CKEDITOR.dom.document = function( domDocument ) 
    3635{ 
    37         this.$ = document; 
     36        this.$ = domDocument; 
    3837}; 
    3938 
  • CKEditor/branches/prototype/_source/core/dom/element.js

    r2180 r2189  
    374374 
    375375                /** 
     376                 * Removes the element from the document DOM. 
     377                 * @example 
     378                 * var element = CKEDITOR.dom.element.getById( 'MyElement' ); 
     379                 * <b>element.remove()</b>; 
     380                 */ 
     381                remove : function() 
     382                { 
     383                        this.$.parentNode.removeChild( this.$ ); 
     384                }, 
     385 
     386                /** 
    376387                 * Removes an attribute from the element. 
    377388                 * @param {String} name The attribute name. 
  • CKEditor/branches/prototype/_source/core/loader.js

    r2180 r2189  
    4747                'core/config'                   : [ 'core/ckeditor_base' ], 
    4848                'core/dom'                              : [], 
    49                 'core/dom/document'             : [ 'core/dom','core/dom/element' ], 
     49                'core/dom/document'             : [ 'core/dom','core/dom/element', 'core/dom/window' ], 
    5050                'core/dom/element'              : [ 'core/dom', 'core/dom/document', 'core/dom/node', 'core/tools' ], 
    5151                'core/dom/node'                 : [], 
    5252                'core/dom/text'                 : [ 'core/dom/node' ], 
     53                'core/dom/window'               : [], 
    5354                'core/editor'                   : [ 'core/config', 'core/event', 'core/plugins', 'core/skins', 'core/themes', 'core/tools' ], 
    5455                'core/env'                              : [], 
  • CKEditor/branches/prototype/_source/lang/en.js

    r2180 r2189  
    3737{ 
    3838        /** 
    39          * The language reading direction. Possible values are "rtl" for "Right to 
    40          * Left" languages (like Arabic) and "ltr" for "Left to Right" languages (like 
    41          * English). 
     39         * The language reading direction. Possible values are "rtl" for 
     40         * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right 
     41         * languages (like English). 
    4242         * @default 'ltr' 
    4343         */ 
  • CKEditor/branches/prototype/_source/plugins/editingblock/plugin.js

    r2180 r2189  
    121121                        data = currentMode.getData(); 
    122122                        currentMode.unload( holderElement ); 
    123                         holderElement.setHtml( '' ); 
    124123                        this.mode = ''; 
    125124                } 
     125 
     126                holderElement.setHtml( '' ); 
    126127 
    127128                // Load required mode. 
  • CKEditor/branches/prototype/_source/plugins/sourcearea/plugin.js

    r2180 r2189  
    4242                                                        textarea.addClass( 'cke_source' ); 
    4343                                                        textarea.setStyles({ 
    44                                                                 width   : '500px', 
    45                                                                 height  : '100px', 
     44                                                                width   : '100%', 
     45                                                                height  : '100%', 
    4646                                                                resize  : 'none', 
    4747                                                                outline : 'none', 
  • CKEditor/branches/prototype/_source/plugins/wysiwygarea/plugin.js

    r2180 r2189  
    3131                editor.on( 'editingBlockReady', function() 
    3232                        { 
    33                                 var mainElement; 
     33                                var mainElement, 
     34                                        iframe; 
     35 
     36                                // The following information is needed for IE only. 
     37                                var isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname; 
     38 
     39                                // Creates the iframe that holds the editable document. 
     40                                var createIFrame = function() 
     41                                { 
     42                                        if ( iframe ) 
     43                                                iframe.remove(); 
     44 
     45                                        iframe = new CKEDITOR.dom.element( 'iframe' ); 
     46                                        iframe.setAttributes({ 
     47                                                frameBorder : 0, 
     48                                                allowTransparency : true }); 
     49                                        iframe.setStyles({ 
     50                                                width : '100%', 
     51                                                height : '100%' }); 
     52 
     53                                        if ( CKEDITOR.env.ie ) 
     54                                        { 
     55                                                if ( isCustomDomain ) 
     56                                                { 
     57                                                        // The document domain must be set within the src 
     58                                                        // attribute. 
     59                                                        iframe.setAttribute( 'src', 
     60                                                                'javascript:void( (function(){' + 
     61                                                                        'document.open();' + 
     62                                                                        'document.domain="' + document.domain + '";' + 
     63                                                                        'document.write( window.parent._cke_htmlToLoad_' + editor.name + ' );' + 
     64                                                                        'document.close();' + 
     65                                                                        'window.parent._cke_htmlToLoad_' + editor.name + ' = null;' + 
     66                                                                '})() )' ); 
     67                                                } 
     68                                                else 
     69                                                        // To avoid HTTPS warnings. 
     70                                                        iframe.setAttribute( 'src', 'javascript:void(0)' ); 
     71                                        } 
     72 
     73                                        // Append the new IFRAME to the main element. For IE, it 
     74                                        // must be done after setting the "src", to avoid the 
     75                                        // "secure/unsecure" message under HTTPS. 
     76                                        mainElement.append( iframe ); 
     77                                }; 
     78 
     79                                // The script that is appended to the data being loaded. It 
     80                                // enables editing, and makes some 
     81                                var activationScript = 
     82                                        '<script id="cke_actscrpt" type="text/javascript">' + 
     83                                                'window.onload = function()' + 
     84                                                '{' + 
     85                                                        // Remove this script from the DOM. 
     86                                                        'var s = document.getElementById( "cke_actscrpt" );' + 
     87                                                        's.parentNode.removeChild( s );' + 
     88 
     89                                                        // Call the temporary function for the editing 
     90                                                        // boostrap. 
     91                                                        'window.parent.CKEDITOR.instances.' + editor.name + '._.contentDomReady( window );' + 
     92                                                '}' + 
     93                                        '</script>'; 
     94 
     95                                // Editing area bootstrap code. 
     96                                var contentDomReady = function( domWindow ) 
     97                                { 
     98                                        delete editor._.contentDomReady; 
     99 
     100                                        var domDocument = domWindow.document, 
     101                                                body = domDocument.body; 
     102 
     103                                        body.spellcheck = !editor.config.disableNativeSpellChecker; 
     104 
     105                                        if ( CKEDITOR.env.ie ) 
     106                                        { 
     107                                                // Disable and re-enable the body to avoid IE from 
     108                                                // taking the editing focus at startup. (#141 / #523) 
     109                                                body.disabled = true; 
     110                                                body.contentEditable = true; 
     111                                                body.removeAttribute( 'disabled' ); 
     112                                        } 
     113                                        else 
     114                                                domDocument.designMode = 'on'; 
     115 
     116                                        // IE, Opera and Safari may not support it and throw 
     117                                        // errors. 
     118                                        try { domDocument.execCommand( 'enableObjectResizing', false, !editor.config.disableObjectResizing ) ; } catch(e) {} 
     119                                        try { domDocument.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ) ; } catch(e) {} 
     120 
     121                                        editor.window   = new CKEDITOR.dom.window( domWindow ); 
     122                                        editor.document = new CKEDITOR.dom.document( domDocument ); 
     123 
     124                                        editor.fire( 'contentDom' ); 
     125                                }; 
    34126 
    35127                                editor.addMode( 'wysiwyg', 
     
    38130                                                { 
    39131                                                        mainElement = holderElement; 
     132 
     133                                                        // Create the iframe at load for all browsers 
     134                                                        // except FF and IE with custom domain. 
     135                                                        if ( !isCustomDomain || !CKEDITOR.env.gecko ) 
     136                                                                createIFrame(); 
     137 
    40138                                                        this.loadData( data ); 
    41139                                                }, 
     
    43141                                                loadData : function( data ) 
    44142                                                { 
    45                                                         mainElement.setHtml( editor.dataProcessor.toHtml( data ) ); 
     143                                                        data = 
     144                                                                CKEDITOR.config.docType + 
     145                                                                '<html dir="' + CKEDITOR.config.contentLangDirection + '">' + 
     146                                                                '<head>' + 
     147                                                                        '<link href="' + CKEDITOR.config.contentsCss + '" type="text/css" rel="stylesheet" _fcktemp="true"/>' + 
     148                                                                '</head>' + 
     149                                                                '<body>' + 
     150                                                                        editor.dataProcessor.toHtml( data ) + 
     151                                                                '</body>' + 
     152                                                                '</html>' + 
     153                                                                activationScript; 
     154 
     155                                                        // For custom domain in IE, set the global variable 
     156                                                        // that will temporarily hold the editor data. This 
     157                                                        // reference will be used in the ifram src. 
     158                                                        if ( isCustomDomain ) 
     159                                                                window[ '_cke_htmlToLoad_' + editor.name ] = data; 
     160 
     161                                                        editor._.contentDomReady = contentDomReady; 
     162 
     163                                                        // We need to recreate the iframe in FF for every 
     164                                                        // data load, otherwise the following spellcheck 
     165                                                        // and execCommand features will be active only for 
     166                                                        // the first time. 
     167                                                        // The same is valid for IE with custom domain, 
     168                                                        // because the iframe src must be reset every time. 
     169                                                        if ( isCustomDomain || CKEDITOR.env.gecko ) 
     170                                                                createIFrame(); 
     171 
     172                                                        // For custom domain in IE, the data loading is 
     173                                                        // done through the src attribute of the iframe. 
     174                                                        if ( !isCustomDomain ) 
     175                                                        { 
     176                                                                var doc = iframe.$.contentWindow.document; 
     177                                                                doc.open(); 
     178                                                                doc.write( data ); 
     179                                                                doc.close(); 
     180                                                        } 
    46181                                                }, 
    47182 
    48183                                                getData : function() 
    49184                                                { 
    50                                                         return editor.dataProcessor.toDataFormat( mainElement ); 
     185                                                        return editor.dataProcessor.toDataFormat( new CKEDITOR.dom.element( iframe.$.contentWindow.document.body ) ); 
    51186                                                }, 
    52187 
    53188                                                unload : function( holderElement ) 
    54189                                                { 
    55                                                         mainElement = null; 
     190                                                        editor.window = editor.document = iframe = mainElement = null; 
     191 
     192                                                        editor.fire( 'contentDomUnload' ); 
    56193                                                } 
    57194                                        }); 
     
    59196        } 
    60197}); 
     198 
     199/** 
     200 * Disables the ability of resize objects (image and tables) in the editing 
     201 * area 
     202 * @type Boolean 
     203 * @default false 
     204 * @example 
     205 * config.disableObjectResizing = true; 
     206 */ 
     207CKEDITOR.config.disableObjectResizing = false; 
     208 
     209/** 
     210 * Disables the "table tools" offered natively by the browser (currently 
     211 * Firefox only) to make quick table editing operations, like adding or 
     212 * deleting rows and columns. 
     213 * @type Boolean 
     214 * @default true 
     215 * @example 
     216 * config.disableNativeTableHandles = false; 
     217 */ 
     218CKEDITOR.config.disableNativeTableHandles = true; 
     219 
     220/** 
     221 * Disables the built-in spell checker while typing natively available in the 
     222 * browser (currently Firefox and Safari only).<br /><br /> 
     223 * 
     224 * Even if word suggestions will not appear in the FCKeditor context menu, this 
     225 * feature is useful to help quickly identifying misspelled words.<br /><br /> 
     226 * 
     227 * This setting is currently compatible with Firefox only due to limitations in 
     228 * other browsers. 
     229 * @type Boolean 
     230 * @default true 
     231 * @example 
     232 * config.disableNativeSpellChecker = false; 
     233 */ 
     234CKEDITOR.config.disableNativeSpellChecker = true; 
  • CKEditor/branches/prototype/_source/skins/default/mainui.css

    r2180 r2189  
    2222.cke_skin_default .cke_editor 
    2323{ 
    24         border: solid 1px #ff0000; 
     24        border: solid 1px #dcdcdc; 
    2525        display: inline-table; 
    2626} 
     
    3131} 
    3232 
     33 . 
    3334.cke_skin_default.cke_focus 
    3435{ 
     
    4041        font-family: 'Courier New' , Monospace; 
    4142        white-space: pre; 
    42         padding: 5px; 
     43        background-color: #fff; 
    4344} 
  • CKEditor/branches/prototype/_source/skins/default/reset.css

    r2180 r2189  
    5353        text-align: right; 
    5454} 
     55 
     56.cke_skin_default iframe, 
     57.cke_skin_default textarea 
     58{ 
     59        vertical-align: inherit;        /** For IE */ 
     60} 
  • CKEditor/branches/prototype/_source/tests/core/dom/element.html

    r2180 r2189  
    359359                        element.removeAttribute( 'title' ); 
    360360                        assert.areSame( '<div></div>', document.getElementById( 'removeClass' ).innerHTML.toLowerCase().replace( /"/g, '' ) ); 
     361                }, 
     362 
     363                test_remove : function() 
     364                { 
     365                        var element = new CKEDITOR.dom.element( document.getElementById( 'removeInner' ) ); 
     366                        element.remove(); 
     367 
     368                        assert.areSame( '', document.getElementById( 'removeOuter' ).innerHTML ); 
    361369                }, 
    362370 
     
    377385        <div id="setText"></div> 
    378386        <div id="removeClass"></div> 
     387        <div id="removeOuter"><b id="removeInner"></b></div> 
    379388</body> 
    380389</html> 
  • CKEditor/branches/prototype/_source/themes/default/theme.js

    r2180 r2189  
    3333                var bottomHtml          = editor.fireOnce( 'themeSpace', { space : 'bottom', html : '' } ).html; 
    3434 
     35                var height      = editor.config.height; 
     36                var width       = editor.config.width; 
     37 
     38                if ( !isNaN( height ) ) 
     39                        height += 'px'; 
     40 
     41                if ( !isNaN( width ) ) 
     42                        width += 'px'; 
     43 
    3544                // Using a <div> as the outer element container can make IE goes crazy. 
    3645                // The fact is that a <textarea> is an inline element. We aim to 
     
    4453                var container = CKEDITOR.dom.element.createFromHtml( [ 
    4554                        '<span id="cke_', name, '" class="cke_container cke_skin_', editor.config.skin, ' cke_', CKEDITOR.lang.dir, '" dir="', CKEDITOR.lang.dir, '">' + 
    46                                 '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0"><tbody>' + 
     55                                '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" style="width:', width, ';height:', height, '"><tbody>' + 
    4756                                        '<tr', topHtml          ? '' : ' style="display:none"', '><td id="cke_top_'             , name, '" class="cke_top">'            , topHtml               , '</td></tr>' + 
    48                                         '<tr', contentsHtml     ? '' : ' style="display:none"', '><td id="cke_contents_', name, '" class="cke_contents">'       , contentsHtml  , '</td></tr>' + 
     57                                        '<tr', contentsHtml     ? '' : ' style="display:none"', '><td id="cke_contents_', name, '" class="cke_contents" style="height:100%">'   , contentsHtml  , '</td></tr>' + 
    4958                                        '<tr', bottomHtml       ? '' : ' style="display:none"', '><td id="cke_bottom_'  , name, '" class="cke_bottom">'         , bottomHtml    , '</td></tr>' + 
    5059                                '</tbody></table>' + 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy