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
 
@@ -27,13 +27,86 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
27
27
  }
28
28
  };
29
29
 
30
+ function selectNextCellCommand( backward )
31
+ {
32
+ return {
33
+ editorFocus : false,
34
+ canUndo : false,
35
+ modes : { wysiwyg : 1 },
36
+ exec : function( editor )
37
+ {
38
+ if ( editor.focusManager.hasFocus )
39
+ {
40
+ var sel = editor.getSelection(),
41
+ ancestor = sel.getCommonAncestor(),
42
+ cell;
43
+
44
+ if ( ( cell = ( ancestor.getAscendant( 'td', true ) || ancestor.getAscendant( 'th', true ) ) ) )
45
+ {
46
+ var resultRange = new CKEDITOR.dom.range( editor.document ),
47
+ next = CKEDITOR.tools.tryThese( function()
48
+ {
49
+ var row = cell.getParent(),
50
+ next = row.$.cells[ cell.$.cellIndex + ( backward ? - 1 : 1 ) ];
51
+
52
+ // Invalid any empty value.
53
+ next.parentNode.parentNode;
54
+ return next;
55
+ },
56
+ function()
57
+ {
58
+ var row = cell.getParent(),
59
+ table = row.getAscendant( 'table' ),
60
+ nextRow = table.$.rows[ row.$.rowIndex + ( backward ? - 1 : 1 ) ];
61
+
62
+ return nextRow.cells[ backward? nextRow.cells.length -1 : 0 ];
63
+ });
64
+
65
+ // Clone one more row at the end of table and select the first newly established cell.
66
+ if ( ! ( next || backward ) )
67
+ {
68
+ var table = cell.getAscendant( 'table' ).$,
69
+ cells = cell.getParent().$.cells;
70
+
71
+ var newRow = new CKEDITOR.dom.element( table.insertRow( -1 ), editor.document );
72
+
73
+ for ( var i = 0, count = cells.length ; i < count; i++ )
74
+ {
75
+ var newCell = newRow.append( new CKEDITOR.dom.element(
76
+ cells[ i ], editor.document ).clone( false, false ) );
77
+ !CKEDITOR.env.ie && newCell.appendBogus();
78
+ }
79
+
80
+ resultRange.moveToElementEditStart( newRow );
81
+ }
82
+ else if ( next )
83
+ {
84
+ next = new CKEDITOR.dom.element( next );
85
+ resultRange.moveToElementEditStart( next );
86
+ // Avoid selecting empty block makes the cursor blind.
87
+ if ( !( resultRange.checkStartOfBlock() && resultRange.checkEndOfBlock() ) )
88
+ resultRange.selectNodeContents( next );
89
+ }
90
+ else
91
+ return true;
92
+
93
+ resultRange.select( true );
94
+ return true;
95
+ }
96
+ }
97
+ return false;
98
+ }
99
+ };
100
+ }
101
+
30
102
  CKEDITOR.plugins.add( 'tab',
31
103
  {
32
104
  requires : [ 'keystrokes' ],
33
105
 
34
106
  init : function( editor )
35
107
  {
36
- var tabSpaces = editor.config.tabSpaces || 0,
108
+ var tabTools = editor.config.enableTabKeyTools !== false,
109
+ tabSpaces = editor.config.tabSpaces || 0,
37
110
  tabText = '';
38
111
 
39
112
  while ( tabSpaces-- )
@@ -51,7 +124,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
51
124
  });
52
125
  }
53
126
 
54
- if ( CKEDITOR.env.webkit )
127
+ if ( tabTools )
128
+ {
129
+ editor.on( 'key', function( ev )
130
+ {
131
+ if ( ev.data.keyCode == 9 && editor.execCommand( 'selectNextCell' ) || // TAB
132
+ ev.data.keyCode == ( CKEDITOR.SHIFT + 9 ) && editor.execCommand( 'selectPreviousCell' ) ) // SHIFT+TAB
133
+ ev.cancel();
134
+ });
135
+ }
136
+
137
+ if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko )
55
138
  {
56
139
  editor.on( 'key', function( ev )
57
140
  {
@@ -73,6 +156,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
73
156
 
74
157
  editor.addCommand( 'blur', CKEDITOR.tools.extend( blurCommand, meta ) );
75
158
  editor.addCommand( 'blurBack', CKEDITOR.tools.extend( blurBackCommand, meta ) );
159
+ editor.addCommand( 'selectNextCell', selectNextCellCommand() );
160
+ editor.addCommand( 'selectPreviousCell', selectNextCellCommand( true ) );
76
161
  }
77
162
  });
