refinerycms-ckeditor 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (700) hide show
  1. data/app/assets/javascripts/ckeditor/.htaccess +1 -1
  2. data/app/assets/javascripts/ckeditor/CHANGES.html +72 -2
  3. data/app/assets/javascripts/ckeditor/INSTALL.html +2 -2
  4. data/app/assets/javascripts/ckeditor/LICENSE.html +2 -2
  5. data/app/assets/javascripts/ckeditor/_samples/adobeair/application.xml +2 -2
  6. data/app/assets/javascripts/ckeditor/_samples/adobeair/run.bat +1 -1
  7. data/app/assets/javascripts/ckeditor/_samples/adobeair/run.sh +1 -1
  8. data/app/assets/javascripts/ckeditor/_samples/adobeair/sample.html +2 -2
  9. data/app/assets/javascripts/ckeditor/_samples/ajax.html +2 -2
  10. data/app/assets/javascripts/ckeditor/_samples/api.html +2 -2
  11. data/app/assets/javascripts/ckeditor/_samples/api_dialog.html +2 -2
  12. data/app/assets/javascripts/ckeditor/_samples/api_dialog/my_dialog.js +1 -1
  13. data/app/assets/javascripts/ckeditor/_samples/asp/advanced.asp +2 -2
  14. data/app/assets/javascripts/ckeditor/_samples/asp/events.asp +2 -2
  15. data/app/assets/javascripts/ckeditor/_samples/asp/index.html +2 -2
  16. data/app/assets/javascripts/ckeditor/_samples/asp/replace.asp +2 -2
  17. data/app/assets/javascripts/ckeditor/_samples/asp/replaceall.asp +2 -2
  18. data/app/assets/javascripts/ckeditor/_samples/asp/sample_posteddata.asp +2 -2
  19. data/app/assets/javascripts/ckeditor/_samples/asp/standalone.asp +2 -2
  20. data/app/assets/javascripts/ckeditor/_samples/assets/_posteddata.php +2 -2
  21. data/app/assets/javascripts/ckeditor/_samples/assets/output_xhtml.css +1 -1
  22. data/app/assets/javascripts/ckeditor/_samples/autogrow.html +2 -2
  23. data/app/assets/javascripts/ckeditor/_samples/bbcode.html +2 -2
  24. data/app/assets/javascripts/ckeditor/_samples/devtools.html +2 -2
  25. data/app/assets/javascripts/ckeditor/_samples/divreplace.html +2 -2
  26. data/app/assets/javascripts/ckeditor/_samples/enterkey.html +2 -2
  27. data/app/assets/javascripts/ckeditor/_samples/fullpage.html +2 -2
  28. data/app/assets/javascripts/ckeditor/_samples/index.html +2 -2
  29. data/app/assets/javascripts/ckeditor/_samples/jqueryadapter.html +2 -2
  30. data/app/assets/javascripts/ckeditor/_samples/output_for_flash.html +2 -2
  31. data/app/assets/javascripts/ckeditor/_samples/output_html.html +2 -2
  32. data/app/assets/javascripts/ckeditor/_samples/output_xhtml.html +10 -6
  33. data/app/assets/javascripts/ckeditor/_samples/php/advanced.php +2 -2
  34. data/app/assets/javascripts/ckeditor/_samples/php/events.php +2 -2
  35. data/app/assets/javascripts/ckeditor/_samples/php/index.html +2 -2
  36. data/app/assets/javascripts/ckeditor/_samples/php/replace.php +2 -2
  37. data/app/assets/javascripts/ckeditor/_samples/php/replaceall.php +2 -2
  38. data/app/assets/javascripts/ckeditor/_samples/php/standalone.php +2 -2
  39. data/app/assets/javascripts/ckeditor/_samples/placeholder.html +2 -2
  40. data/app/assets/javascripts/ckeditor/_samples/readonly.html +2 -2
  41. data/app/assets/javascripts/ckeditor/_samples/replacebyclass.html +2 -2
  42. data/app/assets/javascripts/ckeditor/_samples/replacebycode.html +2 -2
  43. data/app/assets/javascripts/ckeditor/_samples/sample.css +1 -1
  44. data/app/assets/javascripts/ckeditor/_samples/sample.js +1 -1
  45. data/app/assets/javascripts/ckeditor/_samples/sample_posteddata.php +1 -1
  46. data/app/assets/javascripts/ckeditor/_samples/sharedspaces.html +2 -2
  47. data/app/assets/javascripts/ckeditor/_samples/skins.html +2 -2
  48. data/app/assets/javascripts/ckeditor/_samples/stylesheetparser.html +2 -2
  49. data/app/assets/javascripts/ckeditor/_samples/tableresize.html +2 -2
  50. data/app/assets/javascripts/ckeditor/_samples/ui_color.html +2 -2
  51. data/app/assets/javascripts/ckeditor/_samples/ui_languages.html +2 -2
  52. data/app/assets/javascripts/ckeditor/_source/adapters/jquery.js +1 -1
  53. data/app/assets/javascripts/ckeditor/_source/core/_bootstrap.js +1 -1
  54. data/app/assets/javascripts/ckeditor/_source/core/ckeditor.js +1 -1
  55. data/app/assets/javascripts/ckeditor/_source/core/ckeditor_base.js +13 -5
  56. data/app/assets/javascripts/ckeditor/_source/core/ckeditor_basic.js +1 -1
  57. data/app/assets/javascripts/ckeditor/_source/core/command.js +17 -1
  58. data/app/assets/javascripts/ckeditor/_source/core/commanddefinition.js +1 -1
  59. data/app/assets/javascripts/ckeditor/_source/core/config.js +19 -11
  60. data/app/assets/javascripts/ckeditor/_source/core/dataprocessor.js +1 -1
  61. data/app/assets/javascripts/ckeditor/_source/core/dom.js +1 -1
  62. data/app/assets/javascripts/ckeditor/_source/core/dom/comment.js +24 -12
  63. data/app/assets/javascripts/ckeditor/_source/core/dom/document.js +1 -1
  64. data/app/assets/javascripts/ckeditor/_source/core/dom/documentfragment.js +1 -1
  65. data/app/assets/javascripts/ckeditor/_source/core/dom/domobject.js +7 -7
  66. data/app/assets/javascripts/ckeditor/_source/core/dom/element.js +135 -30
  67. data/app/assets/javascripts/ckeditor/_source/core/dom/elementpath.js +1 -3
  68. data/app/assets/javascripts/ckeditor/_source/core/dom/event.js +1 -1
  69. data/app/assets/javascripts/ckeditor/_source/core/dom/node.js +11 -16
  70. data/app/assets/javascripts/ckeditor/_source/core/dom/nodelist.js +1 -1
  71. data/app/assets/javascripts/ckeditor/_source/core/dom/range.js +27 -13
  72. data/app/assets/javascripts/ckeditor/_source/core/dom/rangelist.js +1 -1
  73. data/app/assets/javascripts/ckeditor/_source/core/dom/text.js +1 -1
  74. data/app/assets/javascripts/ckeditor/_source/core/dom/walker.js +69 -35
  75. data/app/assets/javascripts/ckeditor/_source/core/dom/window.js +1 -1
  76. data/app/assets/javascripts/ckeditor/_source/core/dtd.js +1 -1
  77. data/app/assets/javascripts/ckeditor/_source/core/editor.js +1 -1
  78. data/app/assets/javascripts/ckeditor/_source/core/editor_basic.js +1 -1
  79. data/app/assets/javascripts/ckeditor/_source/core/env.js +1 -1
  80. data/app/assets/javascripts/ckeditor/_source/core/event.js +1 -1
  81. data/app/assets/javascripts/ckeditor/_source/core/eventInfo.js +1 -1
  82. data/app/assets/javascripts/ckeditor/_source/core/focusmanager.js +1 -1
  83. data/app/assets/javascripts/ckeditor/_source/core/htmlparser.js +1 -1
  84. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/basicwriter.js +1 -1
  85. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/cdata.js +1 -1
  86. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/comment.js +1 -1
  87. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/element.js +1 -1
  88. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/filter.js +1 -1
  89. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/fragment.js +26 -7
  90. data/app/assets/javascripts/ckeditor/_source/core/htmlparser/text.js +1 -1
  91. data/app/assets/javascripts/ckeditor/_source/core/lang.js +1 -1
  92. data/app/assets/javascripts/ckeditor/_source/core/loader.js +2 -2
  93. data/app/assets/javascripts/ckeditor/_source/core/plugindefinition.js +1 -1
  94. data/app/assets/javascripts/ckeditor/_source/core/plugins.js +1 -1
  95. data/app/assets/javascripts/ckeditor/_source/core/resourcemanager.js +1 -1
  96. data/app/assets/javascripts/ckeditor/_source/core/scriptloader.js +1 -1
  97. data/app/assets/javascripts/ckeditor/_source/core/skins.js +1 -1
  98. data/app/assets/javascripts/ckeditor/_source/core/themes.js +1 -1
  99. data/app/assets/javascripts/ckeditor/_source/core/tools.js +1 -1
  100. data/app/assets/javascripts/ckeditor/_source/core/ui.js +1 -1
  101. data/app/assets/javascripts/ckeditor/_source/lang/_languages.js +1 -1
  102. data/app/assets/javascripts/ckeditor/_source/lang/_translationstatus.txt +25 -23
  103. data/app/assets/javascripts/ckeditor/_source/lang/af.js +1 -1
  104. data/app/assets/javascripts/ckeditor/_source/lang/ar.js +4 -4
  105. data/app/assets/javascripts/ckeditor/_source/lang/bg.js +403 -403
  106. data/app/assets/javascripts/ckeditor/_source/lang/bn.js +1 -1
  107. data/app/assets/javascripts/ckeditor/_source/lang/bs.js +1 -1
  108. data/app/assets/javascripts/ckeditor/_source/lang/ca.js +1 -1
  109. data/app/assets/javascripts/ckeditor/_source/lang/cs.js +28 -28
  110. data/app/assets/javascripts/ckeditor/_source/lang/cy.js +6 -6
  111. data/app/assets/javascripts/ckeditor/_source/lang/da.js +162 -162
  112. data/app/assets/javascripts/ckeditor/_source/lang/de.js +2 -2
  113. data/app/assets/javascripts/ckeditor/_source/lang/el.js +132 -132
  114. data/app/assets/javascripts/ckeditor/_source/lang/en-au.js +4 -4
  115. data/app/assets/javascripts/ckeditor/_source/lang/en-ca.js +1 -1
  116. data/app/assets/javascripts/ckeditor/_source/lang/en-gb.js +1 -1
  117. data/app/assets/javascripts/ckeditor/_source/lang/en.js +1 -1
  118. data/app/assets/javascripts/ckeditor/_source/lang/eo.js +376 -376
  119. data/app/assets/javascripts/ckeditor/_source/lang/es.js +1 -1
  120. data/app/assets/javascripts/ckeditor/_source/lang/et.js +2 -2
  121. data/app/assets/javascripts/ckeditor/_source/lang/eu.js +1 -1
  122. data/app/assets/javascripts/ckeditor/_source/lang/fa.js +1 -1
  123. data/app/assets/javascripts/ckeditor/_source/lang/fi.js +1 -1
  124. data/app/assets/javascripts/ckeditor/_source/lang/fo.js +31 -31
  125. data/app/assets/javascripts/ckeditor/_source/lang/fr-ca.js +1 -1
  126. data/app/assets/javascripts/ckeditor/_source/lang/fr.js +30 -30
  127. data/app/assets/javascripts/ckeditor/_source/lang/gl.js +1 -1
  128. data/app/assets/javascripts/ckeditor/_source/lang/gu.js +261 -261
  129. data/app/assets/javascripts/ckeditor/_source/lang/he.js +1 -1
  130. data/app/assets/javascripts/ckeditor/_source/lang/hi.js +7 -7
  131. data/app/assets/javascripts/ckeditor/_source/lang/hr.js +158 -158
  132. data/app/assets/javascripts/ckeditor/_source/lang/hu.js +1 -1
  133. data/app/assets/javascripts/ckeditor/_source/lang/is.js +1 -1
  134. data/app/assets/javascripts/ckeditor/_source/lang/it.js +4 -4
  135. data/app/assets/javascripts/ckeditor/_source/lang/ja.js +1 -1
  136. data/app/assets/javascripts/ckeditor/_source/lang/ka.js +1 -1
  137. data/app/assets/javascripts/ckeditor/_source/lang/km.js +1 -1
  138. data/app/assets/javascripts/ckeditor/_source/lang/ko.js +1 -1
  139. data/app/assets/javascripts/ckeditor/_source/lang/lt.js +1 -1
  140. data/app/assets/javascripts/ckeditor/_source/lang/lv.js +1 -1
  141. data/app/assets/javascripts/ckeditor/_source/lang/mk.js +814 -0
  142. data/app/assets/javascripts/ckeditor/_source/lang/mn.js +1 -1
  143. data/app/assets/javascripts/ckeditor/_source/lang/ms.js +1 -1
  144. data/app/assets/javascripts/ckeditor/_source/lang/nb.js +4 -4
  145. data/app/assets/javascripts/ckeditor/_source/lang/nl.js +35 -35
  146. data/app/assets/javascripts/ckeditor/_source/lang/no.js +4 -4
  147. data/app/assets/javascripts/ckeditor/_source/lang/pl.js +3 -3
  148. data/app/assets/javascripts/ckeditor/_source/lang/pt-br.js +1 -1
  149. data/app/assets/javascripts/ckeditor/_source/lang/pt.js +34 -34
  150. data/app/assets/javascripts/ckeditor/_source/lang/ro.js +1 -1
  151. data/app/assets/javascripts/ckeditor/_source/lang/ru.js +1 -1
  152. data/app/assets/javascripts/ckeditor/_source/lang/sk.js +1 -1
  153. data/app/assets/javascripts/ckeditor/_source/lang/sl.js +1 -1
  154. data/app/assets/javascripts/ckeditor/_source/lang/sr-latn.js +1 -1
  155. data/app/assets/javascripts/ckeditor/_source/lang/sr.js +1 -1
  156. data/app/assets/javascripts/ckeditor/_source/lang/sv.js +1 -1
  157. data/app/assets/javascripts/ckeditor/_source/lang/th.js +1 -1
  158. data/app/assets/javascripts/ckeditor/_source/lang/tr.js +50 -50
  159. data/app/assets/javascripts/ckeditor/_source/lang/ug.js +814 -0
  160. data/app/assets/javascripts/ckeditor/_source/lang/uk.js +35 -35
  161. data/app/assets/javascripts/ckeditor/_source/lang/vi.js +84 -84
  162. data/app/assets/javascripts/ckeditor/_source/lang/zh-cn.js +4 -4
  163. data/app/assets/javascripts/ckeditor/_source/lang/zh.js +16 -16
  164. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
  165. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/_translationstatus.txt +23 -0
  166. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/cs.js +89 -0
  167. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/cy.js +89 -0
  168. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/da.js +89 -0
  169. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/de.js +89 -0
  170. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/el.js +89 -0
  171. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/en.js +3 -3
  172. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/eo.js +89 -0
  173. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/fa.js +89 -0
  174. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/fi.js +89 -0
  175. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/fr.js +89 -0
  176. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/gu.js +89 -0
  177. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/he.js +6 -133
  178. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/it.js +89 -0
  179. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/mk.js +89 -0
  180. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/nb.js +89 -0
  181. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/nl.js +89 -0
  182. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/no.js +89 -0
  183. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/tr.js +89 -0
  184. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/ug.js +89 -0
  185. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/vi.js +89 -0
  186. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/lang/zh-cn.js +89 -0
  187. data/app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/plugin.js +2 -2
  188. data/app/assets/javascripts/ckeditor/_source/plugins/about/dialogs/about.js +1 -1
  189. data/app/assets/javascripts/ckeditor/_source/plugins/about/plugin.js +1 -1
  190. data/app/assets/javascripts/ckeditor/_source/plugins/adobeair/plugin.js +1 -1
  191. data/app/assets/javascripts/ckeditor/_source/plugins/ajax/plugin.js +1 -1
  192. data/app/assets/javascripts/ckeditor/_source/plugins/autogrow/plugin.js +2 -2
  193. data/app/assets/javascripts/ckeditor/_source/plugins/basicstyles/plugin.js +1 -1
  194. data/app/assets/javascripts/ckeditor/_source/plugins/bbcode/plugin.js +1 -1
  195. data/app/assets/javascripts/ckeditor/_source/plugins/bidi/plugin.js +1 -1
  196. data/app/assets/javascripts/ckeditor/_source/plugins/blockquote/plugin.js +1 -1
  197. data/app/assets/javascripts/ckeditor/_source/plugins/button/plugin.js +1 -1
  198. data/app/assets/javascripts/ckeditor/_source/plugins/clipboard/dialogs/paste.js +2 -2
  199. data/app/assets/javascripts/ckeditor/_source/plugins/clipboard/plugin.js +41 -15
  200. data/app/assets/javascripts/ckeditor/_source/plugins/colorbutton/plugin.js +5 -6
  201. data/app/assets/javascripts/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +140 -93
  202. data/app/assets/javascripts/ckeditor/_source/plugins/colordialog/plugin.js +1 -1
  203. data/app/assets/javascripts/ckeditor/_source/plugins/contextmenu/plugin.js +1 -1
  204. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/_translationstatus.txt +27 -0
  205. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/bg.js +16 -0
  206. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/cs.js +16 -0
  207. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/cy.js +16 -0
  208. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/da.js +16 -0
  209. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/de.js +16 -0
  210. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/el.js +16 -0
  211. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/en.js +1 -1
  212. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/eo.js +16 -0
  213. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/et.js +16 -0
  214. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/fa.js +16 -0
  215. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/fi.js +16 -0
  216. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/fr.js +16 -0
  217. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/gu.js +16 -0
  218. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/he.js +16 -0
  219. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/hr.js +16 -0
  220. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/it.js +16 -0
  221. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/nb.js +16 -0
  222. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/nl.js +16 -0
  223. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/no.js +16 -0
  224. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/pl.js +16 -0
  225. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/tr.js +16 -0
  226. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/ug.js +16 -0
  227. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/uk.js +16 -0
  228. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/vi.js +16 -0
  229. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/lang/zh-cn.js +16 -0
  230. data/app/assets/javascripts/ckeditor/_source/plugins/devtools/plugin.js +2 -2
  231. data/app/assets/javascripts/ckeditor/_source/plugins/dialog/dialogDefinition.js +1 -1
  232. data/app/assets/javascripts/ckeditor/_source/plugins/dialog/plugin.js +33 -22
  233. data/app/assets/javascripts/ckeditor/_source/plugins/dialogadvtab/plugin.js +1 -1
  234. data/app/assets/javascripts/ckeditor/_source/plugins/dialogui/plugin.js +12 -4
  235. data/app/assets/javascripts/ckeditor/_source/plugins/div/dialogs/div.js +1 -1
  236. data/app/assets/javascripts/ckeditor/_source/plugins/div/plugin.js +1 -1
  237. data/app/assets/javascripts/ckeditor/_source/plugins/docprops/dialogs/docprops.js +1 -1
  238. data/app/assets/javascripts/ckeditor/_source/plugins/docprops/plugin.js +1 -1
  239. data/app/assets/javascripts/ckeditor/_source/plugins/domiterator/plugin.js +41 -36
  240. data/app/assets/javascripts/ckeditor/_source/plugins/editingblock/plugin.js +1 -1
  241. data/app/assets/javascripts/ckeditor/_source/plugins/elementspath/plugin.js +1 -1
  242. data/app/assets/javascripts/ckeditor/_source/plugins/enterkey/plugin.js +1 -1
  243. data/app/assets/javascripts/ckeditor/_source/plugins/entities/plugin.js +14 -10
  244. data/app/assets/javascripts/ckeditor/_source/plugins/fakeobjects/plugin.js +1 -1
  245. data/app/assets/javascripts/ckeditor/_source/plugins/filebrowser/plugin.js +2 -3
  246. data/app/assets/javascripts/ckeditor/_source/plugins/find/dialogs/find.js +1 -1
  247. data/app/assets/javascripts/ckeditor/_source/plugins/find/plugin.js +1 -1
  248. data/app/assets/javascripts/ckeditor/_source/plugins/flash/dialogs/flash.js +1 -1
  249. data/app/assets/javascripts/ckeditor/_source/plugins/flash/plugin.js +1 -1
  250. data/app/assets/javascripts/ckeditor/_source/plugins/floatpanel/plugin.js +67 -19
  251. data/app/assets/javascripts/ckeditor/_source/plugins/font/plugin.js +1 -1
  252. data/app/assets/javascripts/ckeditor/_source/plugins/format/plugin.js +1 -1
  253. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/button.js +1 -1
  254. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/checkbox.js +1 -1
  255. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/form.js +1 -1
  256. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +1 -1
  257. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/radio.js +1 -1
  258. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/select.js +1 -1
  259. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/textarea.js +1 -1
  260. data/app/assets/javascripts/ckeditor/_source/plugins/forms/dialogs/textfield.js +1 -1
  261. data/app/assets/javascripts/ckeditor/_source/plugins/forms/plugin.js +1 -1
  262. data/app/assets/javascripts/ckeditor/_source/plugins/horizontalrule/plugin.js +1 -1
  263. data/app/assets/javascripts/ckeditor/_source/plugins/htmldataprocessor/plugin.js +6 -2
  264. data/app/assets/javascripts/ckeditor/_source/plugins/htmlwriter/plugin.js +1 -1
  265. data/app/assets/javascripts/ckeditor/_source/plugins/iframe/dialogs/iframe.js +1 -1
  266. data/app/assets/javascripts/ckeditor/_source/plugins/iframe/plugin.js +1 -1
  267. data/app/assets/javascripts/ckeditor/_source/plugins/iframedialog/plugin.js +1 -1
  268. data/app/assets/javascripts/ckeditor/_source/plugins/image/dialogs/image.js +4 -5
  269. data/app/assets/javascripts/ckeditor/_source/plugins/image/plugin.js +89 -6
  270. data/app/assets/javascripts/ckeditor/_source/plugins/indent/plugin.js +20 -1
  271. data/app/assets/javascripts/ckeditor/_source/plugins/justify/plugin.js +15 -17
  272. data/app/assets/javascripts/ckeditor/_source/plugins/keystrokes/plugin.js +1 -1
  273. data/app/assets/javascripts/ckeditor/_source/plugins/link/dialogs/anchor.js +1 -1
  274. data/app/assets/javascripts/ckeditor/_source/plugins/link/dialogs/link.js +8 -6
  275. data/app/assets/javascripts/ckeditor/_source/plugins/link/plugin.js +1 -1
  276. data/app/assets/javascripts/ckeditor/_source/plugins/list/plugin.js +250 -57
  277. data/app/assets/javascripts/ckeditor/_source/plugins/listblock/plugin.js +2 -8
  278. data/app/assets/javascripts/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +1 -1
  279. data/app/assets/javascripts/ckeditor/_source/plugins/liststyle/plugin.js +1 -1
  280. data/app/assets/javascripts/ckeditor/_source/plugins/maximize/plugin.js +1 -1
  281. data/app/assets/javascripts/ckeditor/_source/plugins/menu/plugin.js +4 -3
  282. data/app/assets/javascripts/ckeditor/_source/plugins/menubutton/plugin.js +1 -1
  283. data/app/assets/javascripts/ckeditor/_source/plugins/newpage/plugin.js +1 -1
  284. data/app/assets/javascripts/ckeditor/_source/plugins/pagebreak/plugin.js +1 -1
  285. data/app/assets/javascripts/ckeditor/_source/plugins/panel/plugin.js +7 -11
  286. data/app/assets/javascripts/ckeditor/_source/plugins/panelbutton/plugin.js +1 -1
  287. data/app/assets/javascripts/ckeditor/_source/plugins/pastefromword/filter/default.js +1 -1
  288. data/app/assets/javascripts/ckeditor/_source/plugins/pastefromword/plugin.js +1 -1
  289. data/app/assets/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +1 -1
  290. data/app/assets/javascripts/ckeditor/_source/plugins/pastetext/plugin.js +1 -1
  291. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +1 -1
  292. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/_translationstatus.txt +26 -0
  293. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/bg.js +16 -0
  294. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/cs.js +16 -0
  295. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/cy.js +16 -0
  296. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/da.js +16 -0
  297. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/de.js +16 -0
  298. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/el.js +16 -0
  299. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/en.js +1 -1
  300. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/eo.js +16 -0
  301. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/et.js +16 -0
  302. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/fa.js +16 -0
  303. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/fi.js +16 -0
  304. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/fr.js +16 -0
  305. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/he.js +1 -1
  306. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/hr.js +16 -0
  307. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/it.js +16 -0
  308. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/nb.js +16 -0
  309. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/nl.js +16 -0
  310. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/no.js +16 -0
  311. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/pl.js +16 -0
  312. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/tr.js +16 -0
  313. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/ug.js +16 -0
  314. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/uk.js +16 -0
  315. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/vi.js +16 -0
  316. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/lang/zh-cn.js +16 -0
  317. data/app/assets/javascripts/ckeditor/_source/plugins/placeholder/plugin.js +2 -2
  318. data/app/assets/javascripts/ckeditor/_source/plugins/popup/plugin.js +8 -3
  319. data/app/assets/javascripts/ckeditor/_source/plugins/preview/plugin.js +1 -1
  320. data/app/assets/javascripts/ckeditor/_source/plugins/print/plugin.js +1 -1
  321. data/app/assets/javascripts/ckeditor/_source/plugins/removeformat/plugin.js +1 -1
  322. data/app/assets/javascripts/ckeditor/_source/plugins/resize/plugin.js +3 -2
  323. data/app/assets/javascripts/ckeditor/_source/plugins/richcombo/plugin.js +1 -1
  324. data/app/assets/javascripts/ckeditor/_source/plugins/save/plugin.js +1 -1
  325. data/app/assets/javascripts/ckeditor/_source/plugins/scayt/dialogs/options.js +1 -1
  326. data/app/assets/javascripts/ckeditor/_source/plugins/scayt/plugin.js +1 -1
  327. data/app/assets/javascripts/ckeditor/_source/plugins/selection/plugin.js +208 -82
  328. data/app/assets/javascripts/ckeditor/_source/plugins/showblocks/plugin.js +1 -1
  329. data/app/assets/javascripts/ckeditor/_source/plugins/showborders/plugin.js +1 -1
  330. data/app/assets/javascripts/ckeditor/_source/plugins/smiley/dialogs/smiley.js +1 -1
  331. data/app/assets/javascripts/ckeditor/_source/plugins/smiley/plugin.js +1 -1
  332. data/app/assets/javascripts/ckeditor/_source/plugins/sourcearea/plugin.js +1 -1
  333. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +1 -1
  334. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/_translationstatus.txt +19 -0
  335. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/cs.js +126 -0
  336. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/cy.js +126 -0
  337. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/de.js +126 -0
  338. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/en.js +123 -119
  339. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/eo.js +126 -0
  340. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/et.js +126 -0
  341. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/fa.js +126 -0
  342. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/fi.js +126 -0
  343. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/fr.js +126 -0
  344. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/hr.js +126 -0
  345. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/it.js +126 -0
  346. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/nb.js +126 -0
  347. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/nl.js +126 -0
  348. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/no.js +126 -0
  349. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/tr.js +126 -0
  350. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/ug.js +126 -0
  351. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/lang/zh-cn.js +126 -0
  352. data/app/assets/javascripts/ckeditor/_source/plugins/specialchar/plugin.js +2 -2
  353. data/app/assets/javascripts/ckeditor/_source/plugins/styles/plugin.js +10 -4
  354. data/app/assets/javascripts/ckeditor/_source/plugins/styles/styles/default.js +1 -1
  355. data/app/assets/javascripts/ckeditor/_source/plugins/stylescombo/plugin.js +1 -1
  356. data/app/assets/javascripts/ckeditor/_source/plugins/stylesheetparser/plugin.js +1 -1
  357. data/app/assets/javascripts/ckeditor/_source/plugins/tab/plugin.js +1 -1
  358. data/app/assets/javascripts/ckeditor/_source/plugins/table/dialogs/table.js +23 -28
  359. data/app/assets/javascripts/ckeditor/_source/plugins/table/plugin.js +1 -1
  360. data/app/assets/javascripts/ckeditor/_source/plugins/tableresize/plugin.js +1 -1
  361. data/app/assets/javascripts/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +4 -9
  362. data/app/assets/javascripts/ckeditor/_source/plugins/tabletools/plugin.js +8 -17
  363. data/app/assets/javascripts/ckeditor/_source/plugins/templates/dialogs/templates.js +1 -1
  364. data/app/assets/javascripts/ckeditor/_source/plugins/templates/plugin.js +2 -1
  365. data/app/assets/javascripts/ckeditor/_source/plugins/templates/templates/default.js +1 -1
  366. data/app/assets/javascripts/ckeditor/_source/plugins/toolbar/plugin.js +1 -1
  367. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +1 -1
  368. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/_translationstatus.txt +27 -0
  369. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/bg.js +15 -0
  370. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/cs.js +15 -0
  371. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/cy.js +15 -0
  372. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/da.js +15 -0
  373. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/de.js +15 -0
  374. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/el.js +15 -0
  375. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/en.js +1 -1
  376. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/eo.js +15 -0
  377. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/et.js +15 -0
  378. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/fa.js +15 -0
  379. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/fi.js +15 -0
  380. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/fr.js +15 -0
  381. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/he.js +1 -1
  382. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/hr.js +15 -0
  383. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/it.js +15 -0
  384. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/mk.js +15 -0
  385. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/nb.js +15 -0
  386. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/nl.js +15 -0
  387. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/no.js +15 -0
  388. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/pl.js +15 -0
  389. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/tr.js +15 -0
  390. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/ug.js +15 -0
  391. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/uk.js +15 -0
  392. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/vi.js +15 -0
  393. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/lang/zh-cn.js +15 -0
  394. data/app/assets/javascripts/ckeditor/_source/plugins/uicolor/plugin.js +2 -2
  395. data/app/assets/javascripts/ckeditor/_source/plugins/undo/plugin.js +19 -4
  396. data/app/assets/javascripts/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +1 -1
  397. data/app/assets/javascripts/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  398. data/app/assets/javascripts/ckeditor/_source/plugins/wsc/dialogs/wsc.css +1 -1
  399. data/app/assets/javascripts/ckeditor/_source/plugins/wsc/dialogs/wsc.js +1 -1
  400. data/app/assets/javascripts/ckeditor/_source/plugins/wsc/plugin.js +1 -1
  401. data/app/assets/javascripts/ckeditor/_source/plugins/wysiwygarea/plugin.js +58 -59
  402. data/app/assets/javascripts/ckeditor/_source/plugins/xml/plugin.js +1 -1
  403. data/app/assets/javascripts/ckeditor/_source/skins/kama/dialog.css +1 -1
  404. data/app/assets/javascripts/ckeditor/_source/skins/kama/editor.css +1 -1
  405. data/app/assets/javascripts/ckeditor/_source/skins/kama/elementspath.css +1 -1
  406. data/app/assets/javascripts/ckeditor/_source/skins/kama/icons.css +1 -1
  407. data/app/assets/javascripts/ckeditor/_source/skins/kama/mainui.css +1 -1
  408. data/app/assets/javascripts/ckeditor/_source/skins/kama/menu.css +1 -1
  409. data/app/assets/javascripts/ckeditor/_source/skins/kama/panel.css +1 -1
  410. data/app/assets/javascripts/ckeditor/_source/skins/kama/presets.css +1 -1
  411. data/app/assets/javascripts/ckeditor/_source/skins/kama/reset.css +1 -1
  412. data/app/assets/javascripts/ckeditor/_source/skins/kama/richcombo.css +1 -1
  413. data/app/assets/javascripts/ckeditor/_source/skins/kama/skin.js +1 -1
  414. data/app/assets/javascripts/ckeditor/_source/skins/kama/templates.css +1 -1
  415. data/app/assets/javascripts/ckeditor/_source/skins/kama/toolbar.css +1 -1
  416. data/app/assets/javascripts/ckeditor/_source/skins/office2003/dialog.css +1 -1
  417. data/app/assets/javascripts/ckeditor/_source/skins/office2003/editor.css +1 -1
  418. data/app/assets/javascripts/ckeditor/_source/skins/office2003/elementspath.css +1 -1
  419. data/app/assets/javascripts/ckeditor/_source/skins/office2003/icons.css +1 -1
  420. data/app/assets/javascripts/ckeditor/_source/skins/office2003/mainui.css +1 -1
  421. data/app/assets/javascripts/ckeditor/_source/skins/office2003/menu.css +1 -1
  422. data/app/assets/javascripts/ckeditor/_source/skins/office2003/panel.css +1 -1
  423. data/app/assets/javascripts/ckeditor/_source/skins/office2003/presets.css +1 -1
  424. data/app/assets/javascripts/ckeditor/_source/skins/office2003/reset.css +1 -1
  425. data/app/assets/javascripts/ckeditor/_source/skins/office2003/skin.js +1 -1
  426. data/app/assets/javascripts/ckeditor/_source/skins/office2003/templates.css +1 -1
  427. data/app/assets/javascripts/ckeditor/_source/skins/office2003/toolbar.css +1 -1
  428. data/app/assets/javascripts/ckeditor/_source/skins/v2/dialog.css +1 -1
  429. data/app/assets/javascripts/ckeditor/_source/skins/v2/editor.css +1 -1
  430. data/app/assets/javascripts/ckeditor/_source/skins/v2/elementspath.css +1 -1
  431. data/app/assets/javascripts/ckeditor/_source/skins/v2/icons.css +1 -1
  432. data/app/assets/javascripts/ckeditor/_source/skins/v2/mainui.css +1 -1
  433. data/app/assets/javascripts/ckeditor/_source/skins/v2/menu.css +1 -1
  434. data/app/assets/javascripts/ckeditor/_source/skins/v2/panel.css +1 -1
  435. data/app/assets/javascripts/ckeditor/_source/skins/v2/presets.css +1 -1
  436. data/app/assets/javascripts/ckeditor/_source/skins/v2/reset.css +1 -1
  437. data/app/assets/javascripts/ckeditor/_source/skins/v2/skin.js +1 -1
  438. data/app/assets/javascripts/ckeditor/_source/skins/v2/templates.css +1 -1
  439. data/app/assets/javascripts/ckeditor/_source/skins/v2/toolbar.css +1 -1
  440. data/app/assets/javascripts/ckeditor/_source/themes/default/theme.js +1 -1
  441. data/app/assets/javascripts/ckeditor/adapters/jquery.js +1 -1
  442. data/app/assets/javascripts/ckeditor/ckeditor.asp +4 -4
  443. data/app/assets/javascripts/ckeditor/ckeditor.js +119 -117
  444. data/app/assets/javascripts/ckeditor/ckeditor.pack +1 -1
  445. data/app/assets/javascripts/ckeditor/ckeditor.php +1 -1
  446. data/app/assets/javascripts/ckeditor/ckeditor_basic.js +3 -3
  447. data/app/assets/javascripts/ckeditor/ckeditor_basic_source.js +2 -2
  448. data/app/assets/javascripts/ckeditor/ckeditor_php4.php +4 -4
  449. data/app/assets/javascripts/ckeditor/ckeditor_php5.php +4 -4
  450. data/app/assets/javascripts/ckeditor/ckeditor_source.js +2 -2
  451. data/app/assets/javascripts/ckeditor/config.js +11 -11
  452. data/app/assets/javascripts/ckeditor/contents.css +1 -1
  453. data/app/assets/javascripts/ckeditor/lang/_languages.js +1 -1
  454. data/app/assets/javascripts/ckeditor/lang/_translationstatus.txt +25 -23
  455. data/app/assets/javascripts/ckeditor/lang/af.js +1 -1
  456. data/app/assets/javascripts/ckeditor/lang/ar.js +2 -2
  457. data/app/assets/javascripts/ckeditor/lang/bg.js +2 -2
  458. data/app/assets/javascripts/ckeditor/lang/bn.js +1 -1
  459. data/app/assets/javascripts/ckeditor/lang/bs.js +1 -1
  460. data/app/assets/javascripts/ckeditor/lang/ca.js +1 -1
  461. data/app/assets/javascripts/ckeditor/lang/cs.js +2 -2
  462. data/app/assets/javascripts/ckeditor/lang/cy.js +2 -2
  463. data/app/assets/javascripts/ckeditor/lang/da.js +2 -2
  464. data/app/assets/javascripts/ckeditor/lang/de.js +2 -2
  465. data/app/assets/javascripts/ckeditor/lang/el.js +2 -2
  466. data/app/assets/javascripts/ckeditor/lang/en-au.js +1 -1
  467. data/app/assets/javascripts/ckeditor/lang/en-ca.js +1 -1
  468. data/app/assets/javascripts/ckeditor/lang/en-gb.js +1 -1
  469. data/app/assets/javascripts/ckeditor/lang/en.js +1 -1
  470. data/app/assets/javascripts/ckeditor/lang/eo.js +2 -2
  471. data/app/assets/javascripts/ckeditor/lang/es.js +1 -1
  472. data/app/assets/javascripts/ckeditor/lang/et.js +2 -2
  473. data/app/assets/javascripts/ckeditor/lang/eu.js +1 -1
  474. data/app/assets/javascripts/ckeditor/lang/fa.js +1 -1
  475. data/app/assets/javascripts/ckeditor/lang/fi.js +1 -1
  476. data/app/assets/javascripts/ckeditor/lang/fo.js +2 -2
  477. data/app/assets/javascripts/ckeditor/lang/fr-ca.js +1 -1
  478. data/app/assets/javascripts/ckeditor/lang/fr.js +2 -2
  479. data/app/assets/javascripts/ckeditor/lang/gl.js +1 -1
  480. data/app/assets/javascripts/ckeditor/lang/gu.js +2 -2
  481. data/app/assets/javascripts/ckeditor/lang/he.js +1 -1
  482. data/app/assets/javascripts/ckeditor/lang/hi.js +2 -2
  483. data/app/assets/javascripts/ckeditor/lang/hr.js +2 -2
  484. data/app/assets/javascripts/ckeditor/lang/hu.js +1 -1
  485. data/app/assets/javascripts/ckeditor/lang/is.js +1 -1
  486. data/app/assets/javascripts/ckeditor/lang/it.js +2 -2
  487. data/app/assets/javascripts/ckeditor/lang/ja.js +1 -1
  488. data/app/assets/javascripts/ckeditor/lang/ka.js +1 -1
  489. data/app/assets/javascripts/ckeditor/lang/km.js +1 -1
  490. data/app/assets/javascripts/ckeditor/lang/ko.js +1 -1
  491. data/app/assets/javascripts/ckeditor/lang/lt.js +1 -1
  492. data/app/assets/javascripts/ckeditor/lang/lv.js +1 -1
  493. data/app/assets/javascripts/ckeditor/lang/mk.js +6 -0
  494. data/app/assets/javascripts/ckeditor/lang/mn.js +1 -1
  495. data/app/assets/javascripts/ckeditor/lang/ms.js +1 -1
  496. data/app/assets/javascripts/ckeditor/lang/nb.js +2 -2
  497. data/app/assets/javascripts/ckeditor/lang/nl.js +2 -2
  498. data/app/assets/javascripts/ckeditor/lang/no.js +2 -2
  499. data/app/assets/javascripts/ckeditor/lang/pl.js +2 -2
  500. data/app/assets/javascripts/ckeditor/lang/pt-br.js +1 -1
  501. data/app/assets/javascripts/ckeditor/lang/pt.js +2 -2
  502. data/app/assets/javascripts/ckeditor/lang/ro.js +1 -1
  503. data/app/assets/javascripts/ckeditor/lang/ru.js +1 -1
  504. data/app/assets/javascripts/ckeditor/lang/sk.js +1 -1
  505. data/app/assets/javascripts/ckeditor/lang/sl.js +1 -1
  506. data/app/assets/javascripts/ckeditor/lang/sr-latn.js +1 -1
  507. data/app/assets/javascripts/ckeditor/lang/sr.js +1 -1
  508. data/app/assets/javascripts/ckeditor/lang/sv.js +1 -1
  509. data/app/assets/javascripts/ckeditor/lang/th.js +1 -1
  510. data/app/assets/javascripts/ckeditor/lang/tr.js +2 -2
  511. data/app/assets/javascripts/ckeditor/lang/ug.js +6 -0
  512. data/app/assets/javascripts/ckeditor/lang/uk.js +2 -2
  513. data/app/assets/javascripts/ckeditor/lang/vi.js +2 -2
  514. data/app/assets/javascripts/ckeditor/lang/zh-cn.js +2 -2
  515. data/app/assets/javascripts/ckeditor/lang/zh.js +2 -2
  516. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
  517. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/_translationstatus.txt +23 -0
  518. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cs.js +6 -0
  519. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cy.js +6 -0
  520. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/da.js +6 -0
  521. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/de.js +6 -0
  522. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/el.js +6 -0
  523. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +2 -2
  524. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/eo.js +6 -0
  525. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fa.js +6 -0
  526. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fi.js +6 -0
  527. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fr.js +6 -0
  528. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/gu.js +6 -0
  529. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +2 -2
  530. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/it.js +6 -0
  531. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/mk.js +6 -0
  532. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nb.js +6 -0
  533. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nl.js +6 -0
  534. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/no.js +6 -0
  535. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/tr.js +6 -0
  536. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ug.js +6 -0
  537. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/vi.js +6 -0
  538. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/lang/zh-cn.js +6 -0
  539. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
  540. data/app/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +1 -1
  541. data/app/assets/javascripts/ckeditor/plugins/ajax/plugin.js +1 -1
  542. data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +2 -2
  543. data/app/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +1 -1
  544. data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +2 -2
  545. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +3 -3
  546. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/_translationstatus.txt +27 -0
  547. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/bg.js +6 -0
  548. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/cs.js +6 -0
  549. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/cy.js +6 -0
  550. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/da.js +6 -0
  551. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/de.js +6 -0
  552. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/el.js +6 -0
  553. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +1 -1
  554. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/eo.js +6 -0
  555. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/et.js +6 -0
  556. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/fa.js +6 -0
  557. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/fi.js +6 -0
  558. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/fr.js +6 -0
  559. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/gu.js +6 -0
  560. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/he.js +6 -0
  561. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/hr.js +6 -0
  562. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/it.js +6 -0
  563. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/nb.js +6 -0
  564. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/nl.js +6 -0
  565. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/no.js +6 -0
  566. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/pl.js +6 -0
  567. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/tr.js +6 -0
  568. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/ug.js +6 -0
  569. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/uk.js +6 -0
  570. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/vi.js +6 -0
  571. data/app/assets/javascripts/ckeditor/plugins/devtools/lang/zh-cn.js +6 -0
  572. data/app/assets/javascripts/ckeditor/plugins/devtools/plugin.js +2 -2
  573. data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  574. data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +1 -1
  575. data/app/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +1 -1
  576. data/app/assets/javascripts/ckeditor/plugins/docprops/plugin.js +1 -1
  577. data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +1 -1
  578. data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +1 -1
  579. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +1 -1
  580. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +1 -1
  581. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +1 -1
  582. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +1 -1
  583. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +1 -1
  584. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +1 -1
  585. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +1 -1
  586. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +1 -1
  587. data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +1 -1
  588. data/app/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +1 -1
  589. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +9 -9
  590. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +1 -1
  591. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +5 -5
  592. data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
  593. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +1 -1
  594. data/app/assets/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +1 -1
  595. data/app/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +1 -1
  596. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/_translationstatus.txt +26 -0
  597. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +6 -0
  598. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +6 -0
  599. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +6 -0
  600. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +6 -0
  601. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +6 -0
  602. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +6 -0
  603. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +1 -1
  604. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +6 -0
  605. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +6 -0
  606. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +6 -0
  607. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +6 -0
  608. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +6 -0
  609. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +1 -1
  610. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +6 -0
  611. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +6 -0
  612. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +6 -0
  613. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +6 -0
  614. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +6 -0
  615. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +6 -0
  616. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +6 -0
  617. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +6 -0
  618. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +6 -0
  619. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +6 -0
  620. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +6 -0
  621. data/app/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +2 -2
  622. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +1 -1
  623. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +1 -1
  624. data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
  625. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +1 -1
  626. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/_translationstatus.txt +19 -0
  627. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/cs.js +6 -0
  628. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/cy.js +6 -0
  629. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/de.js +6 -0
  630. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/en.js +1 -1
  631. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/eo.js +6 -0
  632. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/et.js +6 -0
  633. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/fa.js +6 -0
  634. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/fi.js +6 -0
  635. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/fr.js +6 -0
  636. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/hr.js +6 -0
  637. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/it.js +6 -0
  638. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/nb.js +6 -0
  639. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/nl.js +6 -0
  640. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/no.js +6 -0
  641. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/tr.js +6 -0
  642. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/ug.js +6 -0
  643. data/app/assets/javascripts/ckeditor/plugins/specialchar/lang/zh-cn.js +6 -0
  644. data/app/assets/javascripts/ckeditor/plugins/styles/styles/default.js +1 -1
  645. data/app/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +1 -1
  646. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +5 -5
  647. data/app/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +1 -1
  648. data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +3 -3
  649. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +1 -1
  650. data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
  651. data/app/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +1 -1
  652. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/_translationstatus.txt +27 -0
  653. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/bg.js +6 -0
  654. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/cs.js +6 -0
  655. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/cy.js +6 -0
  656. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/da.js +6 -0
  657. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/de.js +6 -0
  658. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/el.js +6 -0
  659. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +1 -1
  660. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/eo.js +6 -0
  661. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/et.js +6 -0
  662. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/fa.js +6 -0
  663. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/fi.js +6 -0
  664. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/fr.js +6 -0
  665. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +1 -1
  666. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/hr.js +6 -0
  667. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/it.js +6 -0
  668. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/mk.js +6 -0
  669. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/nb.js +6 -0
  670. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/nl.js +6 -0
  671. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/no.js +6 -0
  672. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/pl.js +6 -0
  673. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/tr.js +6 -0
  674. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/ug.js +6 -0
  675. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/uk.js +6 -0
  676. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/vi.js +6 -0
  677. data/app/assets/javascripts/ckeditor/plugins/uicolor/lang/zh-cn.js +6 -0
  678. data/app/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +2 -2
  679. data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +1 -1
  680. data/app/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +1 -1
  681. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +1 -1
  682. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  683. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +1 -1
  684. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +1 -1
  685. data/app/assets/javascripts/ckeditor/plugins/xml/plugin.js +1 -1
  686. data/app/assets/javascripts/ckeditor/skins/kama/dialog.css +2 -2
  687. data/app/assets/javascripts/ckeditor/skins/kama/editor.css +3 -3
  688. data/app/assets/javascripts/ckeditor/skins/kama/skin.js +1 -1
  689. data/app/assets/javascripts/ckeditor/skins/kama/templates.css +1 -1
  690. data/app/assets/javascripts/ckeditor/skins/office2003/dialog.css +1 -1
  691. data/app/assets/javascripts/ckeditor/skins/office2003/editor.css +1 -1
  692. data/app/assets/javascripts/ckeditor/skins/office2003/skin.js +1 -1
  693. data/app/assets/javascripts/ckeditor/skins/office2003/templates.css +1 -1
  694. data/app/assets/javascripts/ckeditor/skins/v2/dialog.css +1 -1
  695. data/app/assets/javascripts/ckeditor/skins/v2/editor.css +1 -1
  696. data/app/assets/javascripts/ckeditor/skins/v2/skin.js +1 -1
  697. data/app/assets/javascripts/ckeditor/skins/v2/templates.css +1 -1
  698. data/app/assets/javascripts/ckeditor/themes/default/theme.js +1 -1
  699. data/lib/refinery/ckeditor/version.rb +1 -1
  700. metadata +262 -21
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -425,6 +425,25 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
425
425
  }
