radiant-ck_editor_filter-extension 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (531) hide show
  1. data/README.markdown +7 -1
  2. data/VERSION +1 -1
  3. data/ck_editor_filter_extension.rb +1 -1
  4. data/public/javascripts/extensions/ck_editor_filter/ckeditor/CHANGES.html +1130 -373
  5. data/public/javascripts/extensions/ck_editor_filter/ckeditor/INSTALL.html +2 -2
  6. data/public/javascripts/extensions/ck_editor_filter/ckeditor/LICENSE.html +2 -2
  7. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/application.xml +32 -0
  8. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/run.bat +9 -0
  9. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/run.sh +8 -0
  10. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/adobeair/sample.html +45 -0
  11. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ajax.html +23 -25
  12. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api.html +64 -24
  13. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog.html +36 -19
  14. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/api_dialog/my_dialog.js +1 -1
  15. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/advanced.asp +105 -0
  16. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/events.asp +136 -0
  17. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/index.html +103 -0
  18. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/replace.asp +72 -0
  19. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/replaceall.asp +77 -0
  20. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/sample_posteddata.asp +46 -0
  21. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/asp/standalone.asp +72 -0
  22. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/_posteddata.php +59 -0
  23. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/output_for_flash.fla +0 -0
  24. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/output_for_flash.swf +0 -0
  25. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/output_xhtml.css +204 -0
  26. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/parsesample.css +70 -0
  27. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/assets/swfobject.js +18 -0
  28. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/autogrow.html +103 -0
  29. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/bbcode.html +136 -0
  30. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/devtools.html +94 -0
  31. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/divreplace.html +27 -10
  32. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/enterkey.html +39 -12
  33. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/fullpage.html +33 -13
  34. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/index.html +88 -25
  35. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/jqueryadapter.html +34 -8
  36. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_for_flash.html +275 -0
  37. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_html.html +285 -0
  38. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/output_xhtml.html +181 -0
  39. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/advanced.php +56 -29
  40. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/events.php +58 -35
  41. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/index.html +47 -0
  42. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replace.php +48 -24
  43. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/replaceall.php +50 -30
  44. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/php/standalone.php +52 -33
  45. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/placeholder.html +81 -0
  46. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/readonly.html +91 -0
  47. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebyclass.html +22 -7
  48. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/replacebycode.html +25 -8
  49. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.css +85 -3
  50. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample.js +1 -1
  51. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sample_posteddata.php +21 -59
  52. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/sharedspaces.html +32 -10
  53. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/skins.html +38 -11
  54. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/stylesheetparser.html +93 -0
  55. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/tableresize.html +115 -0
  56. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_color.html +49 -7
  57. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_samples/ui_languages.html +53 -23
  58. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/adapters/jquery.js +17 -8
  59. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/_bootstrap.js +21 -18
  60. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor.js +42 -4
  61. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_base.js +66 -29
  62. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ckeditor_basic.js +12 -15
  63. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/command.js +138 -2
  64. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/commanddefinition.js +59 -16
  65. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/config.js +142 -18
  66. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dataprocessor.js +6 -7
  67. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom.js +2 -3
  68. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/comment.js +1 -1
  69. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/document.js +29 -2
  70. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/documentfragment.js +3 -3
  71. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/domobject.js +59 -11
  72. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/element.js +249 -27
  73. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/elementpath.js +18 -3
  74. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/event.js +1 -1
  75. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/node.js +84 -56
  76. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/nodelist.js +4 -1
  77. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/range.js +345 -48
  78. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/rangelist.js +213 -0
  79. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/text.js +6 -1
  80. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/walker.js +40 -29
  81. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/window.js +1 -1
  82. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dtd.js +15 -11
  83. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor.js +336 -15
  84. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/editor_basic.js +19 -12
  85. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/env.js +80 -17
  86. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/event.js +12 -6
  87. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/eventInfo.js +5 -5
  88. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/focusmanager.js +27 -12
  89. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser.js +17 -5
  90. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/basicwriter.js +3 -3
  91. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/cdata.js +1 -1
  92. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/comment.js +1 -1
  93. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/element.js +14 -5
  94. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/filter.js +34 -8
  95. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/fragment.js +105 -108
  96. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/htmlparser/text.js +1 -1
  97. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/lang.js +12 -7
  98. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/loader.js +7 -9
  99. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugindefinition.js +18 -1
  100. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/plugins.js +21 -3
  101. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/resourcemanager.js +1 -1
  102. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/scriptloader.js +7 -25
  103. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/skins.js +5 -25
  104. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/themes.js +1 -1
  105. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/tools.js +61 -12
  106. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ui.js +13 -1
  107. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_languages.js +2 -1
  108. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/_translationstatus.txt +58 -57
  109. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/af.js +521 -410
  110. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ar.js +160 -49
  111. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bg.js +162 -51
  112. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bn.js +162 -51
  113. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/bs.js +162 -51
  114. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ca.js +260 -149
  115. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cs.js +233 -122
  116. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/cy.js +159 -48
  117. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/da.js +162 -51
  118. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/de.js +217 -106
  119. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/el.js +162 -51
  120. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-au.js +166 -55
  121. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-ca.js +166 -55
  122. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en-gb.js +277 -166
  123. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/en.js +166 -55
  124. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eo.js +162 -51
  125. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/es.js +182 -71
  126. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/et.js +162 -51
  127. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/eu.js +162 -51
  128. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fa.js +162 -51
  129. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fi.js +178 -67
  130. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fo.js +339 -228
  131. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr-ca.js +162 -51
  132. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/fr.js +261 -150
  133. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gl.js +162 -51
  134. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/gu.js +162 -51
  135. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/he.js +179 -68
  136. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hi.js +162 -51
  137. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hr.js +162 -51
  138. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/hu.js +341 -230
  139. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/is.js +162 -51
  140. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/it.js +162 -51
  141. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ja.js +195 -84
  142. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ka.js +810 -0
  143. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/km.js +162 -51
  144. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ko.js +162 -51
  145. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lt.js +162 -51
  146. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/lv.js +162 -51
  147. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/mn.js +162 -51
  148. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ms.js +162 -51
  149. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nb.js +286 -175
  150. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/nl.js +178 -67
  151. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/no.js +286 -175
  152. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pl.js +279 -168
  153. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt-br.js +318 -208
  154. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/pt.js +162 -51
  155. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ro.js +162 -51
  156. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/ru.js +159 -48
  157. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sk.js +192 -81
  158. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sl.js +161 -50
  159. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr-latn.js +162 -51
  160. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sr.js +162 -51
  161. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/sv.js +357 -247
  162. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/th.js +162 -51
  163. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/tr.js +345 -235
  164. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/uk.js +387 -276
  165. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/vi.js +336 -225
  166. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh-cn.js +271 -160
  167. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/lang/zh.js +162 -51
  168. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +16 -5
  169. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/en.js +3 -3
  170. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
  171. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/plugin.js +4 -3
  172. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/dialogs/about.js +4 -1
  173. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/about/plugin.js +2 -1
  174. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/adobeair/plugin.js +228 -0
  175. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/ajax/plugin.js +152 -0
  176. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/autogrow/plugin.js +88 -0
  177. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/basicstyles/plugin.js +27 -19
  178. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/bbcode/plugin.js +924 -0
  179. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/bidi/plugin.js +331 -0
  180. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/blockquote/plugin.js +8 -4
  181. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/button/plugin.js +70 -55
  182. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/dialogs/paste.js +115 -78
  183. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/clipboard/plugin.js +133 -69
  184. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colorbutton/plugin.js +91 -23
  185. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +192 -43
  186. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/colordialog/plugin.js +12 -10
  187. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/contextmenu/plugin.js +124 -221
  188. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/devtools/lang/en.js +16 -0
  189. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/devtools/plugin.js +173 -0
  190. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/dialogDefinition.js +840 -56
  191. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialog/plugin.js +652 -301
  192. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogadvtab/plugin.js +205 -0
  193. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/dialogui/plugin.js +179 -50
  194. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/dialogs/div.js +40 -40
  195. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/div/plugin.js +4 -4
  196. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/docprops/dialogs/docprops.js +686 -0
  197. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/docprops/plugin.js +22 -0
  198. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/domiterator/plugin.js +59 -53
  199. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/editingblock/plugin.js +62 -17
  200. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/elementspath/plugin.js +137 -108
  201. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/enterkey/plugin.js +117 -47
  202. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/entities/plugin.js +95 -45
  203. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/fakeobjects/plugin.js +22 -16
  204. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/filebrowser/plugin.js +75 -30
  205. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/dialogs/find.js +111 -69
  206. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/find/plugin.js +2 -1
  207. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/dialogs/flash.js +28 -20
  208. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/flash/plugin.js +14 -11
  209. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/floatpanel/plugin.js +50 -21
  210. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/font/plugin.js +3 -2
  211. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/format/plugin.js +17 -13
  212. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/button.js +38 -55
  213. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/checkbox.js +21 -11
  214. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/form.js +6 -6
  215. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +26 -17
  216. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/radio.js +6 -6
  217. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/select.js +13 -7
  218. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textarea.js +4 -4
  219. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/dialogs/textfield.js +11 -5
  220. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
  221. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/forms/plugin.js +112 -41
  222. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/horizontalrule/plugin.js +1 -1
  223. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmldataprocessor/plugin.js +200 -63
  224. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/htmlwriter/plugin.js +26 -21
  225. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/dialogs/iframe.js +257 -0
  226. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
  227. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframe/plugin.js +106 -0
  228. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/iframedialog/plugin.js +59 -7
  229. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/dialogs/image.js +243 -218
  230. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/image/plugin.js +19 -2
  231. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/indent/plugin.js +335 -223
  232. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/justify/plugin.js +115 -30
  233. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/keystrokes/plugin.js +3 -7
  234. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/anchor.js +85 -40
  235. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/dialogs/link.js +163 -184
  236. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/link/plugin.js +180 -32
  237. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/list/plugin.js +165 -81
  238. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/listblock/plugin.js +11 -6
  239. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +204 -0
  240. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/liststyle/plugin.js +66 -0
  241. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/maximize/plugin.js +109 -40
  242. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menu/plugin.js +166 -67
  243. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/menubutton/plugin.js +12 -7
  244. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/newpage/plugin.js +3 -3
  245. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pagebreak/plugin.js +95 -29
  246. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panel/plugin.js +43 -20
  247. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/panelbutton/plugin.js +10 -11
  248. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/filter/default.js +316 -119
  249. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastefromword/plugin.js +32 -11
  250. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +19 -29
  251. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/plugin.js +15 -79
  252. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +71 -0
  253. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/lang/en.js +16 -0
  254. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/lang/he.js +16 -0
  255. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
  256. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/placeholder/plugin.js +171 -0
  257. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/popup/plugin.js +9 -7
  258. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/preview/plugin.js +3 -2
  259. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/print/plugin.js +2 -1
  260. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/removeformat/plugin.js +89 -36
  261. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/resize/plugin.js +71 -18
  262. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/richcombo/plugin.js +40 -29
  263. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/save/plugin.js +2 -1
  264. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/dialogs/options.js +114 -110
  265. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/scayt/plugin.js +531 -170
  266. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/selection/plugin.js +791 -331
  267. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
  268. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
  269. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
  270. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
  271. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
  272. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
  273. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
  274. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
  275. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
  276. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
  277. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
  278. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showblocks/plugin.js +14 -8
  279. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/showborders/plugin.js +63 -26
  280. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/dialogs/smiley.js +31 -22
  281. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/smiley/plugin.js +15 -6
  282. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/sourcearea/plugin.js +18 -14
  283. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +36 -59
  284. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/lang/en.js +89 -0
  285. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/specialchar/plugin.js +45 -4
  286. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/styles/plugin.js +632 -212
  287. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/{stylescombo → styles}/styles/default.js +5 -2
  288. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylescombo/plugin.js +77 -140
  289. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/stylesheetparser/plugin.js +143 -0
  290. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tab/plugin.js +109 -3
  291. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/dialogs/table.js +106 -23
  292. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/table/plugin.js +11 -3
  293. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tableresize/plugin.js +450 -0
  294. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +66 -64
  295. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/tabletools/plugin.js +348 -179
  296. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/dialogs/templates.js +41 -36
  297. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/plugin.js +3 -4
  298. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/templates/templates/default.js +2 -2
  299. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/toolbar/plugin.js +193 -122
  300. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +6 -5
  301. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/en.js +1 -1
  302. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/lang/he.js +15 -0
  303. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/plugin.js +2 -2
  304. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +1 -1
  305. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/undo/plugin.js +73 -12
  306. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +1 -1
  307. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  308. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.css +1 -2
  309. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/dialogs/wsc.js +20 -4
  310. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wsc/plugin.js +2 -2
  311. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/wysiwygarea/plugin.js +751 -251
  312. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/xml/plugin.js +170 -0
  313. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/dialog.css +116 -18
  314. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/editor.css +1 -1
  315. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/elementspath.css +2 -1
  316. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.css +42 -2
  317. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons.png +0 -0
  318. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  319. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/mainui.css +25 -5
  320. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/menu.css +36 -15
  321. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/panel.css +18 -17
  322. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/presets.css +1 -1
  323. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/reset.css +7 -1
  324. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/richcombo.css +27 -10
  325. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/skin.js +4 -36
  326. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/templates.css +16 -12
  327. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/kama/toolbar.css +69 -83
  328. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/dialog.css +111 -13
  329. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/editor.css +1 -1
  330. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/elementspath.css +2 -1
  331. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.css +40 -1
  332. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons.png +0 -0
  333. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  334. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/mainui.css +33 -7
  335. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/menu.css +37 -15
  336. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/panel.css +23 -22
  337. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/presets.css +1 -1
  338. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/reset.css +7 -1
  339. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/richcombo.css +40 -20
  340. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/skin.js +10 -17
  341. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/templates.css +16 -10
  342. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/office2003/toolbar.css +79 -32
  343. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/dialog.css +112 -13
  344. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/editor.css +1 -1
  345. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/elementspath.css +2 -1
  346. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.css +40 -1
  347. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons.png +0 -0
  348. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  349. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/mainui.css +25 -5
  350. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/menu.css +38 -16
  351. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/panel.css +22 -21
  352. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/presets.css +1 -1
  353. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/reset.css +7 -1
  354. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/richcombo.css +36 -23
  355. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/skin.js +10 -17
  356. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/templates.css +16 -10
  357. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/skins/v2/toolbar.css +67 -27
  358. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/themes/default/theme.js +106 -46
  359. data/public/javascripts/extensions/ck_editor_filter/ckeditor/adapters/jquery.js +2 -2
  360. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.asp +955 -0
  361. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.js +141 -117
  362. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.pack +13 -7
  363. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor.php +1 -1
  364. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic.js +4 -4
  365. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_basic_source.js +2 -2
  366. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php4.php +27 -54
  367. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_php5.php +26 -53
  368. data/public/javascripts/extensions/ck_editor_filter/ckeditor/ckeditor_source.js +2 -2
  369. data/public/javascripts/extensions/ck_editor_filter/ckeditor/config.js +1 -1
  370. data/public/javascripts/extensions/ck_editor_filter/ckeditor/contents.css +4 -16
  371. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_languages.js +2 -2
  372. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/_translationstatus.txt +58 -57
  373. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/af.js +2 -2
  374. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ar.js +2 -2
  375. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bg.js +2 -2
  376. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bn.js +2 -2
  377. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/bs.js +2 -2
  378. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ca.js +2 -2
  379. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cs.js +2 -2
  380. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/cy.js +2 -2
  381. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/da.js +2 -2
  382. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/de.js +2 -2
  383. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/el.js +2 -2
  384. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-au.js +2 -2
  385. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-ca.js +2 -2
  386. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en-gb.js +2 -2
  387. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/en.js +2 -2
  388. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eo.js +2 -2
  389. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/es.js +2 -2
  390. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/et.js +2 -2
  391. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/eu.js +2 -2
  392. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fa.js +2 -2
  393. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fi.js +2 -2
  394. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fo.js +2 -2
  395. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr-ca.js +2 -2
  396. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/fr.js +2 -2
  397. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gl.js +2 -2
  398. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/gu.js +2 -2
  399. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/he.js +2 -2
  400. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hi.js +2 -2
  401. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hr.js +2 -2
  402. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/hu.js +2 -2
  403. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/is.js +2 -2
  404. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/it.js +2 -2
  405. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ja.js +2 -2
  406. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ka.js +6 -0
  407. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/km.js +2 -2
  408. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ko.js +2 -2
  409. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lt.js +2 -2
  410. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/lv.js +2 -2
  411. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/mn.js +2 -2
  412. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ms.js +2 -2
  413. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nb.js +2 -2
  414. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/nl.js +2 -2
  415. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/no.js +2 -2
  416. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pl.js +2 -2
  417. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt-br.js +2 -2
  418. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/pt.js +2 -2
  419. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ro.js +2 -2
  420. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/ru.js +2 -2
  421. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sk.js +2 -2
  422. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sl.js +2 -2
  423. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr-latn.js +2 -2
  424. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sr.js +2 -2
  425. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/sv.js +2 -2
  426. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/th.js +2 -2
  427. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/tr.js +2 -2
  428. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/uk.js +2 -2
  429. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/vi.js +2 -2
  430. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh-cn.js +2 -2
  431. data/public/javascripts/extensions/ck_editor_filter/ckeditor/lang/zh.js +2 -2
  432. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +2 -2
  433. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/en.js +2 -2
  434. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
  435. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/about/dialogs/about.js +2 -2
  436. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/adobeair/plugin.js +6 -0
  437. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/ajax/plugin.js +6 -0
  438. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/autogrow/plugin.js +6 -0
  439. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/bbcode/plugin.js +9 -0
  440. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/clipboard/dialogs/paste.js +3 -3
  441. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/colordialog/dialogs/colordialog.js +3 -2
  442. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/devtools/lang/en.js +6 -0
  443. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/devtools/plugin.js +6 -0
  444. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  445. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/div/dialogs/div.js +3 -2
  446. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/docprops/dialogs/docprops.js +10 -0
  447. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/docprops/plugin.js +6 -0
  448. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/find/dialogs/find.js +5 -5
  449. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/flash/dialogs/flash.js +5 -5
  450. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/button.js +2 -2
  451. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/checkbox.js +2 -2
  452. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/form.js +2 -2
  453. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/hiddenfield.js +2 -2
  454. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/radio.js +2 -2
  455. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/select.js +4 -4
  456. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textarea.js +2 -2
  457. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/dialogs/textfield.js +2 -2
  458. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  459. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
  460. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  461. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/iframedialog/plugin.js +2 -2
  462. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/image/dialogs/image.js +9 -9
  463. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/anchor.js +2 -2
  464. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/link/dialogs/link.js +7 -7
  465. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/liststyle/dialogs/liststyle.js +6 -0
  466. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastefromword/filter/default.js +7 -6
  467. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/pastetext/dialogs/pastetext.js +2 -2
  468. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
  469. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/lang/en.js +6 -0
  470. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/lang/he.js +6 -0
  471. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  472. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/placeholder/plugin.js +6 -0
  473. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/radiantpreview/images/radiant-preview.png +0 -0
  474. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/options.js +4 -4
  475. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/scayt/dialogs/toolbar.css +1 -1
  476. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  477. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  478. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  479. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  480. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  481. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  482. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  483. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  484. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  485. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  486. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  487. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/smiley/dialogs/smiley.js +3 -3
  488. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/dialogs/specialchar.js +3 -3
  489. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/specialchar/lang/en.js +6 -0
  490. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/{stylescombo → styles}/styles/default.js +2 -2
  491. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/stylesheetparser/plugin.js +6 -0
  492. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/table/dialogs/table.js +5 -5
  493. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tableresize/plugin.js +7 -0
  494. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/tabletools/dialogs/tableCell.js +4 -4
  495. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/dialogs/templates.js +3 -3
  496. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/templates/templates/default.js +2 -2
  497. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/dialogs/uicolor.js +3 -3
  498. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/en.js +1 -1
  499. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/lang/he.js +6 -0
  500. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/plugin.js +2 -2
  501. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/assets/yui.css +2 -2
  502. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/uicolor/yui/yui.js +1 -1
  503. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/ciframe.html +1 -1
  504. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  505. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.css +2 -2
  506. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/wsc/dialogs/wsc.js +3 -3
  507. data/public/javascripts/extensions/ck_editor_filter/ckeditor/plugins/xml/plugin.js +6 -0
  508. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/dialog.css +5 -5
  509. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/editor.css +9 -8
  510. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons.png +0 -0
  511. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/icons_rtl.png +0 -0
  512. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/skin.js +3 -3
  513. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/kama/templates.css +2 -2
  514. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/dialog.css +5 -5
  515. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/editor.css +10 -9
  516. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons.png +0 -0
  517. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/icons_rtl.png +0 -0
  518. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/skin.js +2 -2
  519. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/office2003/templates.css +2 -2
  520. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/dialog.css +5 -4
  521. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/editor.css +9 -8
  522. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons.png +0 -0
  523. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/icons_rtl.png +0 -0
  524. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/skin.js +2 -2
  525. data/public/javascripts/extensions/ck_editor_filter/ckeditor/skins/v2/templates.css +2 -2
  526. data/public/javascripts/extensions/ck_editor_filter/ckeditor/themes/default/theme.js +4 -4
  527. data/public/javascripts/extensions/ck_editor_filter/radiant.ckeditor.js +21 -12
  528. metadata +94 -9
  529. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/ajax.js +0 -143
  530. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/imagecacher.js +0 -58
  531. data/public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/xml.js +0 -165
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -30,41 +30,75 @@ CKEDITOR.plugins.add( 'link',
30
30
  CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' );
31
31
 
32
32
  // Add the CSS styles for anchor placeholders.
33
+
34
+ var side = ( editor.lang.dir == 'rtl' ? 'right' : 'left' );
35
+ var basicCss =
36
+ 'background:url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ') no-repeat ' + side + ' center;' +
37
+ 'border:1px dotted #00f;';
38
+
33
39
  editor.addCss(
34
- 'img.cke_anchor' +
40
+ 'a.cke_anchor,a.cke_anchor_empty' +
41
+ // IE6 breaks with the following selectors.
42
+ ( ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) ? '' :
43
+ ',a[name],a[data-cke-saved-name]' ) +
35
44
  '{' +
36
- 'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ');' +
37
- 'background-position: center center;' +
38
- 'background-repeat: no-repeat;' +
39
- 'border: 1px solid #a9a9a9;' +
40
- 'width: 18px;' +
41
- 'height: 18px;' +
42
- '}\n' +
43
- 'a.cke_anchor' +
45
+ basicCss +
46
+ 'padding-' + side + ':18px;' +
47
+ // Show the arrow cursor for the anchor image (FF at least).
48
+ 'cursor:auto;' +
49
+ '}' +
50
+ ( CKEDITOR.env.ie ? (
51
+ 'a.cke_anchor_empty' +
52
+ '{' +
53
+ // Make empty anchor selectable on IE.
54
+ 'display:inline-block;' +
55
+ '}'
56
+ ) : '' ) +
57
+ 'img.cke_anchor' +
44
58
  '{' +
45
- 'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ');' +
46
- 'background-position: 0 center;' +
47
- 'background-repeat: no-repeat;' +
48
- 'border: 1px solid #a9a9a9;' +
49
- 'padding-left: 18px;' +
50
- '}'
51
- );
59
+ basicCss +
60
+ 'width:16px;' +
61
+ 'min-height:15px;' +
62
+ // The default line-height on IE.
63
+ 'height:1.15em;' +
64
+ // Opera works better with "middle" (even if not perfect)
65
+ 'vertical-align:' + ( CKEDITOR.env.opera ? 'middle' : 'text-bottom' ) + ';' +
66
+ '}');
52
67
 
53
68
  // Register selection change handler for the unlink button.
54
69
  editor.on( 'selectionChange', function( evt )
55
70
  {
71
+ if ( editor.readOnly )
72
+ return;
73
+
56
74
  /*
57
75
  * Despite our initial hope, document.queryCommandEnabled() does not work
58
76
  * for this in Firefox. So we must detect the state by element paths.
59
77
  */
60
78
  var command = editor.getCommand( 'unlink' ),
61
- element = evt.data.path.lastElement.getAscendant( 'a', true );
62
- if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) )
79
+ element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true );
80
+ if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) && element.getChildCount() )
63
81
  command.setState( CKEDITOR.TRISTATE_OFF );
64
82
  else
65
83
  command.setState( CKEDITOR.TRISTATE_DISABLED );
66
84
  } );
67
85
 
86
+ editor.on( 'doubleclick', function( evt )
87
+ {
88
+ var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element;
89
+
90
+ if ( !element.isReadOnly() )
91
+ {
92
+ if ( element.is( 'a' ) )
93
+ {
94
+ evt.data.dialog = ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ? 'anchor' : 'link';
95
+ editor.getSelection().selectElement( element );
96
+ }
97
+ else if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) )
98
+ evt.data.dialog = 'anchor';
99
+ }
100
+ });
101
+
68
102
  // If the "menu" plugin is loaded, register the menu items.
69
103
  if ( editor.addMenuItems )
70
104
  {
@@ -100,22 +134,23 @@ CKEDITOR.plugins.add( 'link',
100
134
  {
101
135
  editor.contextMenu.addListener( function( element, selection )
102
136
  {
103
- if ( !element )
137
+ if ( !element || element.isReadOnly() )
104
138
  return null;
105
139
 
106
- var isAnchor = ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'anchor' );
140
+ var anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element );
107
141
 
108
- if ( !isAnchor )
109
- {
110
- if ( !( element = element.getAscendant( 'a', true ) ) )
142
+ if ( !anchor && !( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) )
111
143
  return null;
112
144
 
113
- isAnchor = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) );
114
- }
145
+ var menu = {};
146
+
147
+ if ( anchor.getAttribute( 'href' ) && anchor.getChildCount() )
148
+ menu = { link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF };
149
+
150
+ if ( anchor && anchor.hasAttribute( 'name' ) )
151
+ menu.anchor = CKEDITOR.TRISTATE_OFF;
115
152
 
116
- return isAnchor ?
117
- { anchor : CKEDITOR.TRISTATE_OFF } :
118
- { link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF };
153
+ return menu;
119
154
  });
120
155
  }
121
156
  },
@@ -125,7 +160,9 @@ CKEDITOR.plugins.add( 'link',
125
160
  // Register a filter to displaying placeholders after mode change.
126
161
 
127
162
  var dataProcessor = editor.dataProcessor,
128
- dataFilter = dataProcessor && dataProcessor.dataFilter;
163
+ dataFilter = dataProcessor && dataProcessor.dataFilter,
164
+ htmlFilter = dataProcessor && dataProcessor.htmlFilter,
165
+ pathFilters = editor._.elementsPath && editor._.elementsPath.filters;
129
166
 
130
167
  if ( dataFilter )
131
168
  {
@@ -136,8 +173,59 @@ CKEDITOR.plugins.add( 'link',
136
173
  a : function( element )
137
174
  {
138
175
  var attributes = element.attributes;
139
- if ( attributes.name && !attributes.href )
176
+ if ( !attributes.name )
177
+ return null;
178
+
179
+ var isEmpty = !element.children.length;
180
+
181
+ if ( CKEDITOR.plugins.link.synAnchorSelector )
182
+ {
183
+ // IE needs a specific class name to be applied
184
+ // to the anchors, for appropriate styling.
185
+ var ieClass = isEmpty ? 'cke_anchor_empty' : 'cke_anchor';
186
+ var cls = attributes[ 'class' ];
187
+ if ( attributes.name && ( !cls || cls.indexOf( ieClass ) < 0 ) )
188
+ attributes[ 'class' ] = ( cls || '' ) + ' ' + ieClass;
189
+
190
+ if ( isEmpty && CKEDITOR.plugins.link.emptyAnchorFix )
191
+ {
192
+ attributes.contenteditable = 'false';
193
+ attributes[ 'data-cke-editable' ] = 1;
194
+ }
195
+ }
196
+ else if ( CKEDITOR.plugins.link.fakeAnchor && isEmpty )
140
197
  return editor.createFakeParserElement( element, 'cke_anchor', 'anchor' );
198
+
199
+ return null;
200
+ }
201
+ }
202
+ });
203
+ }
204
+
205
+ if ( CKEDITOR.plugins.link.emptyAnchorFix && htmlFilter )
206
+ {
207
+ htmlFilter.addRules(
208
+ {
209
+ elements :
210
+ {
211
+ a : function( element )
212
+ {
213
+ delete element.attributes.contenteditable;
214
+ }
215
+ }
216
+ });
217
+ }
218
+
219
+ if ( pathFilters )
220
+ {
221
+ pathFilters.push( function( element, name )
222
+ {
223
+ if ( name == 'a' )
224
+ {
225
+ if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) ||
226
+ ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) )
227
+ {
228
+ return 'anchor';
141
229
  }
142
230
  }
143
231
  });
@@ -147,6 +235,64 @@ CKEDITOR.plugins.add( 'link',
147
235
  requires : [ 'fakeobjects' ]
148
236
  } );
149
237
 
238
+ CKEDITOR.plugins.link =
239
+ {
240
+ /**
241
+ * Get the surrounding link element of current selection.
242
+ * @param editor
243
+ * @example CKEDITOR.plugins.link.getSelectedLink( editor );
244
+ * @since 3.2.1
245
+ * The following selection will all return the link element.
246
+ * <pre>
247
+ * <a href="#">li^nk</a>
248
+ * <a href="#">[link]</a>
249
+ * text[<a href="#">link]</a>
250
+ * <a href="#">li[nk</a>]
251
+ * [<b><a href="#">li]nk</a></b>]
252
+ * [<a href="#"><b>li]nk</b></a>
253
+ * </pre>
254
+ */
255
+ getSelectedLink : function( editor )
256
+ {
257
+ try
258
+ {
259
+ var selection = editor.getSelection();
260
+ if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT )
261
+ {
262
+ var selectedElement = selection.getSelectedElement();
263
+ if ( selectedElement.is( 'a' ) )
264
+ return selectedElement;
265
+ }
266
+
267
+ var range = selection.getRanges( true )[ 0 ];
268
+ range.shrink( CKEDITOR.SHRINK_TEXT );
269
+ var root = range.getCommonAncestor();
270
+ return root.getAscendant( 'a', true );
271
+ }
272
+ catch( e ) { return null; }
273
+ },
274
+
275
+ // Opera and WebKit don't make it possible to select empty anchors. Fake
276
+ // elements must be used for them.
277
+ fakeAnchor : CKEDITOR.env.opera || CKEDITOR.env.webkit,
278
+
279
+ // For browsers that don't support CSS3 a[name]:empty(), note IE9 is included because of #7783.
280
+ synAnchorSelector : CKEDITOR.env.ie,
281
+
282
+ // For browsers that have editing issue with empty anchor.
283
+ emptyAnchorFix : CKEDITOR.env.ie && CKEDITOR.env.version < 8,
284
+
285
+ tryRestoreFakeAnchor : function( editor, element )
286
+ {
287
+ if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' ) == 'anchor' )
288
+ {
289
+ var link = editor.restoreRealElement( element );
290
+ if ( link.data( 'cke-saved-name' ) )
291
+ return link;
292
+ }
293
+ }
294
+ };
295
+
150
296
  CKEDITOR.unlinkCommand = function(){};
151
297
  CKEDITOR.unlinkCommand.prototype =
152
298
  {
@@ -178,7 +324,9 @@ CKEDITOR.unlinkCommand.prototype =
178
324
  selection.selectRanges( ranges );
179
325
  editor.document.$.execCommand( 'unlink', false, null );
180
326
  selection.selectBookmarks( bookmarks );
181
- }
327
+ },
328
+
329
+ startDisabled : true
182
330
  };
183
331
 
