Permalink
Browse files

Do not remove colons

  • Loading branch information...
1 parent 44b1743 commit 952bc7ba8619c412a59d62e26b774e02aca96023 Yaroslaff Fedin committed Apr 18, 2011
Showing with 41,653 additions and 41,654 deletions.
  1. +2 −0 .gitignore
  2. +2 −2 Source/core/_bootstrap.js
  3. +29 −29 Source/core/ckeditor_base.js
  4. +3 −3 Source/core/ckeditor_basic.js
  5. +17 −17 Source/core/command.js
  6. +13 −13 Source/core/commanddefinition.js
  7. +42 −42 Source/core/config.js
  8. +6 −6 Source/core/dom/comment.js
  9. +19 −19 Source/core/dom/document.js
  10. +19 −19 Source/core/dom/documentfragment.js
  11. +6 −6 Source/core/dom/domobject.js
  12. +137 −137 Source/core/dom/element.js
  13. +5 −5 Source/core/dom/elementpath.js
  14. +6 −6 Source/core/dom/event.js
  15. +47 −47 Source/core/dom/node.js
  16. +3 −3 Source/core/dom/nodelist.js
  17. +103 −103 Source/core/dom/range.js
  18. +11 −11 Source/core/dom/rangelist.js
  19. +9 −9 Source/core/dom/text.js
  20. +37 −37 Source/core/dom/walker.js
  21. +9 −9 Source/core/dom/window.js
  22. +128 −128 Source/core/dtd.js
  23. +37 −37 Source/core/editor.js
  24. +12 −12 Source/core/editor_basic.js
  25. +15 −15 Source/core/env.js
  26. +16 −16 Source/core/event.js
  27. +1 −1 Source/core/eventInfo.js
  28. +6 −6 Source/core/focusmanager.js
  29. +15 −15 Source/core/htmlparser.js
  30. +13 −13 Source/core/htmlparser/basicwriter.js
  31. +2 −2 Source/core/htmlparser/cdata.js
  32. +3 −3 Source/core/htmlparser/comment.js
  33. +13 −13 Source/core/htmlparser/element.js
  34. +24 −24 Source/core/htmlparser/filter.js
  35. +14 −14 Source/core/htmlparser/fragment.js
  36. +3 −3 Source/core/htmlparser/text.js
  37. +65 −65 Source/core/lang.js
  38. +50 −50 Source/core/loader.js
  39. +3 −3 Source/core/plugindefinition.js
  40. +11 −11 Source/core/resourcemanager.js
  41. +8 −8 Source/core/scriptloader.js
  42. +3 −3 Source/core/skins.js
  43. +55 −55 Source/core/tools.js
  44. +12 −12 Source/core/ui.js
  45. +60 −60 Source/lang/_languages.js
  46. +606 −606 Source/lang/af.js
  47. +606 −606 Source/lang/ar.js
  48. +606 −606 Source/lang/bg.js
  49. +606 −606 Source/lang/bn.js
  50. +606 −606 Source/lang/bs.js
  51. +606 −606 Source/lang/ca.js
  52. +606 −606 Source/lang/cs.js
  53. +606 −606 Source/lang/cy.js
  54. +606 −606 Source/lang/da.js
  55. +606 −606 Source/lang/de.js
  56. +606 −606 Source/lang/el.js
  57. +606 −606 Source/lang/en-au.js
  58. +606 −606 Source/lang/en-ca.js
  59. +606 −606 Source/lang/en-gb.js
  60. +606 −606 Source/lang/en.js
  61. +606 −606 Source/lang/eo.js
  62. +606 −606 Source/lang/es.js
  63. +606 −606 Source/lang/et.js
  64. +606 −606 Source/lang/eu.js
  65. +606 −606 Source/lang/fa.js
  66. +606 −606 Source/lang/fi.js
  67. +606 −606 Source/lang/fo.js
  68. +606 −606 Source/lang/fr-ca.js
  69. +606 −606 Source/lang/fr.js
  70. +606 −606 Source/lang/gl.js
  71. +606 −606 Source/lang/gu.js
  72. +606 −606 Source/lang/he.js
  73. +606 −606 Source/lang/hi.js
  74. +606 −606 Source/lang/hr.js
  75. +606 −606 Source/lang/hu.js
  76. +606 −606 Source/lang/is.js
  77. +606 −606 Source/lang/it.js
  78. +606 −606 Source/lang/ja.js
  79. +606 −606 Source/lang/km.js
  80. +606 −606 Source/lang/ko.js
  81. +606 −606 Source/lang/lt.js
  82. +606 −606 Source/lang/lv.js
  83. +606 −606 Source/lang/mn.js
  84. +606 −606 Source/lang/ms.js
  85. +606 −606 Source/lang/nb.js
  86. +606 −606 Source/lang/nl.js
  87. +606 −606 Source/lang/no.js
  88. +606 −606 Source/lang/pl.js
  89. +606 −606 Source/lang/pt-br.js
  90. +606 −606 Source/lang/pt.js
  91. +606 −606 Source/lang/ro.js
  92. +606 −606 Source/lang/ru.js
  93. +606 −606 Source/lang/sk.js
  94. +606 −606 Source/lang/sl.js
  95. +606 −606 Source/lang/sr-latn.js
  96. +606 −606 Source/lang/sr.js
  97. +606 −606 Source/lang/sv.js
  98. +606 −606 Source/lang/th.js
  99. +606 −606 Source/lang/tr.js
  100. +606 −606 Source/lang/uk.js
  101. +606 −606 Source/lang/vi.js
  102. +606 −606 Source/lang/zh-cn.js
  103. +606 −606 Source/lang/zh.js
  104. +90 −90 Source/plugins/a11yhelp/dialogs/a11yhelp.js
  105. +34 −34 Source/plugins/a11yhelp/lang/en.js
  106. +68 −68 Source/plugins/a11yhelp/lang/he.js
  107. +6 −6 Source/plugins/a11yhelp/plugin.js
  108. +29 −29 Source/plugins/about/dialogs/about.js
  109. +5 −5 Source/plugins/about/plugin.js
  110. +6 −6 Source/plugins/adobeair/plugin.js
  111. +12 −12 Source/plugins/ajax/plugin.js
  112. +4 −4 Source/plugins/autogrow/plugin.js
  113. +23 −23 Source/plugins/basicstyles/plugin.js
  114. +21 −21 Source/plugins/bidi/plugin.js
  115. +9 −9 Source/plugins/blockquote/plugin.js
  116. +31 −31 Source/plugins/button/plugin.js
  117. +34 −34 Source/plugins/clipboard/dialogs/paste.js
  118. +37 −37 Source/plugins/clipboard/plugin.js
  119. +32 −32 Source/plugins/colorbutton/plugin.js
  120. +47 −47 Source/plugins/colordialog/dialogs/colordialog.js
  121. +1 −1 Source/plugins/colordialog/plugin.js
  122. +20 −20 Source/plugins/contextmenu/plugin.js
  123. +131 −131 Source/plugins/dialog/dialogDefinition.js
  124. +277 −277 Source/plugins/dialog/plugin.js
  125. +53 −53 Source/plugins/dialogadvtab/plugin.js
  126. +145 −145 Source/plugins/dialogui/plugin.js
  127. +73 −73 Source/plugins/div/dialogs/div.js
  128. +17 −17 Source/plugins/div/plugin.js
  129. +8 −8 Source/plugins/domiterator/plugin.js
  130. +3 −3 Source/plugins/editingblock/plugin.js
  131. +17 −17 Source/plugins/elementspath/plugin.js
  132. +12 −12 Source/plugins/enterkey/plugin.js
  133. +15 −15 Source/plugins/entities/plugin.js
  134. +21 −21 Source/plugins/fakeobjects/plugin.js
  135. +7 −7 Source/plugins/filebrowser/plugin.js
  136. +146 −146 Source/plugins/find/dialogs/find.js
  137. +10 −10 Source/plugins/find/plugin.js
  138. +236 −236 Source/plugins/flash/dialogs/flash.js
  139. +27 −27 Source/plugins/flash/plugin.js
  140. +40 −40 Source/plugins/floatpanel/plugin.js
  141. +24 −24 Source/plugins/font/plugin.js
  142. +43 −43 Source/plugins/format/plugin.js
  143. +33 −33 Source/plugins/forms/dialogs/button.js
  144. +38 −38 Source/plugins/forms/dialogs/checkbox.js
  145. +59 −59 Source/plugins/forms/dialogs/form.js
  146. +26 −26 Source/plugins/forms/dialogs/hiddenfield.js
  147. +35 −35 Source/plugins/forms/dialogs/radio.js
  148. +140 −140 Source/plugins/forms/dialogs/select.js
  149. +35 −35 Source/plugins/forms/dialogs/textarea.js
  150. +59 −59 Source/plugins/forms/dialogs/textfield.js
  151. +80 −80 Source/plugins/forms/plugin.js
  152. +5 −5 Source/plugins/horizontalrule/plugin.js
  153. +53 −53 Source/plugins/htmldataprocessor/plugin.js
  154. +32 −32 Source/plugins/htmlwriter/plugin.js
  155. +82 −82 Source/plugins/iframe/dialogs/iframe.js
  156. +20 −20 Source/plugins/iframe/plugin.js
  157. +26 −26 Source/plugins/iframedialog/plugin.js
  158. +249 −249 Source/plugins/image/dialogs/image.js
  159. +8 −8 Source/plugins/image/plugin.js
  160. +19 −19 Source/plugins/indent/plugin.js
  161. +19 −19 Source/plugins/justify/plugin.js
  162. +7 −7 Source/plugins/keystrokes/plugin.js
  163. +17 −17 Source/plugins/link/dialogs/anchor.js
  164. +385 −385 Source/plugins/link/dialogs/link.js
  165. +46 −46 Source/plugins/link/plugin.js
  166. +31 −31 Source/plugins/list/plugin.js
  167. +21 −21 Source/plugins/listblock/plugin.js
  168. +50 −50 Source/plugins/liststyle/dialogs/liststyle.js
  169. +12 −12 Source/plugins/liststyle/plugin.js
  170. +29 −29 Source/plugins/maximize/plugin.js
  171. +41 −41 Source/plugins/menu/plugin.js
  172. +11 −11 Source/plugins/menubutton/plugin.js
  173. +8 −8 Source/plugins/newpage/plugin.js
  174. +22 −22 Source/plugins/pagebreak/plugin.js
  175. +38 −38 Source/plugins/panel/plugin.js
  176. +12 −12 Source/plugins/panelbutton/plugin.js
  177. +147 −147 Source/plugins/pastefromword/filter/default.js
  178. +10 −10 Source/plugins/pastefromword/plugin.js
  179. +18 −18 Source/plugins/pastetext/dialogs/pastetext.js
  180. +7 −7 Source/plugins/pastetext/plugin.js
  181. +20 −20 Source/plugins/placeholder/dialogs/placeholder.js
  182. +6 −6 Source/plugins/placeholder/lang/en.js
  183. +6 −6 Source/plugins/placeholder/lang/he.js
  184. +24 −24 Source/plugins/placeholder/plugin.js
  185. +1 −1 Source/plugins/popup/plugin.js
  186. +8 −8 Source/plugins/preview/plugin.js
  187. +6 −6 Source/plugins/print/plugin.js
  188. +13 −13 Source/plugins/removeformat/plugin.js
  189. +7 −7 Source/plugins/resize/plugin.js
  190. +42 −42 Source/plugins/richcombo/plugin.js
  191. +6 −6 Source/plugins/save/plugin.js
  192. +56 −56 Source/plugins/scayt/dialogs/options.js
  193. +105 −105 Source/plugins/scayt/plugin.js
  194. +69 −69 Source/plugins/selection/plugin.js
  195. +16 −16 Source/plugins/showblocks/plugin.js
  196. +18 −18 Source/plugins/showborders/plugin.js
  197. +39 −39 Source/plugins/smiley/dialogs/smiley.js
  198. +8 −8 Source/plugins/smiley/plugin.js
  199. +29 −29 Source/plugins/sourcearea/plugin.js
  200. +58 −58 Source/plugins/specialchar/dialogs/specialchar.js
  201. +85 −85 Source/plugins/specialchar/lang/en.js
  202. +9 −9 Source/plugins/specialchar/plugin.js
  203. +80 −80 Source/plugins/styles/plugin.js
  204. +46 −46 Source/plugins/styles/styles/default.js
  205. +19 −19 Source/plugins/stylescombo/plugin.js
  206. +21 −21 Source/plugins/tab/plugin.js
  207. +146 −146 Source/plugins/table/dialogs/table.js
  208. +15 −15 Source/plugins/table/plugin.js
  209. +28 −28 Source/plugins/tableresize/plugin.js
  210. +137 −137 Source/plugins/tabletools/dialogs/tableCell.js
  211. +157 −157 Source/plugins/tabletools/plugin.js
  212. +31 −31 Source/plugins/templates/dialogs/templates.js
  213. +5 −5 Source/plugins/templates/plugin.js
  214. +21 −21 Source/plugins/templates/templates/default.js
  215. +20 −20 Source/plugins/toolbar/plugin.js
  216. +48 −48 Source/plugins/uicolor/dialogs/uicolor.js
  217. +5 −5 Source/plugins/uicolor/lang/en.js
  218. +5 −5 Source/plugins/uicolor/lang/he.js
  219. +6 −6 Source/plugins/uicolor/plugin.js
  220. +24 −24 Source/plugins/uicolor/yui/yui.js
  221. +34 −34 Source/plugins/undo/plugin.js
  222. +36 −36 Source/plugins/wsc/dialogs/wsc.js
  223. +6 −6 Source/plugins/wsc/plugin.js
  224. +56 −56 Source/plugins/wysiwygarea/plugin.js
  225. +4 −4 Source/plugins/xml/plugin.js
  226. +39 −39 Source/skins/kama/skin.js
  227. +7 −7 Source/skins/office2003/skin.js
  228. +7 −7 Source/skins/v2/skin.js
  229. +32 −32 Source/themes/default/theme.js
  230. +1 −4 packager.rb