426
426
  }
427
427
  });
428
+
429
+ editor.on( 'key', function( evt )
430
+ {
431
+ // Backspace at the beginning of list item should outdent it.
432
+ if ( editor.mode == 'wysiwyg' && evt.data.keyCode == 8 )
433
+ {
434
+ var sel = editor.getSelection(),
435
+ range = sel.getRanges()[ 0 ],
436
+ li;
437
+
438
+ if ( range.collapsed &&
439
+ ( li = range.startContainer.getAscendant( 'li', 1 ) ) &&
440
+ range.checkBoundaryOfElement( li, CKEDITOR.START ) )
441
+ {
442
+ editor.execCommand( 'outdent' );
443
+ evt.cancel();
444
+ }
445
+ }
446
+ });
428
447
  },
429
448
 
430
449
  requires : [ 'domiterator', 'list' ]
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -9,18 +9,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
9
9
 
10
10
  (function()
11
11
  {
12
- function getState( editor, path )
13
- {
14
- var firstBlock = path.block || path.blockLimit;
15
-
16
- if ( !firstBlock || firstBlock.getName() == 'body' )
17
- return CKEDITOR.TRISTATE_OFF;
18
-
19
- return ( getAlignment( firstBlock, editor.config.useComputedState ) == this.value ) ?
20
- CKEDITOR.TRISTATE_ON :
21
- CKEDITOR.TRISTATE_OFF;
22
- }
23
-
24
12
  function getAlignment( element, useComputedState )
25
13
  {
26
14
  useComputedState = useComputedState === undefined || useComputedState;
@@ -40,7 +28,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
40
28
  align = element.getStyle( 'text-align' ) || element.getAttribute( 'align' ) || '';
41
29
  }
42
30
 
43
- align && ( align = align.replace( /-moz-|-webkit-|start|auto/i, '' ) );
31
+ // Sometimes computed values doesn't tell.
32
+ align && ( align = align.replace( /(?:-(?:moz|webkit)-)?(?:start|auto)/i, '' ) );
44
33
 
45
34
  !align && useComputedState && ( align = element.getComputedStyle( 'direction' ) == 'rtl' ? 'right' : 'left' );
46
35
 
@@ -52,13 +41,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
52
41
  if ( evt.editor.readOnly )
53
42
  return;
54
43
 
55
- var command = evt.editor.getCommand( this.name );
56
- command.state = getState.call( this, evt.editor, evt.data.path );
57
- command.fire( 'state' );
44
+ evt.editor.getCommand( this.name ).refresh( evt.data.path );
58
45
  }
59
46
 
60
47
  function justifyCommand( editor, name, value )
61
48
  {
49
+ this.editor = editor;
62
50
  this.name = name;
63
51
  this.value = value;
64
52
 
@@ -192,6 +180,16 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
192
180
  editor.focus();
193
181
  editor.forceNextSelectionCheck();
194
182
  selection.selectBookmarks( bookmarks );
183
+ },
184
+
185
+ refresh : function( path )
186
+ {
187
+ var firstBlock = path.block || path.blockLimit;
188
+
189
+ this.setState( firstBlock.getName() != 'body' &&
190
+ getAlignment( firstBlock, this.editor.config.useComputedState ) == this.value ?
191
+ CKEDITOR.TRISTATE_ON :
192
+ CKEDITOR.TRISTATE_OFF );
195
193
  }
196
194
  };