78
163
  })();
@@ -259,3 +344,24 @@ CKEDITOR.dom.element.prototype.focusPrevious = function( ignoreChildren, indexTo
259
344
  * @example
260
345
  * config.tabSpaces = 4;
261
346
  */
347
+
348
+ /**
349
+ * Allow context-sensitive tab key behaviors, including the following scenarios:
350
+ * <h5>When selection is anchored inside <b>table cells</b>:</h5>
351
+ * <ul>
352
+ * <li>If TAB is pressed, select the contents of the "next" cell. If in the last cell in the table, add a new row to it and focus its first cell.</li>
353
+ * <li>If SHIFT+TAB is pressed, select the contents of the "previous" cell. Do nothing when it's in the first cell.</li>
354
+ * </ul>
355
+ * @name CKEDITOR.config.enableTabKeyTools
356
+ * @type Boolean
357
+ * @default true
358
+ * @example
359
+ * config.enableTabKeyTools = false;
360
+ */
361
+
362
+ // If the TAB key is not supposed to be enabled for navigation, the following
363
+ // settings could be used alternatively:
364
+ // config.keystrokes.push(
365
+ // [ CKEDITOR.ALT + 38 /*Arrow Up*/, 'selectPreviousCell' ],
366
+ // [ CKEDITOR.ALT + 40 /*Arrow Down*/, 'selectNextCell' ]
367
+ // );
@@ -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
 
@@ -18,12 +18,53 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
18
18
 
19
19
  function tableDialog( editor, command )
20
20
  {
21
- var makeElement = function( name ){ return new CKEDITOR.dom.element( name, editor.document ); };
21
+ var makeElement = function( name )
22
+ {
23
+ return new CKEDITOR.dom.element( name, editor.document );
24
+ };
25
+
26
+ var dialogadvtab = editor.plugins.dialogadvtab;
22
27
 
23
28
  return {
24
29
  title : editor.lang.table.title,
25
30
  minWidth : 310,
26
31
  minHeight : CKEDITOR.env.ie ? 310 : 280,
32
+
33
+ onLoad : function()
34
+ {
35
+ var dialog = this;
36
+
37
+ var styles = dialog.getContentElement( 'advanced', 'advStyles' );
38
+
39
+ if ( styles )
40
+ {
41
+ styles.on( 'change', function( evt )
42
+ {
43
+ // Synchronize width value.
44
+ var width = this.getStyle( 'width', '' ),
45
+ txtWidth = dialog.getContentElement( 'info', 'txtWidth' ),
46
+ cmbWidthType = dialog.getContentElement( 'info', 'cmbWidthType' ),
47
+ isPx = 1;
48
+
49
+ if ( width )
50
+ {
51
+ isPx = ( width.length < 3 || width.substr( width.length - 1 ) != '%' );
52
+ width = parseInt( width, 10 );
53
+ }
54
+
55
+ txtWidth && txtWidth.setValue( width, true );
56
+ cmbWidthType && cmbWidthType.setValue( isPx ? 'pixels' : 'percents', true );
57
+
58
+ // Synchronize height value.
59
+ var height = this.getStyle( 'height', '' ),
60
+ txtHeight = dialog.getContentElement( 'info', 'txtHeight' );
61
+
62
+ height && ( height = parseInt( height, 10 ) );
63
+ txtHeight && txtHeight.setValue( height, true );
64
+ });
65
+ }
66
+ },
67
+
27
68
  onShow : function()
28
69
  {
29
70
  // Detect if there's a selected table.
@@ -33,16 +74,20 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
33
74
 
34
75
  var rowsInput = this.getContentElement( 'info', 'txtRows' ),
35
76
  colsInput = this.getContentElement( 'info', 'txtCols' ),
36
- widthInput = this.getContentElement( 'info', 'txtWidth' );
77
+ widthInput = this.getContentElement( 'info', 'txtWidth' ),
78
+ heightInput = this.getContentElement( 'info', 'txtHeight' );
79
+
37
80
  if ( command == 'tableProperties' )
38
81
  {
39
- if ( ( selectedTable = editor.getSelection().getSelectedElement() ) )
40
- {
41
- if ( selectedTable.getName() != 'table' )
42
- selectedTable = null;
43
- }
82
+ if ( ( selectedTable = selection.getSelectedElement() ) )
83
+ selectedTable = selectedTable.getAscendant( 'table', true );
44
84
  else if ( ranges.length > 0 )
45
85
  {
86
+ // Webkit could report the following range on cell selection (#4948):
87
+ // <table><tr><td>[&nbsp;</td></tr></table>]
88
+ if ( CKEDITOR.env.webkit )
89
+ ranges[ 0 ].shrink( CKEDITOR.NODE_ELEMENT );
90
+
46
91
  var rangeRoot = ranges[0].getCommonAncestor( true );
47
92
  selectedTable = rangeRoot.getAscendant( 'table', true );
48
93
  }
@@ -51,27 +96,30 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
51
96
  this._.selectedElement = selectedTable;
52
97
  }
53
98
 
54
- // Enable, disable and select the row, cols, width fields.
99
+ // Enable or disable the row, cols, width fields.
55
100
  if ( selectedTable )
56
101
  {
57
102
  this.setupContent( selectedTable );
58
103
  rowsInput && rowsInput.disable();
59
104
  colsInput && colsInput.disable();
60
- widthInput && widthInput.select();
61
105
  }
62
106
  else
63
107
  {
64
108
  rowsInput && rowsInput.enable();
65
109
  colsInput && colsInput.enable();
66
- rowsInput && rowsInput.select();
67
110
  }
111
+
112
+ // Call the onChange method for the widht and height fields so
113
+ // they get reflected into the Advanced tab.
114
+ widthInput && widthInput.onChange();
115
+ heightInput && heightInput.onChange();
68
116
  },
69
117
  onOk : function()
70
118
  {
71
119
  if ( this._.selectedElement )
72
120
  {
73
121
  var selection = editor.getSelection(),
74
- bms = editor.getSelection().createBookmarks();
122
+ bms = selection.createBookmarks();
75
123
  }
76
124
 
77
125
  var table = this._.selectedElement || makeElement( 'table' ),
@@ -118,7 +166,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
118
166
  for ( i = 0 ; i < theRow.getChildCount() ; i++ )
119
167
  {
120
168
  var th = theRow.getChild( i );
121
- if ( th.type == CKEDITOR.NODE_ELEMENT )
169
+ // Skip bookmark nodes. (#6155)
170
+ if ( th.type == CKEDITOR.NODE_ELEMENT && !th.data( 'cke-bookmark' ) )
122
171
  {
123
172
  th.renameNode( 'th' );
124
173
  th.setAttribute( 'scope', 'col' );
@@ -227,6 +276,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
227
276
  id : 'txtRows',
228
277
  'default' : 3,
229
278
  label : editor.lang.table.rows,
279
+ required : true,
230
280
  style : 'width:5em',
231
281
  validate : function()
232
282
  {
@@ -252,6 +302,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
252
302
  id : 'txtCols',
253
303
  'default' : 2,
254
304
  label : editor.lang.table.columns,
305
+ required : true,
255
306
  style : 'width:5em',
256
307
  validate : function()
257
308
  {
@@ -336,13 +387,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
336
387
  id : 'cmbAlign',
337
388
  type : 'select',
338
389
  'default' : '',
339
- label : editor.lang.table.align,
390
+ label : editor.lang.common.align,
340
391
  items :
341
392
  [
342
393
  [ editor.lang.common.notSet , ''],
343
- [ editor.lang.table.alignLeft , 'left'],
344
- [ editor.lang.table.alignCenter , 'center'],
345
- [ editor.lang.table.alignRight , 'right']
394
+ [ editor.lang.common.alignLeft , 'left'],
395
+ [ editor.lang.common.alignCenter , 'center'],
396
+ [ editor.lang.common.alignRight , 'right']
346
397
  ],
347
398
  setup : function( selectedTable )
348
399
  {
@@ -372,8 +423,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
372
423
  type : 'text',
373
424
  id : 'txtWidth',
374
425
  style : 'width:5em',
375
- label : editor.lang.table.width,
376
- 'default' : 200,
426
+ label : editor.lang.common.width,
427
+ 'default' : 500,
377
428
  validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidWidth ),
378
429
 
379
430
  // Extra labelling of width unit type.
@@ -387,6 +438,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
387
438
  inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
388
439
  },
389
440
 
441
+ onChange : function()
442
+ {
443
+ var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' );
444
+
445
+ if ( styles )
446
+ {
447
+ var value = this.getValue();
448
+
449
+ if ( value )
450
+ value += this.getDialog().getContentElement( 'info', 'cmbWidthType' ).getValue() == 'percents' ? '%' : 'px';
451
+
452
+ styles.updateStyle( 'width', value );
453
+ }
454
+ },
455
+
390
456
  setup : function( selectedTable )
391
457
  {
392
458
  var widthMatch = widthPattern.exec( selectedTable.$.style.width );
@@ -414,6 +480,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
414
480
  if ( widthMatch )
415
481
  this.setValue( widthMatch[2] == 'px' ? 'pixels' : 'percents' );
416
482
  },
483
+ onChange : function()
484
+ {
485
+ this.getDialog().getContentElement( 'info', 'txtWidth' ).onChange();
486
+ },
417
487
  commit : commitValue
418
488
  }
419
489
  ]
@@ -427,7 +497,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
427
497
  type : 'text',
428
498
  id : 'txtHeight',
429
499
  style : 'width:5em',
430
- label : editor.lang.table.height,
500
+ label : editor.lang.common.height,
431
501
  'default' : '',
432
502
  validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidHeight ),
433
503
 
@@ -442,6 +512,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
442
512
  inputElement.setAttribute( 'aria-labelledby', [ ariaLabelledByAttr, labelElement.$.id ].join( ' ' ) );
443
513
  },
444
514
 
515
+ onChange : function()
516
+ {
517
+ var styles = this.getDialog().getContentElement( 'advanced', 'advStyles' );
518
+
519
+ if ( styles )
520
+ {
521
+ var value = this.getValue();
522
+ styles.updateStyle( 'height', value && ( value + 'px' ) );
523
+ }
524
+ },
525
+
445
526
  setup : function( selectedTable )
446
527
  {
447
528
  var heightMatch = heightPattern.exec( selectedTable.$.style.height );
@@ -523,8 +604,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
523
604
  if ( nodeList.count() > 0 )
524
605
  {
525
606
  var caption = nodeList.getItem( 0 );
526
- caption = ( caption.getChild( 0 ) && caption.getChild( 0 ).getText() ) || '';
527
- caption = CKEDITOR.tools.trim( caption );
607
+ caption = CKEDITOR.tools.trim( caption.getText() );
528
608
  this.setValue( caption );
529
609
  }
530
610
  },
@@ -568,12 +648,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
568
648
  {
569
649
  if ( this.getValue() )
570
650
  selectedTable.setAttribute( 'summary', this.getValue() );
651
+ else
652
+ selectedTable.removeAttribute( 'summary' );
571
653
  }
572
654
  }
573
655
  ]
574
656
  }