View
@@ -0,0 +1,2 @@
+ckeditor
+.DS_Store
@@ -40,8 +40,8 @@ provides:
// Check whether high contrast is active by creating a colored border.
var hcDetect = CKEDITOR.dom.element.createFromHtml(
- '<div style="width0px;height0px;positionabsolute;left-10000px;' +
- 'border 1px solid;border-color red blue;"></div>', CKEDITOR.document );
+ '<div style="width:0px;height:0px;position:absolute;left:-10000px;' +
+ 'border: 1px solid;border-color: red blue;"></div>', CKEDITOR.document );
hcDetect.appendTo( CKEDITOR.document.getHead() );
@@ -23,10 +23,10 @@ provides:
// Must be updated on changes in the script as well as updated in the
// ckeditor_source.js and ckeditor_basic_source.js files.
-// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp'',version'3.5.4 (SVN)',rev'6678',_{},status'unloaded',basePath(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?_basic)?(?_source)?.js(?\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf('/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?)/)[0]+d;return d;})(),getUrlfunction(d){if(d.indexOf('/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')d+=(d.indexOf('?')>=0?'&''?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
+// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.5.4 (SVN)',rev:'6678',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':/')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;return d;})(),getUrl:function(d){if(d.indexOf(':/')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')d+=(d.indexOf('?')>=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
// #### Raw code
-// ATTENTION read the above "Compressed Code" notes when changing this code.
+// ATTENTION: read the above "Compressed Code" notes when changing this code.
if ( !window.CKEDITOR )
{
@@ -53,15 +53,15 @@ if ( !window.CKEDITOR )
// The production implementation contains a fixed timestamp, unique
// for each release and generated by the releaser.
// (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122)
- timestamp 'B3E755I',
+ timestamp : 'B3E755I',
/**
* Contains the CKEditor version number.
* @type String
* @example
* alert( CKEDITOR.version ); // e.g. 'CKEditor 3.4.1'
*/
- version '3.5.4 (SVN)',
+ version : '3.5.4 (SVN)',
/**
* Contains the CKEditor revision number.
@@ -71,24 +71,24 @@ if ( !window.CKEDITOR )
* @example
* alert( CKEDITOR.revision ); // e.g. '3975'
*/
- revision '6678',
+ revision : '6678',
/**
* Private object used to hold core stuff. It should not be used outside of
* the API code as properties defined here may change at any time
* without notice.
* @private
*/
- _ {},
+ _ : {},
/**
- * Indicates the API loading status. The following statuses are available
+ * Indicates the API loading status. The following statuses are available:
* <ul>
- * <li><b>unloaded</b> the API is not yet loaded.</li>
- * <li><b>basic_loaded</b> the basic API features are available.</li>
- * <li><b>basic_ready</b> the basic API is ready to load the full core code.</li>
- * <li><b>loading</b> the full API is being loaded.</li>
- * <li><b>loaded</b> the API can be fully used.</li>
+ * <li><b>unloaded</b>: the API is not yet loaded.</li>
+ * <li><b>basic_loaded</b>: the basic API features are available.</li>
+ * <li><b>basic_ready</b>: the basic API is ready to load the full core code.</li>
+ * <li><b>loading</b>: the full API is being loaded.</li>
+ * <li><b>loaded</b>: the API can be fully used.</li>
* </ul>
* @type String
* @example
@@ -97,7 +97,7 @@ if ( !window.CKEDITOR )
* // The API can now be fully used.
* }
*/
- status 'unloaded',
+ status : 'unloaded',
/**
* Contains the full URL for the CKEditor installation directory.
@@ -106,11 +106,11 @@ if ( !window.CKEDITOR )
* must be set <strong>before</strong> the editor script loading.
* @type String
* @example
- * alert( <b>CKEDITOR.basePath</b> ); // "http//www.example.com/ckeditor/" (e.g.)
+ * alert( <b>CKEDITOR.basePath</b> ); // "http://www.example.com/ckeditor/" (e.g.)
*/
- basePath (function()
+ basePath : (function()
{
- // ATTENTION fixes to this code must be ported to
+ // ATTENTION: fixes to this code must be ported to
// var basePath in "core/loader.js".
// Find out the editor directory path, based on its <script> tag.
@@ -122,7 +122,7 @@ if ( !window.CKEDITOR )
for ( var i = 0 ; i < scripts.length ; i++ )
{
- var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?_basic)?(?_source)?.js(?\?.*)?$/i );
+ var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i );
if ( match )
{
@@ -134,14 +134,14 @@ if ( !window.CKEDITOR )
// In IE (only) the script.src string is the raw value entered in the
// HTML source. Other browsers return the full resolved URL instead.
- if ( path.indexOf('/') == -1 )
+ if ( path.indexOf(':/') == -1 )
{
// Absolute path.
if ( path.indexOf( '/' ) === 0 )
- path = location.href.match( /^.*?\/\/[^\/]*/ )[0] + path;
+ path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
// Relative path.
else
- path = location.href.match( /^[^\?]*\/(?)/ )[0] + path;
+ path = location.href.match( /^[^\?]*\/(?:)/ )[0] + path;
}
if ( !path )
@@ -164,24 +164,24 @@ if ( !window.CKEDITOR )
* It may be a full, absolute, or relative URL.
* @returns {String} The full URL.
* @example
- * // e.g. http//www.example.com/ckeditor/skins/default/editor.css?t=87dm
+ * // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );
* @example
- * // e.g. http//www.example.com/skins/default/editor.css?t=87dm
+ * // e.g. http://www.example.com/skins/default/editor.css?t=87dm
* alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );
* @example
- * // e.g. http//www.somesite.com/skins/default/editor.css?t=87dm
- * alert( CKEDITOR.getUrl( 'http//www.somesite.com/skins/default/editor.css' ) );
+ * // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm
+ * alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );
*/
- getUrl function( resource )
+ getUrl : function( resource )
{
// If this is not a full or absolute path.
- if ( resource.indexOf('/') == -1 && resource.indexOf( '/' ) !== 0 )
+ if ( resource.indexOf(':/') == -1 && resource.indexOf( '/' ) !== 0 )
resource = this.basePath + resource;
// Add the timestamp, except for directories.
if ( this.timestamp && resource.charAt( resource.length - 1 ) != '/' && !(/[&?]t=/).test( resource ) )
- resource += ( resource.indexOf( '?' ) >= 0 ? '&' '?' ) + 't=' + this.timestamp;
+ resource += ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + 't=' + this.timestamp;
return resource;
}
@@ -214,13 +214,13 @@ if ( !window.CKEDITOR )
* @param {CKEDITOR.config} config A configuration object containing the
* settings defined for a {@link CKEDITOR.editor} instance up to this
* function call. Note that not all settings may still be available. See
- * <a href="http//docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Configuration_Loading_Order">Configuration Loading Order</a>
+ * <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Configuration_Loading_Order">Configuration Loading Order</a>
* for details.
* @example
* // This is supposed to be placed in the config.js file.
* CKEDITOR.editorConfig = function( config )
* {
- * // Define changes to default configuration here. For example
+ * // Define changes to default configuration here. For example:
* config.language = 'fr';
* config.uiColor = '#AADC6E';
* };
@@ -123,7 +123,7 @@ if ( CKEDITOR.status == 'unloaded' )
* settings.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
- * &lt;textarea id="myfield" name="myfield"&gt;&lt/textarea&gt;
+ * &lt;textarea id="myfield" name="myfield"&gt;&lt:/textarea&gt;
* ...
* <b>CKEDITOR.replace( 'myfield' )</b>;
* @example
@@ -144,7 +144,7 @@ if ( CKEDITOR.status == 'unloaded' )
* @param {String} [data] Since 3.3. Initial value for the instance.
* @returns {CKEDITOR.editor} The editor instance created.
* @example
- * &lt;div id="editorSpace"&gt;&lt/div&gt;
+ * &lt;div id="editorSpace"&gt;&lt:/div&gt;
* ...
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;
*/
@@ -199,7 +199,7 @@ if ( CKEDITOR.status == 'unloaded' )
// The textarea class name could be passed as the function
// parameter.
- var classRegex = new RegExp( '(?^|\\s)' + arguments[0] + '(?$|\\s)' );
+ var classRegex = new RegExp( '(?:^|\\s)' + arguments[0] + '(?:$|\\s)' );
if ( !classRegex.test( textarea.className ) )
continue;
View
@@ -27,7 +27,7 @@ provides:
* @example
* var command = new CKEDITOR.command( editor,
* {
- * exec function( editor )
+ * exec : function( editor )
* {
* alert( editor.document.getBody().getHtml() );
* }
@@ -41,7 +41,7 @@ CKEDITOR.command = function( editor, commandDefinition )
* itself, for example).
* @type Array
* @example
- * alert( 'Number of UI items associated to this command ' + command.<b>uiItems</b>.length );
+ * alert( 'Number of UI items associated to this command: ' + command.<b>uiItems</b>.length );
*/
this.uiItems = [];
@@ -74,16 +74,16 @@ CKEDITOR.command = function( editor, commandDefinition )
* execution will have no action if the current mode is not listed
* in this property.
* @type Object
- * @default { wysiwyg 1 }
+ * @default { wysiwyg : 1 }
* @see CKEDITOR.editor.prototype.mode
* @example
* // Enable the command in both WYSIWYG and Source modes.
- * command.<b>modes</b> = { wysiwyg 1, source 1 };
+ * command.<b>modes</b> = { wysiwyg : 1, source : 1 };
* @example
* // Enable the command in Source mode only.
- * command.<b>modes</b> = { source 1 };
+ * command.<b>modes</b> = { source : 1 };
*/
- modes { wysiwyg 1 },
+ modes : { wysiwyg : 1 },
/**
* Indicates that the editor will get the focus before executing
@@ -94,18 +94,18 @@ CKEDITOR.command = function( editor, commandDefinition )
* // Do not force the editor to have focus when executing the command.
* command.<b>editorFocus</b> = false;
*/
- editorFocus 1,
+ editorFocus : 1,
/**
- * Indicates the editor state. Possible values are
+ * Indicates the editor state. Possible values are:
* <ul>
- * <li>{@link CKEDITOR.TRISTATE_DISABLED} the command is
+ * <li>{@link CKEDITOR.TRISTATE_DISABLED}: the command is
* disabled. It's execution will have no effect. Same as
* {@link disable}.</li>
- * <li>{@link CKEDITOR.TRISTATE_ON} the command is enabled
+ * <li>{@link CKEDITOR.TRISTATE_ON}: the command is enabled
* and currently active in the editor (for context sensitive commands,
* for example).</li>
- * <li>{@link CKEDITOR.TRISTATE_OFF} the command is enabled
+ * <li>{@link CKEDITOR.TRISTATE_OFF}: the command is enabled
* and currently inactive in the editor (for context sensitive
* commands, for example).</li>
* </ul>
@@ -117,7 +117,7 @@ CKEDITOR.command = function( editor, commandDefinition )
* if ( command.<b>state</b> == CKEDITOR.TRISTATE_DISABLED )
* alert( 'This command is disabled' );
*/
- state CKEDITOR.TRISTATE_OFF
+ state : CKEDITOR.TRISTATE_OFF
});
// Call the CKEDITOR.event constructor to initialize this instance.
@@ -134,10 +134,10 @@ CKEDITOR.command.prototype =
* command.<b>enable()</b>;
* command.exec(); // Execute the command.
*/
- enable function()
+ enable : function()
{
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
- this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF this.previousState );
+ this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF : this.previousState );
},
/**
@@ -148,7 +148,7 @@ CKEDITOR.command.prototype =
* command.<b>disable()</b>;
* command.exec(); // "false" - Nothing happens.
*/
- disable function()
+ disable : function()
{
this.setState( CKEDITOR.TRISTATE_DISABLED );
},
@@ -165,7 +165,7 @@ CKEDITOR.command.prototype =
* command.<b>setState( CKEDITOR.TRISTATE_OFF )</b>;
* command.exec(); // Execute the command.
*/
- setState function( newState )
+ setState : function( newState )
{
// Do nothing if there is no state change.
if ( this.state == newState )
@@ -189,7 +189,7 @@ CKEDITOR.command.prototype =
* @example
* command.<b>toggleState()</b>;
*/
- toggleState function()
+ toggleState : function()
{
if ( this.state == CKEDITOR.TRISTATE_OFF )
this.setState( CKEDITOR.TRISTATE_ON );
Oops, something went wrong.

0 comments on commit 952bc7b

Please sign in to comment.