197
195
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -245,7 +245,7 @@ CKEDITOR.dialog.add( 'link', function( editor )
245
245
 
246
246
  // Find out whether we have any anchors in the editor.
247
247
  var anchors = retval.anchors = [],
248
- item;
248
+ i, count, item;
249
249
 
250
250
  // For some browsers we set contenteditable="false" on anchors, making document.anchors not to include them, so we must traverse the links manually (#7893).
251
251
  if ( CKEDITOR.plugins.link.emptyAnchorFix )
@@ -261,7 +261,7 @@ CKEDITOR.dialog.add( 'link', function( editor )
261
261
  else
262
262
  {
263
263
  var anchorList = new CKEDITOR.dom.nodeList( editor.document.$.anchors );
264
- for ( var i = 0, count = anchorList.count(); i < count; i++ )
264
+ for ( i = 0, count = anchorList.count(); i < count; i++ )
265
265
  {
266
266
  item = anchorList.getItem( i );
267
267
  anchors[ i ] = { name : item.getAttribute( 'name' ), id : item.getAttribute( 'id' ) };
@@ -653,7 +653,7 @@ CKEDITOR.dialog.add( 'link', function( editor )
653
653
  type : 'html',
654
654
  id : 'noAnchors',
655
655
  style : 'text-align: center;',
656
- html : '<div role="label" tabIndex="-1">' + CKEDITOR.tools.htmlEncode( linkLang.noAnchors ) + '</div>',
656
+ html : '<div role="note" tabIndex="-1">' + CKEDITOR.tools.htmlEncode( linkLang.noAnchors ) + '</div>',
657
657
  // Focus the first element defined in above html.
658
658
  focus : true,
659
659
  setup : function( data )
@@ -1328,14 +1328,15 @@ CKEDITOR.dialog.add( 'link', function( editor )
1328
1328
  }
1329
1329
 
1330
1330
 
1331
+ var selection = editor.getSelection();
1332
+
1331
1333
  // Browser need the "href" fro copy/paste link to work. (#6641)
1332
1334
  attributes.href = attributes[ 'data-cke-saved-href' ];
1333
1335
 
1334
1336
  if ( !this._.selectedElement )
1335
1337
  {
1336
1338
  // Create element if current selection is collapsed.
1337
- var selection = editor.getSelection(),
1338
- ranges = selection.getRanges( true );
1339
+ var ranges = selection.getRanges( true );
1339
1340
  if ( ranges.length == 1 && ranges[0].collapsed )
1340
1341
  {
1341
1342
  // Short mailto link text view (#5736).
@@ -1372,6 +1373,7 @@ CKEDITOR.dialog.add( 'link', function( editor )
1372
1373
  data.email.address : attributes[ 'data-cke-saved-href' ] );
1373
1374
  }
1374
1375
 
1376
+ selection.selectElement( element );
1375
1377
  delete this._.selectedElement;
1376
1378
  }
1377
1379
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.html or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -14,7 +14,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
14
14
 
15
15
  var whitespaces = CKEDITOR.dom.walker.whitespaces(),
16
16
  bookmarks = CKEDITOR.dom.walker.bookmark(),
17
- nonEmpty = function( node ){ return !( whitespaces( node ) || bookmarks( node ) ); };
17
+ nonEmpty = function( node ){ return !( whitespaces( node ) || bookmarks( node ) );},
18
+ blockBogus = CKEDITOR.dom.walker.bogus();
18
19
 
19
20
  function cleanUpDirection( element )
20
21
  {
@@ -95,13 +96,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
95
96
  baseIndex = 0;
96
97
  if ( !listArray || listArray.length < baseIndex + 1 )
97
98
  return null;
98
- var doc = listArray[ baseIndex ].parent.getDocument(),
99
+ var i,
100
+ doc = listArray[ baseIndex ].parent.getDocument(),
99
101
  retval = new CKEDITOR.dom.documentFragment( doc ),
100
102
  rootNode = null,
101
103
  currentIndex = baseIndex,
102
104
  indentLevel = Math.max( listArray[ baseIndex ].indent, 0 ),
103
105
  currentListItem = null,
104
106
  orgDir,
107
+ block,
105
108
  paragraphName = ( paragraphMode == CKEDITOR.ENTER_P ? 'p' : 'div' );
106
109
  while ( 1 )
107
110
  {
@@ -122,7 +125,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
122
125
  if ( orgDir != rootNode.getDirection( 1 ) )
123
126
  currentListItem.setAttribute( 'dir', orgDir );
124
127
 
125
- for ( var i = 0 ; i < item.contents.length ; i++ )
128
+ for ( i = 0 ; i < item.contents.length ; i++ )
126
129
  currentListItem.append( item.contents[i].clone( 1, 1 ) );
127
130
  currentIndex++;
128
131
  }
@@ -146,31 +149,53 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
146
149
  if ( listNodeNames[ item.grandparent.getName() ] )
147
150
  currentListItem = item.element.clone( false, true );
148
151
  else
152
+ currentListItem = new CKEDITOR.dom.documentFragment( doc );
153
+
154
+ // Migrate all children to the new container,
155
+ // apply the proper text direction.
156
+ var dirLoose = item.grandparent.getDirection( 1 ) != orgDir,
157
+ needsBlock = currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT &&
158
+ paragraphMode != CKEDITOR.ENTER_BR,
159
+ li = item.element,
160
+ className = li.getAttribute( 'class' ),
161
+ style = li.getAttribute( 'style' );
162
+
163
+ var child, count = item.contents.length;
164
+ for ( i = 0 ; i < count; i++ )
149
165
  {
150
- // Create completely new blocks here.
151
- if ( dir || item.element.hasAttributes() || paragraphMode != CKEDITOR.ENTER_BR )
166
+ child = item.contents[ i ];
167
+
168
+ if ( child.type == CKEDITOR.NODE_ELEMENT && child.isBlockBoundary() )
152
169
  {
153
- currentListItem = doc.createElement( paragraphName );
154
- item.element.copyAttributes( currentListItem, { type:1, value:1 } );
155
-
156
- // There might be a case where there are no attributes in the element after all
157
- // (i.e. when "type" or "value" are the only attributes set). In this case, if enterMode = BR,
158
- // the current item should be a fragment.
159
- if ( !dir && paragraphMode == CKEDITOR.ENTER_BR && !currentListItem.hasAttributes() )
160
- currentListItem = new CKEDITOR.dom.documentFragment( doc );
170
+ // Apply direction on content blocks.
171
+ if ( dirLoose && !child.getDirection() )
172
+ child.setAttribute( 'dir', orgDir );
173
+
174
+ // Merge into child styles.
175
+ style && child.setAttribute( 'style',
176
+ style.replace( /([^;])$/, '$1;') +
177
+ ( child.getAttribute( 'style' ) || '' ) );
178
+
179
+ className && child.addClass( className );
161
180
  }
162
- else
163
- currentListItem = new CKEDITOR.dom.documentFragment( doc );
164
- }
181
+ else if ( dirLoose || needsBlock || style || className )
182
+ {
183
+ // Establish new block to hold text direction and styles.
184
+ if ( !block )
185
+ {
186
+ block = doc.createElement( paragraphName );
187
+ dirLoose && block.setAttribute( 'dir', orgDir );
188
+ }
165
189
 
166
- if ( currentListItem.type == CKEDITOR.NODE_ELEMENT )
167
- {
168
- if ( item.grandparent.getDirection( 1 ) != orgDir )
169
- currentListItem.setAttribute( 'dir', orgDir );
170
- }
190
+ // Copy over styles to new block;
191
+ style && block.setAttribute( 'style', style );
192
+ className && block.setAttribute( 'class', className );
171
193
 
172
- for ( i = 0 ; i < item.contents.length ; i++ )
173
- currentListItem.append( item.contents[i].clone( 1, 1 ) );
194
+ block.append( child.clone( 1, 1 ) );
195
+ }
196
+
197
+ currentListItem.append( block || child.clone( 1, 1 ) );
198
+ }
174
199
 
175
200
  if ( currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT
176
201
  && currentIndex != listArray.length - 1 )
@@ -190,20 +215,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
190
215
  }
191
216
  }
192
217
 
193
- if ( currentListItem.type == CKEDITOR.NODE_ELEMENT &&
194
- currentListItem.getName() == paragraphName &&
195
- currentListItem.$.firstChild )
196
- {
197
- currentListItem.trim();
198
- var firstChild = currentListItem.getFirst();
199
- if ( firstChild.type == CKEDITOR.NODE_ELEMENT && firstChild.isBlockBoundary() )
200
- {
201
- var tmp = new CKEDITOR.dom.documentFragment( doc );
202
- currentListItem.moveChildren( tmp );
203
- currentListItem = tmp;
204
- }
205
- }
206
-
207
218
  var currentListItemName = currentListItem.$.nodeName.toLowerCase();
208
219
  if ( !CKEDITOR.env.ie && ( currentListItemName == 'div' || currentListItemName == 'p' ) )
209
220
  currentListItem.appendBogus();
@@ -214,6 +225,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
214
225
  else
215
226
  return null;
216
227
 
228
+ block = null;
229
+
217
230
  if ( listArray.length <= currentIndex || Math.max( listArray[ currentIndex ].indent, 0 ) < indentLevel )
218
231
  break;
219
232
  }
@@ -483,19 +496,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
483
496
  this.type = type;
484
497
  }
485
498
 
486
- // Move direction attribute from root to list items.
487
- function dirToListItems( list )
499
+ var elementType = CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT );
500
+ // Merge list items with direction preserved. (#7448)
501
+ function mergeListItems( from, into, refNode, toHead )
488
502
  {
489
- var dir = list.getDirection();
490
- if ( dir )
503
+ var child, itemDir;
504
+ while ( ( child = from.getFirst( elementType ) ) )
491
505
  {
492
- for ( var i = 0, children = list.getChildren(), child; child = children.getItem( i ), i < children.count(); i++ )
493
- {
494
- if ( child.type == CKEDITOR.NODE_ELEMENT && child.is( 'li' ) && !child.getDirection() )
495
- child.setAttribute( 'dir', dir );
496
- }
506
+ if ( ( itemDir = child.getDirection( 1 ) ) !== into.getDirection( 1 ) )
507
+ child.setAttribute( 'dir', itemDir );
497
508
 
498
- list.removeAttribute( 'dir' );
509
+ child.remove();
510
+
511
+ refNode ?
512
+ child[ toHead ? 'insertBefore' : 'insertAfter' ]( refNode ) :
513
+ into.append( child, toHead );
499
514
  }
500
515
  }
501
516
 
@@ -640,26 +655,24 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
640
655
  removeList.call( this, editor, groupObj, database );
641
656
  }
642
657
 
643
- // For all new lists created, merge adjacent, same type lists.
658
+ // For all new lists created, merge into adjacent, same type lists.
644
659
  for ( i = 0 ; i < listsCreated.length ; i++ )
645
660
  {
646
661
  listNode = listsCreated[i];
647
662
  var mergeSibling, listCommand = this;
648
- ( mergeSibling = function( rtl ){
663
+ ( mergeSibling = function( rtl )
664
+ {
649
665
 
650
666
  var sibling = listNode[ rtl ?
651
667
  'getPrevious' : 'getNext' ]( CKEDITOR.dom.walker.whitespaces( true ) );
652
668
  if ( sibling && sibling.getName &&
653
669
  sibling.getName() == listCommand.type )
654
670
  {
655
-
656
- // In case to be merged lists have difference directions. (#7448)
657
- if ( sibling.getDirection( 1 ) != listNode.getDirection( 1 ) )
658
- dirToListItems( listNode.getDirection() ? listNode : sibling );
659
-
660
- sibling.remove();
661
671
  // Move children order by merge direction.(#3820)
662
- sibling.moveChildren( listNode, rtl );
672
+ mergeListItems( listNode, sibling, null, !rtl );
673
+
674
+ listNode.remove();
675
+ listNode = sibling;
663
676
  }
664
677
  } )();
665
678
  mergeSibling( 1 );
@@ -734,6 +747,96 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
734
747
  for ( i in dtd.$listItem )
735
748
  defaultListHtmlFilterRules.elements[ i ] = getExtendNestedListFilter( true );
736
749
 
750
+ // Check if node is block element that recieves text.
751
+ function isTextBlock( node )
752
+ {
753
+ return node.type == CKEDITOR.NODE_ELEMENT &&
754
+ ( node.getName() in CKEDITOR.dtd.$block ||
755
+ node.getName() in CKEDITOR.dtd.$listItem ) &&
756
+ CKEDITOR.dtd[ node.getName() ][ '#' ];
757
+ }
758
+
759
+ // Merge the visual line content at the cursor range into the block.
760
+ function joinNextLineToCursor( editor, cursor, nextCursor )
761
+ {
762
+ editor.fire( 'saveSnapshot' );
763
+
764
+ // Merge with previous block's content.
765
+ nextCursor.enlarge( CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS );
766
+ var frag = nextCursor.extractContents();
767
+
768
+ cursor.trim( false, true );
769
+
770
+ // Kill original bogus;
771
+ var currentPath = new CKEDITOR.dom.elementPath( cursor.startContainer );
772
+ var currentLi = currentPath.lastElement.getAscendant( 'li', 1 );
773
+
774
+ var bogus = currentPath.block.getBogus();
775
+ bogus && bogus.remove();
776
+
777
+ // Kill the tail br in extracted.
778
+ var last = frag.getLast();
779
+ if ( last && last.type == CKEDITOR.NODE_ELEMENT && last.is( 'br' ) )
780
+ last.remove();
781
+
782
+ // Insert fragment at the range position.
783
+ var nextNode = cursor.startContainer.getChild( cursor.startOffset );
784
+ if ( nextNode )
785
+ frag.insertBefore( nextNode );
786
+ else
787
+ cursor.startContainer.append( frag );
788
+
789
+ var nextPath = new CKEDITOR.dom.elementPath( nextCursor.startContainer );
790
+ var nextLi = nextCursor.startContainer.getAscendant( 'li', 1 );
791
+
792
+ // Move the sub list nested in the next list item.
793
+ if ( nextLi )
794
+ {
795
+ var sublist = getSubList( nextLi );
796
+ if ( sublist )
797
+ {
798
+ // If next line is in the sub list of the current list item.
799
+ if ( currentLi.contains( nextLi ) )
800
+ {
801
+ mergeListItems( sublist, nextLi.getParent(), nextLi );
802
+ sublist.remove();
803
+ }
804
+ // Migrate the sub list to current list item.
805
+ else
806
+ currentLi.append( sublist );
807
+ }
808
+ }
809
+
810
+
811
+ if ( nextCursor.checkStartOfBlock() &&
812
+ nextCursor.checkEndOfBlock() )
813
+ {
814
+ var nextBlock = nextPath.block,
815
+ parentBlock = nextBlock.getParent();
816
+
817
+ nextBlock.remove();
818
+
819
+ // Remove if the path block container is now empty, e.g. li.
820
+ if ( parentBlock &&
821
+ !parentBlock.getFirst( nonEmpty ) &&
822
+ !parentBlock.equals( nextPath.blockLimit ) )
823
+ {
824
+ parentBlock.remove();
825
+ }
826
+ }
827
+
828
+ // Make fresh selection.
829
+ cursor.select();
830
+
831
+ editor.fire( 'saveSnapshot' );
832
+ }
833
+
834
+ function getSubList( li )
835
+ {
836
+ var last = li.getLast( nonEmpty );
837
+ return last && last.type == CKEDITOR.NODE_ELEMENT && last.getName() in listNodeNames ? last : null;
838
+ }
839
+
737
840
  CKEDITOR.plugins.add( 'list',
738
841
  {
739
842
  init : function( editor )
@@ -757,6 +860,96 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
757
860
  // Register the state changing handlers.
758
861
  editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, numberedListCommand ) );
759
862
  editor.on( 'selectionChange', CKEDITOR.tools.bind( onSelectionChange, bulletedListCommand ) );
863
+
864
+ // [IE8] Fix "backspace" after list and "del" at the end of list item. (#8248)
865
+ if ( CKEDITOR.env.ie8Compat )
866
+ {
867
+ editor.on( 'key', function( evt )
868
+ {
869
+ var key = evt.data.keyCode;
870
+
871
+ // DEl/BACKSPACE
872
+ if ( editor.mode == 'wysiwyg' && key in { 8 : 1, 46 : 1 } )
873
+ {
874
+ var sel = editor.getSelection(),
875
+ range = sel.getRanges()[ 0 ];
876
+
877
+ if ( !range.collapsed )
878
+ return;
879
+
880
+ var isBackspace = key == 8;
881
+ var body = editor.document.getBody();
882
+ var walker = new CKEDITOR.dom.walker( range.clone() );
883
+ walker.evaluator = function( node ) { return nonEmpty( node ) && !blockBogus( node ); };
884
+
885
+ var cursor = range.clone();
886
+
887
+ if ( isBackspace )
888
+ {
889
+ walker.range.setStartAt( body, CKEDITOR.POSITION_AFTER_START );
890
+ walker.range.setEnd( range.startContainer, range.startOffset );
891
+
892
+ var previous = walker.previous();
893
+
894
+ // Check if cursor collapsed right behind of a list.
895
+ if ( previous &&
896
+ previous.type == CKEDITOR.NODE_ELEMENT &&
897
+ previous.getName() in listNodeNames )
898
+ {
899
+ walker.range.selectNodeContents( previous );
900
+ walker.reset();
901
+ walker.evaluator = isTextBlock;
902
+
903
+ // Place cursor at the end of previous block.
904
+ cursor.moveToElementEditEnd( walker.lastForward() );
905
+ joinNextLineToCursor( editor, cursor, range );
906
+ evt.cancel();
907
+ }
908
+ }
909
+ else
910
+ {
911
+ var li = range.startContainer.getAscendant( 'li', 1 );
912
+ if ( li )
913
+ {
914
+ walker.range.setEndAt( body, CKEDITOR.POSITION_BEFORE_END );
915
+
916
+ var last = li.getLast( nonEmpty );
917
+ var block = last && isTextBlock( last ) ? last : li;
918
+
919
+ // Indicate cursor at the visual end of an list item.
920
+ var isAtEnd = 0;
921
+
922
+ var next = walker.next();
923
+
924
+ // When list item contains a sub list.
925
+ if ( next && next.type == CKEDITOR.NODE_ELEMENT &&
926
+ next.getName() in listNodeNames
927
+ && next.equals( last ) )
928
+ {
929
+ isAtEnd = 1;
930
+
931
+ // Move to the first item in sub list.
932
+ next = walker.next();
933
+ }
934
+ // Right at the end of list item.
935
+ else if ( range.checkBoundaryOfElement( block, CKEDITOR.END ) )
936
+ isAtEnd = 1;
937
+
938
+
939
+ if ( isAtEnd && next )
940
+ {
941
+ // Put cursor range there.
942
+ var nextLine = range.clone();
943
+ nextLine.moveToElementEditStart( next );
944
+
945
+ joinNextLineToCursor( editor, cursor, nextLine );
946
+ evt.cancel();
947
+ }
948
+ }
949
+ }
950
+ }
951
+ } );
952
+ }
760
953
  },
761
954
 
762
955
  afterInit : function ( editor )