575
657
  ]
576
- }
658
+ },
659
+ dialogadvtab && dialogadvtab.createAdvancedTab( editor )
577
660
  ]
578
661
  };
579
662
  }
@@ -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
 
@@ -45,15 +45,23 @@ CKEDITOR.plugins.add( 'table',
45
45
  } );
46
46
  }
47
47
 
48
+ editor.on( 'doubleclick', function( evt )
49
+ {
50
+ var element = evt.data.element;
51
+
52
+ if ( element.is( 'table' ) )
53
+ evt.data.dialog = 'tableProperties';
54
+ });
55
+
48
56
  // If the "contextmenu" plugin is loaded, register the listeners.
49
57
  if ( editor.contextMenu )
50
58
  {
51
59
  editor.contextMenu.addListener( function( element, selection )
52
60
  {
53
- if ( !element )
61
+ if ( !element || element.isReadOnly() )
54
62
  return null;
55
63
 
56
- var isTable = element.is( 'table' ) || element.hasAscendant( 'table' );
64
+ var isTable = element.hasAscendant( 'table', 1 );
57
65
 
58
66
  if ( isTable )
59
67
  {
@@ -0,0 +1,450 @@
1
+ /*
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ (function()
7
+ {
8
+ var pxUnit = CKEDITOR.tools.cssLength,
9
+ needsIEHacks = CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.quirks || CKEDITOR.env.version < 7 );
10
+
11
+ function getWidth( el )
12
+ {
13
+ return CKEDITOR.env.ie ? el.$.clientWidth : parseInt( el.getComputedStyle( 'width' ), 10 );
14
+ }
15
+
16
+ function getBorderWidth( element, side )
17
+ {
18
+ var computed = element.getComputedStyle( 'border-' + side + '-width' ),
19
+ borderMap =
20
+ {
21
+ thin: '0px',
22
+ medium: '1px',
23
+ thick: '2px'
24
+ };
25
+
26
+ if ( computed.indexOf( 'px' ) < 0 )
27
+ {
28
+ // look up keywords
29
+ if ( computed in borderMap && element.getComputedStyle( 'border-style' ) != 'none' )
30
+ computed = borderMap[ computed ];
31
+ else
32
+ computed = 0;
33
+ }
34
+
35
+ return parseInt( computed, 10 );
36
+ }
37
+
38
+ // Gets the table row that contains the most columns.
39
+ function getMasterPillarRow( table )
40
+ {
41
+ var $rows = table.$.rows,
42
+ maxCells = 0, cellsCount,
43
+ $elected, $tr;
44
+
45
+ for ( var i = 0, len = $rows.length ; i < len; i++ )
46
+ {
47
+ $tr = $rows[ i ];
48
+ cellsCount = $tr.cells.length;
49
+
50
+ if ( cellsCount > maxCells )
51
+ {
52
+ maxCells = cellsCount;
53
+ $elected = $tr;
54
+ }
55
+ }
56
+
57
+ return $elected;
58
+ }
59
+
60
+ function buildTableColumnPillars( table )
61
+ {
62
+ var pillars = [],
63
+ pillarIndex = -1,
64
+ rtl = ( table.getComputedStyle( 'direction' ) == 'rtl' );
65
+
66
+ // Get the raw row element that cointains the most columns.
67
+ var $tr = getMasterPillarRow( table );
68
+
69
+ // Get the tbody element and position, which will be used to set the
70
+ // top and bottom boundaries.
71
+ var tbody = new CKEDITOR.dom.element( table.$.tBodies[ 0 ] ),
72
+ tbodyPosition = tbody.getDocumentPosition();
73
+
74
+ // Loop thorugh all cells, building pillars after each one of them.
75
+ for ( var i = 0, len = $tr.cells.length ; i < len ; i++ )
76
+ {
77
+ // Both the current cell and the successive one will be used in the
78
+ // pillar size calculation.
79
+ var td = new CKEDITOR.dom.element( $tr.cells[ i ] ),
80
+ nextTd = $tr.cells[ i + 1 ] && new CKEDITOR.dom.element( $tr.cells[ i + 1 ] );
81
+
82
+ pillarIndex += td.$.colSpan || 1;
83
+
84
+ // Calculate the pillar boundary positions.
85
+ var pillarLeft, pillarRight, pillarWidth, pillarPadding;
86
+
87
+ var x = td.getDocumentPosition().x;
88
+
89
+ // Calculate positions based on the current cell.
90
+ rtl ?
91
+ pillarRight = x + getBorderWidth( td, 'left' ) :
92
+ pillarLeft = x + td.$.offsetWidth - getBorderWidth( td, 'right' );
93
+
94
+ // Calculate positions based on the next cell, if available.
95
+ if ( nextTd )
96
+ {
97
+ x = nextTd.getDocumentPosition().x;
98
+
99
+ rtl ?
100
+ pillarLeft = x + nextTd.$.offsetWidth - getBorderWidth( nextTd, 'right' ) :
101
+ pillarRight = x + getBorderWidth( nextTd, 'left' );
102
+ }
103
+ // Otherwise calculate positions based on the table (for last cell).
104
+ else
105
+ {
106
+ x = table.getDocumentPosition().x;
107
+
108
+ rtl ?
109
+ pillarLeft = x :
110
+ pillarRight = x + table.$.offsetWidth;
111
+ }
112
+
113
+ pillarWidth = Math.max( pillarRight - pillarLeft, 3 );
114
+
115
+ // Make the pillar touch area at least 14 pixels wide, for easy to use.
116
+ pillarPadding = Math.max( Math.round( 7 - ( pillarWidth / 2 ) ), 0 );
117
+
118
+ // The pillar should reflects exactly the shape of the hovered
119
+ // column border line.
120
+ pillars.push( {
121
+ table : table,
122
+ index : pillarIndex,
123
+ x : pillarLeft,
124
+ y : tbodyPosition.y,
125
+ width : pillarWidth,
126
+ height: tbody.$.offsetHeight,
127
+ padding : pillarPadding,
128
+ rtl : rtl } );
129
+ }
130
+
131
+ return pillars;
132
+ }
133
+
134
+ function getPillarAtPosition( pillars, positionX )
135
+ {
136
+ for ( var i = 0, len = pillars.length ; i < len ; i++ )
137
+ {
138
+ var pillar = pillars[ i ],
139
+ pad = pillar.padding;
140
+
141
+ if ( positionX >= pillar.x - pad && positionX <= ( pillar.x + pillar.width + pad ) )
142
+ return pillar;
143
+ }
144
+
145
+ return null;
146
+ }
147
+
148
+ function cancel( evt )
149
+ {
150
+ ( evt.data || evt ).preventDefault();
151
+ }
152
+
153
+ function columnResizer( editor )
154
+ {
155
+ var pillar,
156
+ document,
157
+ resizer,
158
+ isResizing,
159
+ startOffset,
160
+ currentShift;
161
+
162
+ var leftSideCells, rightSideCells, leftShiftBoundary, rightShiftBoundary;
163
+
164
+ function detach()
165
+ {
166
+ pillar = null;
167
+ currentShift = 0;
168
+ isResizing = 0;
169
+
170
+ document.removeListener( 'mouseup', onMouseUp );
171
+ resizer.removeListener( 'mousedown', onMouseDown );
172
+ resizer.removeListener( 'mousemove', onMouseMove );
173
+
174
+ document.getBody().setStyle( 'cursor', 'auto' );
175
+
176
+ // Hide the resizer (remove it on IE7 - #5890).
177
+ needsIEHacks ? resizer.remove() : resizer.hide();
178
+ }
179
+
180
+ function resizeStart()
181
+ {
182
+ // Before starting to resize, figure out which cells to change
183
+ // and the boundaries of this resizing shift.
184
+
185
+ var columnIndex = pillar.index,
186
+ map = CKEDITOR.tools.buildTableMap( pillar.table ),
187
+ leftColumnCells = [],
188
+ rightColumnCells = [],
189
+ leftMinSize = Number.MAX_VALUE,
190
+ rightMinSize = leftMinSize,
191
+ rtl = pillar.rtl;
192
+
193
+ for ( var i = 0, len = map.length ; i < len ; i++ )
194
+ {
195
+ var row = map[ i ],
196
+ leftCell = row[ columnIndex + ( rtl ? 1 : 0 ) ],
197
+ rightCell = row[ columnIndex + ( rtl ? 0 : 1 ) ];
198
+
199
+ leftCell = leftCell && new CKEDITOR.dom.element( leftCell );
200
+ rightCell = rightCell && new CKEDITOR.dom.element( rightCell );
201
+
202
+ if ( !leftCell || !rightCell || !leftCell.equals( rightCell ) )
203
+ {
204
+ leftCell && ( leftMinSize = Math.min( leftMinSize, getWidth( leftCell ) ) );
205
+ rightCell && ( rightMinSize = Math.min( rightMinSize, getWidth( rightCell ) ) );
206
+
207
+ leftColumnCells.push( leftCell );
208
+ rightColumnCells.push( rightCell );
209
+ }
210
+ }
211
+
212
+ // Cache the list of cells to be resized.
213
+ leftSideCells = leftColumnCells;
214
+ rightSideCells = rightColumnCells;
215
+
216
+ // Cache the resize limit boundaries.
217
+ leftShiftBoundary = pillar.x - leftMinSize;
218
+ rightShiftBoundary = pillar.x + rightMinSize;
219
+
220
+ resizer.setOpacity( 0.5 );
221
+ startOffset = parseInt( resizer.getStyle( 'left' ), 10 );
222
+ currentShift = 0;
223
+ isResizing = 1;
224
+
225
+ resizer.on( 'mousemove', onMouseMove );
226
+
227
+ // Prevent the native drag behavior otherwise 'mousemove' won't fire.
228
+ document.on( 'dragstart', cancel );
229
+ }
230
+
231
+ function resizeEnd()
232
+ {
233
+ isResizing = 0;
234
+
235
+ resizer.setOpacity( 0 );
236
+
237
+ currentShift && resizeColumn();
238
+
239
+ var table = pillar.table;
240
+ setTimeout( function () { table.removeCustomData( '_cke_table_pillars' ); }, 0 );
241
+
242
+ document.removeListener( 'dragstart', cancel );
243
+ }
244
+
245
+ function resizeColumn()
246
+ {
247
+ var rtl = pillar.rtl,
248
+ cellsCount = rtl ? rightSideCells.length : leftSideCells.length;
249
+
250
+ // Perform the actual resize to table cells, only for those by side of the pillar.
251
+ for ( var i = 0 ; i < cellsCount ; i++ )
252
+ {
253
+ var leftCell = leftSideCells[ i ],
254
+ rightCell = rightSideCells[ i ],
255
+ table = pillar.table;
256
+
257
+ // Defer the resizing to avoid any interference among cells.
258
+ CKEDITOR.tools.setTimeout(
259
+ function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift )
260
+ {
261
+ leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) );
262
+ rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) );
263
+
264
+ // If we're in the last cell, we need to resize the table as well
265
+ if ( tableWidth )
266
+ table.setStyle( 'width', pxUnit( tableWidth + sizeShift * ( rtl ? -1 : 1 ) ) );
267
+ }
268
+ , 0,
269
+ this, [
270
+ leftCell, leftCell && getWidth( leftCell ),
271
+ rightCell, rightCell && getWidth( rightCell ),
272
+ ( !leftCell || !rightCell ) && ( getWidth( table ) + getBorderWidth( table, 'left' ) + getBorderWidth( table, 'right' ) ),
273
+ currentShift ] );
274
+ }
275
+ }
276
+
277
+ function onMouseDown( evt )
278
+ {
279
+ cancel( evt );
280
+
281
+ resizeStart();
282
+
283
+ document.on( 'mouseup', onMouseUp, this );
284
+ }
285
+
286
+ function onMouseUp( evt )
287
+ {
288
+ evt.removeListener();
289
+
290
+ resizeEnd();
291
+ }
292
+
293
+ function onMouseMove( evt )
294
+ {
295
+ move( evt.data.$.clientX );
296
+ }
297
+
298
+ document = editor.document;
299
+
300
+ resizer = CKEDITOR.dom.element.createFromHtml(
301
+ '<div data-cke-temp=1 contenteditable=false unselectable=on '+
302
+ 'style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;' +
303
+ 'padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', document );
304
+
305
+ // Except on IE6/7 (#5890), place the resizer after body to prevent it
306
+ // from being editable.
307
+ if ( !needsIEHacks )
308
+ document.getDocumentElement().append( resizer );
309
+
310
+ this.attachTo = function( targetPillar )
311
+ {
312
+ // Accept only one pillar at a time.
313
+ if ( isResizing )
314
+ return;
315
+
316
+ // On IE6/7, we append the resizer everytime we need it. (#5890)
317
+ if ( needsIEHacks )
318
+ {
319
+ document.getBody().append( resizer );
320
+ currentShift = 0;
321
+ }
322
+
323
+ pillar = targetPillar;
324
+
325
+ resizer.setStyles(
326
+ {
327
+ width: pxUnit( targetPillar.width ),
328
+ height : pxUnit( targetPillar.height ),
329
+ left : pxUnit( targetPillar.x ),
330
+ top : pxUnit( targetPillar.y )
331
+ });
332
+
333
+ // In IE6/7, it's not possible to have custom cursors for floating
334
+ // elements in an editable document. Show the resizer in that case,
335
+ // to give the user a visual clue.
336
+ needsIEHacks && resizer.setOpacity( 0.25 );
337
+
338
+ resizer.on( 'mousedown', onMouseDown, this );
339
+
340
+ document.getBody().setStyle( 'cursor', 'col-resize' );
341
+
342
+ // Display the resizer to receive events but don't show it,
343
+ // only change the cursor to resizable shape.
344
+ resizer.show();
345
+ };
346
+
347
+ var move = this.move = function( posX )
348
+ {
349
+ if ( !pillar )
350
+ return 0;
351
+
352
+ var pad = pillar.padding;
353
+
354
+ if ( !isResizing && ( posX < pillar.x - pad || posX > ( pillar.x + pillar.width + pad ) ) )
355
+ {
356
+ detach();
357
+ return 0;
358
+ }
359
+
360
+ var resizerNewPosition = posX - Math.round( resizer.$.offsetWidth / 2 );
361
+
362
+ if ( isResizing )
363
+ {
364
+ if ( resizerNewPosition == leftShiftBoundary || resizerNewPosition == rightShiftBoundary )
365
+ return 1;
366
+
367
+ resizerNewPosition = Math.max( resizerNewPosition, leftShiftBoundary );
368
+ resizerNewPosition = Math.min( resizerNewPosition, rightShiftBoundary );
369
+
370
+ currentShift = resizerNewPosition - startOffset;
371
+ }
372
+
373
+ resizer.setStyle( 'left', pxUnit( resizerNewPosition ) );
374
+
375
+ return 1;
376
+ };
377
+ }
378
+
379
+ function clearPillarsCache( evt )
380
+ {
381
+ var target = evt.data.getTarget();
382
+
383
+ if ( evt.name == 'mouseout' )
384
+ {
385
+ // Bypass interal mouse move.
386
+ if ( !target.is ( 'table' ) )
387
+ return;
388
+
389
+ var dest = new CKEDITOR.dom.element( evt.data.$.relatedTarget || evt.data.$.toElement );
390
+ while( dest && dest.$ && !dest.equals( target ) && !dest.is( 'body' ) )
391
+ dest = dest.getParent();
392
+ if ( !dest || dest.equals( target ) )
393
+ return;
394
+ }
395
+
396
+ target.getAscendant( 'table', 1 ).removeCustomData( '_cke_table_pillars' );
397
+ evt.removeListener();
398
+ }
399
+
400
+ CKEDITOR.plugins.add( 'tableresize',
401
+ {
402
+ requires : [ 'tabletools' ],
403
+ init : function( editor )
404
+ {
405
+ editor.on( 'contentDom', function()
406
+ {
407
+ var resizer;
408
+
409
+ editor.document.getBody().on( 'mousemove', function( evt )
410
+ {
411
+ evt = evt.data;
412
+
413
+ // If we're already attached to a pillar, simply move the
414
+ // resizer.
415
+ if ( resizer && resizer.move( evt.$.clientX ) )
416
+ {
417
+ cancel( evt );
418
+ return;
419
+ }
420
+
421
+ // Considering table, tr, td, tbody but nothing else.
422
+ var target = evt.getTarget(),
423
+ table,
424
+ pillars;
425
+
426
+ if ( !target.is( 'table' ) && !target.getAscendant( 'tbody', 1 ) )
427
+ return;
428
+
429
+ table = target.getAscendant( 'table', 1 );
430
+
431
+ if ( !( pillars = table.getCustomData( '_cke_table_pillars' ) ) )
432
+ {
433
+ // Cache table pillars calculation result.
434
+ table.setCustomData( '_cke_table_pillars', ( pillars = buildTableColumnPillars( table ) ) );
435
+ table.on( 'mouseout', clearPillarsCache );
436
+ table.on( 'mousedown', clearPillarsCache );
437
+ }
438
+
439
+ var pillar = getPillarAtPosition( pillars, evt.$.clientX );
440
+ if ( pillar )
441
+ {
442
+ !resizer && ( resizer = new columnResizer( editor ) );
443
+ resizer.attachTo( pillar );
444
+ }
445
+ });
446
+ });
447
+ }
448
+ });
449
+
450
+ })();