184
332
  CKEDITOR.tools.extend( CKEDITOR.config,
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -12,6 +12,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
12
12
  var listNodeNames = { ol : 1, ul : 1 },
13
13
  emptyTextRegex = /^[\n\r\t ]*$/;
14
14
 
15
+ var whitespaces = CKEDITOR.dom.walker.whitespaces(),
16
+ bookmarks = CKEDITOR.dom.walker.bookmark(),
17
+ nonEmpty = function( node ){ return !( whitespaces( node ) || bookmarks( node ) ); };
18
+
15
19
  CKEDITOR.plugins.list = {
16
20
  /*
17
21
  * Convert a DOM list tree into a data structure that is easier to
@@ -29,15 +33,20 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
29
33
  if ( !baseArray )
30
34
  baseArray = [];
31
35
 
32
- // Iterate over all list items to get their contents and look for inner lists.
36
+ // Iterate over all list items to and look for inner lists.
33
37
  for ( var i = 0, count = listNode.getChildCount() ; i < count ; i++ )
34
38
  {
35
39
  var listItem = listNode.getChild( i );
36
40
 
41
+ // Fixing malformed nested lists by moving it into a previous list item. (#6236)
42
+ if( listItem.type == CKEDITOR.NODE_ELEMENT && listItem.getName() in CKEDITOR.dtd.$list )
43
+ CKEDITOR.plugins.list.listToArray( listItem, database, baseArray, baseIndentLevel + 1 );
44
+
37
45
  // It may be a text node or some funny stuff.
38
46
  if ( listItem.$.nodeName.toLowerCase() != 'li' )
39
47
  continue;
40
- var itemObj = { 'parent' : listNode, indent : baseIndentLevel, contents : [] };
48
+
49
+ var itemObj = { 'parent' : listNode, indent : baseIndentLevel, element : listItem, contents : [] };
41
50
  if ( !grandparentNode )
42
51
  {
43
52
  itemObj.grandparent = listNode.getParent();
@@ -51,9 +60,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
51
60
  CKEDITOR.dom.element.setMarker( database, listItem, 'listarray_index', baseArray.length );
52
61
  baseArray.push( itemObj );
53
62
 
54
- for ( var j = 0, itemChildCount = listItem.getChildCount() ; j < itemChildCount ; j++ )
63
+ for ( var j = 0, itemChildCount = listItem.getChildCount(), child; j < itemChildCount ; j++ )
55
64
  {
56
- var child = listItem.getChild( j );
65
+ child = listItem.getChild( j );
57
66
  if ( child.type == CKEDITOR.NODE_ELEMENT && listNodeNames[ child.getName() ] )
58
67
  // Note the recursion here, it pushes inner list items with
59
68
  // +1 indentation in the correct order.
@@ -66,7 +75,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
66
75
  },
67
76
 
68
77
  // Convert our internal representation of a list back to a DOM forest.
69
- arrayToList : function( listArray, database, baseIndex, paragraphMode )
78
+ arrayToList : function( listArray, database, baseIndex, paragraphMode, dir )
70
79
  {
71
80
  if ( !baseIndex )
72
81
  baseIndex = 0;
@@ -78,52 +87,89 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
78
87
  currentIndex = baseIndex,
79
88
  indentLevel = Math.max( listArray[ baseIndex ].indent, 0 ),
80
89
  currentListItem = null,
90
+ itemDir,
81
91
  paragraphName = ( paragraphMode == CKEDITOR.ENTER_P ? 'p' : 'div' );
82
- while ( true )
92
+ while ( 1 )
83
93
  {
84
94
  var item = listArray[ currentIndex ];
85
95
  if ( item.indent == indentLevel )
86
96
  {
87
97
  if ( !rootNode || listArray[ currentIndex ].parent.getName() != rootNode.getName() )
88
98
  {
89
- rootNode = listArray[ currentIndex ].parent.clone( false, true );
99
+ rootNode = listArray[ currentIndex ].parent.clone( false, 1 );
100
+ dir && rootNode.setAttribute( 'dir', dir );
90
101
  retval.append( rootNode );
91
102
  }
92
- currentListItem = rootNode.append( doc.createElement( 'li' ) );
103
+ currentListItem = rootNode.append( item.element.clone( 0, 1 ) );
93
104
  for ( var i = 0 ; i < item.contents.length ; i++ )
94
- currentListItem.append( item.contents[i].clone( true, true ) );
105
+ currentListItem.append( item.contents[i].clone( 1, 1 ) );
95
106
  currentIndex++;
96
107
  }
97
108
  else if ( item.indent == Math.max( indentLevel, 0 ) + 1 )
98
109
  {
99
- var listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode );
110
+ // Maintain original direction (#6861).
111
+ var orgDir = item.element.getDirection( 1 ),
112
+ currDir = listArray[ currentIndex - 1 ].element.getDirection( 1 ),
113
+ listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode,
114
+ currDir != orgDir ? orgDir: null );
115
+
116
+ // If the next block is an <li> with another list tree as the first
117
+ // child, we'll need to append a filler (<br>/NBSP) or the list item
118
+ // wouldn't be editable. (#6724)
119
+ if ( !currentListItem.getChildCount() && CKEDITOR.env.ie && !( doc.$.documentMode > 7 ))
120
+ currentListItem.append( doc.createText( '\xa0' ) );
100
121
  currentListItem.append( listData.listNode );
101
122
  currentIndex = listData.nextIndex;
102
123
  }
103
124
  else if ( item.indent == -1 && !baseIndex && item.grandparent )
104
125
  {
105
- currentListItem;
106
126
  if ( listNodeNames[ item.grandparent.getName() ] )
107
- currentListItem = doc.createElement( 'li' );
127
+ {
128
+ currentListItem = item.element.clone( false, true );
129
+ itemDir = item.element.getDirection( 1 );
130
+ item.grandparent.getDirection( 1 ) != itemDir &&
131
+ currentListItem.setAttribute( 'dir', itemDir );
132
+ }
108
133
  else
109
134
  {
110
- if ( paragraphMode != CKEDITOR.ENTER_BR && item.grandparent.getName() != 'td' )
135
+ // Create completely new blocks here.
136
+ if ( dir || item.element.hasAttributes() || paragraphMode != CKEDITOR.ENTER_BR )
137
+ {
111
138
  currentListItem = doc.createElement( paragraphName );
139
+ item.element.copyAttributes( currentListItem, { type:1, value:1 } );
140
+ itemDir = item.element.getDirection() || dir;
141
+ itemDir &&
142
+ currentListItem.setAttribute( 'dir', itemDir );
143
+
144
+ // There might be a case where there are no attributes in the element after all
145
+ // (i.e. when "type" or "value" are the only attributes set). In this case, if enterMode = BR,
146
+ // the current item should be a fragment.
147
+ if ( !dir && paragraphMode == CKEDITOR.ENTER_BR && !currentListItem.hasAttributes() )
148
+ currentListItem = new CKEDITOR.dom.documentFragment( doc );
149
+ }
112
150
  else
113
151
  currentListItem = new CKEDITOR.dom.documentFragment( doc );
114
152
  }
115
153
 
116
154
  for ( i = 0 ; i < item.contents.length ; i++ )
117
- currentListItem.append( item.contents[i].clone( true, true ) );
155
+ currentListItem.append( item.contents[i].clone( 1, 1 ) );
118
156
 
119
157
  if ( currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT
120
158
  && currentIndex != listArray.length - 1 )
121
159
  {
122
- if ( currentListItem.getLast()
123
- && currentListItem.getLast().type == CKEDITOR.NODE_ELEMENT
124
- && currentListItem.getLast().getAttribute( 'type' ) == '_moz' )
125
- currentListItem.getLast().remove();
126
- currentListItem.appendBogus();
160
+ var last = currentListItem.getLast();
161
+ if ( last && last.type == CKEDITOR.NODE_ELEMENT
162
+ && last.getAttribute( 'type' ) == '_moz' )
163
+ {
164
+ last.remove();
165
+ }
166
+
167
+ if ( !( last = currentListItem.getLast( nonEmpty )
168
+ && last.type == CKEDITOR.NODE_ELEMENT
169
+ && last.getName() in CKEDITOR.dtd.$block ) )
170
+ {
171
+ currentListItem.append( doc.createElement( 'br' ) );
172
+ }
127
173
  }
128
174
 
129
175
  if ( currentListItem.type == CKEDITOR.NODE_ELEMENT &&
@@ -170,30 +216,26 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
170
216
  }
171
217
  };
172
218
 
173
- function setState( editor, state )
174
- {
175
- editor.getCommand( this.name ).setState( state );
176
- }
177
-
178
219
  function onSelectionChange( evt )
179
220
  {
221
+ if ( evt.editor.readOnly )
222
+ return null;
223
+
180
224
  var path = evt.data.path,
181
225
  blockLimit = path.blockLimit,
182
226
  elements = path.elements,
183
- element;
227
+ element,
228
+ i;
184
229
 
185
230
  // Grouping should only happen under blockLimit.(#3940).
186
- for ( var i = 0 ; i < elements.length && ( element = elements[ i ] )
231
+ for ( i = 0 ; i < elements.length && ( element = elements[ i ] )
187
232
  && !element.equals( blockLimit ); i++ )
188
233
  {
189
- if ( listNodeNames[ elements[i].getName() ] )
190
- {
191
- return setState.call( this, evt.editor,
192
- this.type == elements[i].getName() ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
193
- }
234
+ if ( listNodeNames[ elements[ i ].getName() ] )
235
+ return this.setState( this.type == elements[ i ].getName() ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
194
236
  }
195
237
 
196
- return setState.call( this, evt.editor, CKEDITOR.TRISTATE_OFF );
238
+ return this.setState( CKEDITOR.TRISTATE_OFF );
197
239
  }
198
240
 
199
241
  function changeListType( editor, groupObj, database, listsCreated )
@@ -216,7 +258,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
216
258
  CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true );
217
259
  }
218
260
 
219
- var fakeParent = groupObj.root.getDocument().createElement( this.type );
261
+ var root = groupObj.root,
262
+ fakeParent = root.getDocument().createElement( this.type );
263
+ // Copy all attributes, except from 'start' and 'type'.
264
+ root.copyAttributes( fakeParent, { start : 1, type : 1 } );
265
+ // The list-style-type property should be ignored.
266
+ fakeParent.removeStyle( 'list-style-type' );
267
+
220
268
  for ( i = 0 ; i < selectedListItems.length ; i++ )
221
269
  {
222
270
  var listIndex = selectedListItems[i].getCustomData( 'listarray_index' );
@@ -232,6 +280,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
232
280
  newList.listNode.replace( groupObj.root );
233
281
  }
234
282
 
283
+ var headerTagRegex = /^h[1-6]$/;
284
+
235
285
  function createList( editor, groupObj, listsCreated )
236
286
  {
237
287
  var contents = groupObj.contents,
@@ -254,6 +304,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
254
304
  for ( var i = 0 ; i < contents.length ; i++ )
255
305
  commonParent = commonParent.getCommonAncestor( contents[i].getParent() );
256
306
 
307
+ var useComputedState = editor.config.useComputedState,
308
+ listDir, explicitDirection;
309
+
310
+ useComputedState = useComputedState === undefined || useComputedState;
311
+
257
312
  // We want to insert things that are in the same tree level only, so calculate the contents again
258
313
  // by expanding the selected blocks to the same tree level.
259
314
  for ( i = 0 ; i < contents.length ; i++ )
@@ -265,6 +320,22 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
265
320
  if ( parentNode.equals( commonParent ) )
266
321
  {
267
322
  listContents.push( contentNode );
323
+
324
+ // Determine the lists's direction.
325
+ if ( !explicitDirection && contentNode.getDirection() )
326
+ explicitDirection = 1;
327
+
328
+ var itemDir = contentNode.getDirection( useComputedState );
329
+
330
+ if ( listDir !== null )
331
+ {
332
+ // If at least one LI have a different direction than current listDir, we can't have listDir.
333
+ if ( listDir && listDir != itemDir )
334
+ listDir = null;
335
+ else
336
+ listDir = itemDir;
337
+ }
338
+
268
339
  break;
269
340
  }
270
341
  contentNode = parentNode;
@@ -279,18 +350,38 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
279
350
  listNode = doc.createElement( this.type );
280
351
 
281
352
  listsCreated.push( listNode );
353
+
354
+ var contentBlock, listItem;
355
+
282
356
  while ( listContents.length )
283
357
  {
284
- var contentBlock = listContents.shift(),
285
- listItem = doc.createElement( 'li' );
286
- contentBlock.moveChildren( listItem );
287
- contentBlock.remove();
288
- listItem.appendTo( listNode );
358
+ contentBlock = listContents.shift();
359
+ listItem = doc.createElement( 'li' );
360
+
361
+ // Preserve preformat block and heading structure when converting to list item. (#5335) (#5271)
362
+ if ( contentBlock.is( 'pre' ) || headerTagRegex.test( contentBlock.getName() ) )
363
+ contentBlock.appendTo( listItem );
364
+ else
365
+ {
366
+ // Remove DIR attribute if it was merged into list root.
367
+ if ( listDir && contentBlock.getDirection() )
368
+ {
369
+ contentBlock.removeStyle( 'direction' );
370
+ contentBlock.removeAttribute( 'dir' );
371
+ }
372
+
373
+ contentBlock.copyAttributes( listItem );
374
+ contentBlock.moveChildren( listItem );
375
+ contentBlock.remove();
376
+ }
289
377
 
290
- // Append a bogus BR to force the LI to render at full height
291
- if ( !CKEDITOR.env.ie )
292
- listItem.appendBogus();
378
+ listItem.appendTo( listNode );
293
379
  }
380
+
381
+ // Apply list root dir only if it has been explicitly declared.
382
+ if ( listDir && explicitDirection )
383
+ listNode.setAttribute( 'dir', listDir );
384
+
294
385
  if ( insertAnchor )
295
386
  listNode.insertBefore( insertAnchor );
296
387
  else
@@ -340,7 +431,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
340
431
  }
341
432
  }
342
433
 
343
- var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode );
434
+ var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode,
435
+ groupObj.root.getAttribute( 'dir' ) );
344
436
 
345
437
  // Compensate <br> before/after the list node if the surrounds are non-blocks.(#3836)
346
438
  var docFragment = newList.listNode, boundaryNode, siblingNode;
@@ -368,11 +460,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
368
460
  listCommand.prototype = {
369
461
  exec : function( editor )
370
462
  {
371
- editor.focus();
372
-
373
463
  var doc = editor.document,
464
+ config = editor.config,
374
465
  selection = editor.getSelection(),
375
- ranges = selection && selection.getRanges();
466
+ ranges = selection && selection.getRanges( true );
376
467
 
377
468
  // There should be at least one selected range.
378
469
  if ( !ranges || ranges.length < 1 )
@@ -384,21 +475,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
384
475
  if ( this.state == CKEDITOR.TRISTATE_OFF )
385
476
  {
386
477
  var body = doc.getBody();
387
- body.trim();
388
- if ( !body.getFirst() )
478
+ if ( !body.getFirst( nonEmpty ) )
389
479
  {
390
- var paragraph = doc.createElement( editor.config.enterMode == CKEDITOR.ENTER_P ? 'p' :
391
- ( editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'br' ) );
392
- paragraph.appendTo( body );
393
- ranges = [ new CKEDITOR.dom.range( doc ) ];
394
- // IE exception on inserting anything when anchor inside <br>.
395
- if ( paragraph.is( 'br' ) )
396
- {
397
- ranges[ 0 ].setStartBefore( paragraph );
398
- ranges[ 0 ].setEndAfter( paragraph );
399
- }
400
- else
401
- ranges[ 0 ].selectNodeContents( paragraph );
480
+ config.enterMode == CKEDITOR.ENTER_BR ?
481
+ body.appendBogus() :
482
+ ranges[ 0 ].fixBlock( 1, config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' );
483
+
402
484
  selection.selectRanges( ranges );
403
485
  }
404
486
  // Maybe a single range there enclosing the whole list,
@@ -409,9 +491,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
409
491
  enclosedNode = range && range.getEnclosedNode();
410
492
  if ( enclosedNode && enclosedNode.is
411
493
  && this.type == enclosedNode.getName() )
412
- {
413
- setState.call( this, editor, CKEDITOR.TRISTATE_ON );
414
- }
494
+ this.setState( CKEDITOR.TRISTATE_ON );
415
495
  }
416
496
  }
417
497
 
@@ -420,12 +500,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
420
500
  // Group the blocks up because there are many cases where multiple lists have to be created,
421
501
  // or multiple lists have to be cancelled.
422
502
  var listGroups = [],
423
- database = {};
503
+ database = {},
504
+ rangeIterator = ranges.createIterator(),
505
+ index = 0;
424
506
 
425
- while ( ranges.length > 0 )
507
+ while ( ( range = rangeIterator.getNextRange() ) && ++index )
426
508
  {
427
- range = ranges.shift();
428
-
429
509
  var boundaryNodes = range.getBoundaryNodes(),
430
510
  startNode = boundaryNodes.startNode,
431
511
  endNode = boundaryNodes.endNode;
@@ -443,11 +523,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
443
523
 
444
524
  while ( ( block = iterator.getNextParagraph() ) )
445
525
  {
526
+ // Avoid duplicate blocks get processed across ranges.
527
+ if( block.getCustomData( 'list_block' ) )
528
+ continue;
529
+ else
530
+ CKEDITOR.dom.element.setMarker( database, block, 'list_block', 1 );
531
+
446
532
  var path = new CKEDITOR.dom.elementPath( block ),
447
533
  pathElements = path.elements,
448
534
  pathElementsCount = pathElements.length,
449
535
  listNode = null,
450
- processedFlag = false,
536
+ processedFlag = 0,
451
537
  blockLimit = path.blockLimit,
452
538
  element;
453
539
 
@@ -462,7 +548,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
462
548
  // no longer be valid. Since paragraphs after the list
463
549
  // should belong to a different group of paragraphs before
464
550
  // the list. (Bug #1309)
465
- blockLimit.removeCustomData( 'list_group_object' );
551
+ blockLimit.removeCustomData( 'list_group_object_' + index );
466
552
 
467
553
  var groupObj = element.getCustomData( 'list_group_object' );
468
554
  if ( groupObj )
@@ -473,7 +559,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
473
559
  listGroups.push( groupObj );
474
560
  CKEDITOR.dom.element.setMarker( database, element, 'list_group_object', groupObj );
475
561
  }
476
- processedFlag = true;
562
+ processedFlag = 1;
477
563
  break;
478
564
  }
479
565
  }
@@ -481,14 +567,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
481
567
  if ( processedFlag )
482
568
  continue;
483
569
 
484
- // No list ancestor? Group by block limit.
570
+ // No list ancestor? Group by block limit, but don't mix contents from different ranges.
485
571
  var root = blockLimit;
486
- if ( root.getCustomData( 'list_group_object' ) )
487
- root.getCustomData( 'list_group_object' ).contents.push( block );
572
+ if ( root.getCustomData( 'list_group_object_' + index ) )
573
+ root.getCustomData( 'list_group_object_' + index ).contents.push( block );
488
574
  else
489
575
  {
490
576
  groupObj = { root : root, contents : [ block ] };
491
- CKEDITOR.dom.element.setMarker( database, root, 'list_group_object', groupObj );
577
+ CKEDITOR.dom.element.setMarker( database, root, 'list_group_object_' + index, groupObj );
492
578
  listGroups.push( groupObj );
493
579
  }
494
580
  }
@@ -522,14 +608,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
522
608
  var sibling = listNode[ rtl ?
523
609
  'getPrevious' : 'getNext' ]( CKEDITOR.dom.walker.whitespaces( true ) );
524
610
  if ( sibling && sibling.getName &&
525
- sibling.getName() == listCommand.type )
611
+ sibling.getName() == listCommand.type )
526
612
  {
527
613
  sibling.remove();
528
614
  // Move children order by merge direction.(#3820)
529
- sibling.moveChildren( listNode, rtl ? true : false );
615
+ sibling.moveChildren( listNode, rtl );
530
616
  }
531
617
  } )();
532
- mergeSibling( true );
618
+ mergeSibling( 1 );
533
619
  }
534
620
 
535
621
  // Clean up, restore selection and update toolbar button states.
@@ -606,10 +692,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
606
692
  init : function( editor )
607
693
  {
608
694
  // Register commands.
609
- var numberedListCommand = new listCommand( 'numberedlist', 'ol' ),
610
- bulletedListCommand = new listCommand( 'bulletedlist', 'ul' );
611
- editor.addCommand( 'numberedlist', numberedListCommand );
612
- editor.addCommand( 'bulletedlist', bulletedListCommand );
695
+ var numberedListCommand = editor.addCommand( 'numberedlist', new listCommand( 'numberedlist', 'ol' ) ),
696
+ bulletedListCommand = editor.addCommand( 'bulletedlist', new listCommand( 'bulletedlist', 'ul' ) );
613
697
 
614
698
  // Register the toolbar button.
615
699
  editor.ui.addButton( 'NumberedList',