Changeset 2262


Ignore:
Timestamp:
07/22/2008 06:45:18 PM (6 years ago)
Author:
fredck
Message:

Added a feature to the packager generator tool to automatically identify constants in the CKEDITOR object.
Fixed some lint warnings.

Location:
CKEditor/branches/prototype
Files:
16 edited

Legend:

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

    r2214 r2262  
    2222+unreachable_code             # unreachable code 
    2323+missing_break                # missing break statement 
    24 +missing_break_for_last_case  # missing break statement for last case in switch 
     24-missing_break_for_last_case  # missing break statement for last case in switch 
    2525+comparison_type_conv         # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) 
    2626-inc_dec_within_stmt          # increment (++) and decrement (--) operators used as part of greater statement 
  • CKEditor/branches/prototype/_dev/packager/fckpackager.php

    r2246 r2262  
    316316                                '/\/\/.*$/m', 
    317317                                '', $script ) ; 
    318                  
     318 
    319319                // Remove spaces before the ";" at the end of the lines 
    320320                $script = preg_replace( 
  • CKEditor/branches/prototype/_dev/packager/packagefilegen.html

    r2163 r2262  
    3131        document.getElementById( 'full' ).contentWindow.generate(); 
    3232 
     33        var CKEDITOR = document.getElementById( 'full' ).contentWindow.CKEDITOR; 
     34 
    3335        var output = document.getElementById( 'output' ); 
    3436        output.value = document.getElementById( 'header' ).value + '\r\n\r\n'; 
     37 
     38        output.value += '\t<Constants removeDeclaration="false">\r\n'; 
     39 
     40        for ( var prop in CKEDITOR ) 
     41        { 
     42                var typeOfProp = typeof CKEDITOR[ prop ]; 
     43                if ( /^[A-Z\d$_]+$/.test( prop ) && typeOfProp != 'object' && typeOfProp != 'function' && typeOfProp != 'undefined' ) 
     44                        output.value += '\t\t<Constant name="CKEDITOR.' + prop + '" value="' + CKEDITOR[ prop ] + '" />\r\n'; 
     45        } 
     46        output.value += '\t</Constants>\r\n\r\n'; 
    3547 
    3648        output.value += document.getElementById( 'basic' ).contentDocument.getElementById( 'output' ).value + '\r\n'; 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_domobject.js.html

    r2261 r2262  
    5858<span class='line'> 51</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="PUNC">(</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">this.getCustomData</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="PUNC">)</span><span class="WHIT"> 
    5959<span class='line'> 52</span> </span><span class="WHIT">                        </span><span class="NAME">this.setCustomData</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="STRN">'_'</span><span class="PUNC">,</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="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="PUNC">)</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="WHIT"> 
     60<span class='line'> 53</span> 
    6161<span class='line'> 54</span> </span><span class="WHIT">                </span><span class="COMM">// Call the base event constructor.</span><span class="WHIT"> 
    6262<span class='line'> 55</span> </span><span class="WHIT">                </span><span class="NAME">CKEDITOR.event.call</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     
    132132<span class='line'>125</span> </span><span class="PUNC">{</span><span class="WHIT"> 
    133133<span class='line'>126</span> </span><span class="WHIT">        </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">customData</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"> 
    134 <span class='line'>127</span> </span><span class="WHIT">        </span><span class="WHIT"> 
     134<span class='line'>127</span> 
    135135<span class='line'>128</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    136136<span class='line'>129</span>    * Determines whether the specified object is equal to the current object. 
     
    147147<span class='line'>140</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    148148<span class='line'>141</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"> 
    149 <span class='line'>142</span> </span><span class="WHIT">        </span><span class="PUNC">}</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="PUNC">;</span><span class="WHIT"> 
    150150<span class='line'>143</span> 
    151151<span class='line'>144</span> </span><span class="WHIT">        </span><span class="COMM">/** 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__dom_node.js.html

    r2261 r2262  
    9191<span class='line'> 84</span> </span><span class="WHIT">                        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">element</span><span class="PUNC">;</span><span class="WHIT"> 
    9292<span class='line'> 85</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    93 <span class='line'> 86</span> </span><span class="WHIT">                </span><span class="WHIT"> 
     93<span class='line'> 86</span> 
    9494<span class='line'> 87</span> </span><span class="WHIT">                </span><span class="COMM">/** 
    9595<span class='line'> 88</span>            * Gets the parent element for this node. 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__editor.js.html

    r2261 r2262  
    251251<span class='line'>244</span> </span><span class="WHIT">                </span><span class="KEYW">throw</span><span class="WHIT"> </span><span class="STRN">'Unknown command name "'</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'"'</span><span class="PUNC">;</span><span class="WHIT"> 
    252252<span class='line'>245</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    253 <span class='line'>246</span> </span><span class="WHIT">        </span><span class="WHIT"> 
     253<span class='line'>246</span> 
    254254<span class='line'>247</span> </span><span class="WHIT">        </span><span class="NAME">getCommand</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    255255<span class='line'>248</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    256256<span class='line'>249</span> </span><span class="WHIT">                </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this._.commands</span><span class="PUNC">[</span><span class="WHIT"> </span><span class="NAME">commandName</span><span class="WHIT"> </span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT"> 
    257257<span class='line'>250</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> 
    258 <span class='line'>251</span> </span><span class="WHIT">        </span><span class="WHIT"> 
     258<span class='line'>251</span> 
    259259<span class='line'>252</span> </span><span class="WHIT">        </span><span class="COMM">// Both fire and fireOnce will always pass this editor instance as the</span><span class="WHIT"> 
    260260<span class='line'>253</span> </span><span class="WHIT">        </span><span class="COMM">// "editor" param in CKEDITOR.event.fire. So, we override it to do that</span><span class="WHIT"> 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_core__loader.js.html

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

    r2261 r2262  
    192192<span class='line'>185</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    193193<span class='line'>186</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"> 
    194 <span class='line'>187</span> </span><span class="WHIT">        </span><span class="WHIT"> 
     194<span class='line'>187</span> 
    195195<span class='line'>188</span> </span><span class="WHIT">        </span><span class="COMM">/** 
    196196<span class='line'>189</span>    * Executes a function after specified delay. 
  • CKEditor/branches/prototype/_docs/api/symbols/src/_source_plugins__selection_plugin.js.html

    r2261 r2262  
    7070<span class='line'> 63</span> </span><span class="WHIT">        </span><span class="PUNC">{</span><span class="WHIT"> 
    7171<span class='line'> 64</span> </span><span class="WHIT">                </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> 
    72 <span class='line'> 65</span> </span><span class="WHIT">                        </span><span class="NAME">clearTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     72<span class='line'> 65</span> </span><span class="WHIT">                        </span><span class="NAME">window.clearTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
    7373<span class='line'> 66</span> 
    7474<span class='line'> 67</span> </span><span class="WHIT">                </span><span class="NAME">checkSelectionChangeTimer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">CKEDITOR.tools.setTimeout</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">checkSelectionChange</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">100</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> 
     
    342342<span class='line'>335</span> </span><span class="WHIT">                </span><span class="PUNC">}</span><span class="WHIT"> 
    343343<span class='line'>336</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT"> 
    344 <span class='line'>337</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span></pre></body></html> 
     344<span class='line'>337</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"> 
     345<span class='line'>338</span> </span></pre></body></html> 
  • CKEditor/branches/prototype/_source/core/dom/domobject.js

    r2261 r2262  
    5151                if ( !( this._ = this.getCustomData( '_' ) ) ) 
    5252                        this.setCustomData( '_', ( this._ = {} ) ); 
    53          
     53 
    5454                // Call the base event constructor. 
    5555                CKEDITOR.event.call( this ); 
     
    125125{ 
    126126        var customData = {}; 
    127          
     127 
    128128        /** 
    129129         * Determines whether the specified object is equal to the current object. 
     
    140140        { 
    141141                return ( object && object.$ === this.$ ); 
    142         }, 
     142        }; 
    143143 
    144144        /** 
  • CKEditor/branches/prototype/_source/core/dom/node.js

    r2261 r2262  
    8484                        return element; 
    8585                }, 
    86                  
     86 
    8787                /** 
    8888                 * Gets the parent element for this node. 
  • CKEditor/branches/prototype/_source/core/editor.js

    r2259 r2262  
    244244                throw 'Unknown command name "' + commandName + '"'; 
    245245        }, 
    246          
     246 
    247247        getCommand : function( commandName ) 
    248248        { 
    249249                return this._.commands[ commandName ] || null; 
    250250        }, 
    251          
     251 
    252252        // Both fire and fireOnce will always pass this editor instance as the 
    253253        // "editor" param in CKEDITOR.event.fire. So, we override it to do that 
  • CKEditor/branches/prototype/_source/core/loader.js

    r2261 r2262  
    4242                'core/_bootstrap'               : [ 'core/config', 'core/ckeditor', 'core/plugins', 'core/scriptLoader', 'core/tools', /* The following are entries that we wnat to force loading to at the end to avoid dependence recursion */ 'core/dom/text' ], 
    4343                'core/ajax'                             : [ 'core/xml' ], 
    44                 'core/ckeditor'                 : [ 'core/ajax', 'core/ckeditor_basic', 'core/dom', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/listslib', 'core/tools' ], 
     44                'core/ckeditor'                 : [ 'core/ajax', 'core/ckeditor_basic', 'core/dom', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/tools' ], 
    4545                'core/ckeditor_base'    : [], 
    4646                'core/ckeditor_basic'   : [ 'core/env', 'core/event' ], 
     
    5757                'core/env'                              : [], 
    5858                'core/event'                    : [], 
    59                 'core/listslib'                 : [], 
    6059                'core/plugins'                  : [ 'core/resourceManager' ], 
    6160                'core/resourceManager'  : [ 'core/scriptLoader', 'core/tools' ], 
  • CKEditor/branches/prototype/_source/core/tools.js

    r2261 r2262  
    185185                }; 
    186186        })(), 
    187          
     187 
    188188        /** 
    189189         * Executes a function after specified delay. 
  • CKEditor/branches/prototype/_source/plugins/selection/plugin.js

    r2261 r2262  
    6363        { 
    6464                if ( checkSelectionChangeTimer ) 
    65                         clearTimeout( checkSelectionChangeTimer ); 
     65                        window.clearTimeout( checkSelectionChangeTimer ); 
    6666 
    6767                checkSelectionChangeTimer = CKEDITOR.tools.setTimeout( checkSelectionChange, 100, this ); 
  • CKEditor/branches/prototype/fckpackager.xml

    r2239 r2262  
    4444]]></Header> 
    4545 
     46        <Constants removeDeclaration="false"> 
     47                <Constant name="CKEDITOR.SELECTION_NONE" value="1" /> 
     48                <Constant name="CKEDITOR.SELECTION_TEXT" value="2" /> 
     49                <Constant name="CKEDITOR.SELECTION_ELEMENT" value="3" /> 
     50        </Constants> 
     51 
    4652        <PackageFile path="ckeditor_basic.js"> 
    4753                <File path="_source/core/ckeditor_base.js" /> 
     
    7783                <File path="_source/core/dom/text.js" /> 
    7884                <File path="_source/core/_bootstrap.js" /> 
     85                <File path="_source/plugins/basicstyles/plugin.js" /> 
    7986                <File path="_source/plugins/editingblock/plugin.js" /> 
    8087                <File path="_source/plugins/elementspath/plugin.js" /> 
    8188                <File path="_source/plugins/htmldataprocessor/plugin.js" /> 
     89                <File path="_source/plugins/selection/plugin.js" /> 
    8290                <File path="_source/plugins/sourcearea/plugin.js" /> 
    8391                <File path="_source/plugins/toolbar/plugin.js" /> 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy