glebtv-ckeditor 4.13.1 → 4.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ckeditor/version.rb +2 -2
  3. data/vendor/assets/javascripts/ckeditor/CHANGES.md +387 -297
  4. data/vendor/assets/javascripts/ckeditor/LICENSE.md +6 -6
  5. data/vendor/assets/javascripts/ckeditor/README.md +5 -5
  6. data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +1 -1
  7. data/vendor/assets/javascripts/ckeditor/build-config.js +5 -3
  8. data/vendor/assets/javascripts/ckeditor/ckeditor.js +620 -609
  9. data/vendor/assets/javascripts/ckeditor/config.js +1 -1
  10. data/vendor/assets/javascripts/ckeditor/contents.css +1 -1
  11. data/vendor/assets/javascripts/ckeditor/lang/en.js +2 -2
  12. data/vendor/assets/javascripts/ckeditor/lang/ru.js +2 -2
  13. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
  14. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +1 -1
  15. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +1 -1
  16. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
  17. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +1 -1
  18. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +2 -4
  19. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js +1 -1
  20. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +2 -2
  21. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
  22. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +2 -2
  23. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.twig.min.js +1 -1
  24. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-day.css +41 -41
  25. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-night.css +39 -39
  26. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/abcdef.css +32 -32
  27. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +5 -5
  28. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +74 -74
  29. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-dark.css +38 -38
  30. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-light.css +38 -38
  31. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/bespin.css +34 -34
  32. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +32 -32
  33. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +25 -25
  34. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/colorforth.css +33 -33
  35. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/darcula.css +51 -51
  36. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/dracula.css +40 -40
  37. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/duotone-dark.css +35 -35
  38. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/duotone-light.css +36 -36
  39. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +23 -23
  40. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +13 -13
  41. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +34 -34
  42. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/gruvbox-dark.css +37 -37
  43. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/hopscotch.css +34 -34
  44. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/icecoder.css +43 -43
  45. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/idea.css +41 -41
  46. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/isotope.css +34 -34
  47. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +47 -47
  48. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/liquibyte.css +95 -95
  49. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lucario.css +37 -37
  50. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/material.css +53 -53
  51. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mbo.css +37 -37
  52. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mdn-like.css +46 -46
  53. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/midnight.css +43 -43
  54. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +41 -41
  55. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +12 -12
  56. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neo.css +43 -43
  57. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +27 -27
  58. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/nord.css +42 -42
  59. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/oceanic-next.css +44 -44
  60. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/panda-syntax.css +85 -85
  61. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-dark.css +38 -38
  62. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-light.css +38 -38
  63. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/pastel-on-dark.css +52 -52
  64. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/railscasts.css +34 -34
  65. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +25 -25
  66. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/seti.css +44 -44
  67. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/shadowfox.css +52 -52
  68. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +168 -168
  69. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ssms.css +16 -16
  70. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/the-matrix.css +30 -30
  71. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-bright.css +35 -35
  72. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-eighties.css +38 -38
  73. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ttcn.css +64 -64
  74. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +32 -32
  75. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +34 -34
  76. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +53 -53
  77. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-light.css +43 -43
  78. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yeti.css +44 -44
  79. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yonce.css +59 -59
  80. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/zenburn.css +37 -37
  81. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +1 -1
  82. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +1 -1
  83. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  84. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +1 -1
  85. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +1 -1
  86. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +1 -1
  87. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +1 -1
  88. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +1 -1
  89. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +1 -1
  90. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +1 -1
  91. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +1 -1
  92. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +1 -1
  93. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +1 -1
  94. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  95. data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
  96. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +1 -1
  97. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +1 -1
  98. data/vendor/assets/javascripts/ckeditor/plugins/image/lang/en.js +1 -1
  99. data/vendor/assets/javascripts/ckeditor/plugins/image/lang/ru.js +1 -1
  100. data/vendor/assets/javascripts/ckeditor/plugins/image/plugin.js +1 -1
  101. data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/contents.css +1 -1
  102. data/vendor/assets/javascripts/ckeditor/plugins/image2/dev/image2.html +2 -2
  103. data/vendor/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +1 -1
  104. data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/en.js +1 -1
  105. data/vendor/assets/javascripts/ckeditor/plugins/image2/lang/ru.js +1 -1
  106. data/vendor/assets/javascripts/ckeditor/plugins/image2/plugin.js +1 -1
  107. data/vendor/assets/javascripts/ckeditor/plugins/image2/samples/image2.html +4 -3
  108. data/vendor/assets/javascripts/ckeditor/plugins/lineheight/plugin.js +1 -1
  109. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +1 -1
  110. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +21 -21
  111. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
  112. data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/lang/fr.js +8 -0
  113. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +34 -34
  114. data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/common.js +19 -16
  115. data/vendor/assets/javascripts/ckeditor/plugins/pastetools/filter/image.js +6 -0
  116. data/vendor/assets/javascripts/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
  117. data/vendor/assets/javascripts/ckeditor/plugins/preview/styles/screen.css +10 -0
  118. data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +1 -17
  119. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
  120. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
  121. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
  122. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +11 -11
  123. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +7 -7
  124. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/samples/stylesheetparser.html +5 -4
  125. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +1 -1
  126. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +15 -15
  127. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +1 -1
  128. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +1 -1
  129. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
  130. data/vendor/assets/javascripts/ckeditor/plugins/wordcount/LICENSE.md +21 -0
  131. data/vendor/assets/javascripts/ckeditor/plugins/wordcount/README.md +106 -0
  132. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  133. data/vendor/assets/javascripts/ckeditor/plugins/youtube/LICENSE.md +15 -0
  134. data/vendor/assets/javascripts/ckeditor/plugins/youtube/README.md +156 -0
  135. data/vendor/assets/javascripts/ckeditor/plugins/youtube/plugin.js +449 -449
  136. data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor.css +1 -1
  137. data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_gecko.css +1 -1
  138. data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie.css +1 -1
  139. data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie7.css +1 -1
  140. data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_ie8.css +1 -1
  141. data/vendor/assets/javascripts/ckeditor/skins/minimalist/editor_iequirks.css +1 -1
  142. data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons.png +0 -0
  143. data/vendor/assets/javascripts/ckeditor/skins/minimalist/icons_hidpi.png +0 -0
  144. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +1 -1
  145. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +1 -1
  146. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +1 -1
  147. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +1 -1
  148. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +1 -1
  149. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +1 -1
  150. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +1 -1
  151. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +1 -1
  152. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +1 -1
  153. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/readme.md +1 -1
  154. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/skin.js +1 -1
  155. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +1 -1
  156. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +1 -1
  157. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +1 -1
  158. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +1 -1
  159. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +1 -1
  160. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +2 -2
  161. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +2 -2
  162. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +2 -2
  163. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +2 -2
  164. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +2 -2
  165. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +2 -2
  166. data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +1 -1
  167. data/vendor/assets/javascripts/ckeditor/skins/moono/skin.js +1 -1
  168. data/vendor/assets/javascripts/ckeditor/styles.js +1 -1
  169. metadata +53 -115
  170. data/vendor/assets/javascripts/ckeditor/lang/af.js +0 -5
  171. data/vendor/assets/javascripts/ckeditor/lang/ar.js +0 -5
  172. data/vendor/assets/javascripts/ckeditor/lang/az.js +0 -5
  173. data/vendor/assets/javascripts/ckeditor/lang/bg.js +0 -5
  174. data/vendor/assets/javascripts/ckeditor/lang/bn.js +0 -5
  175. data/vendor/assets/javascripts/ckeditor/lang/bs.js +0 -5
  176. data/vendor/assets/javascripts/ckeditor/lang/ca.js +0 -5
  177. data/vendor/assets/javascripts/ckeditor/lang/cs.js +0 -5
  178. data/vendor/assets/javascripts/ckeditor/lang/cy.js +0 -5
  179. data/vendor/assets/javascripts/ckeditor/lang/da.js +0 -5
  180. data/vendor/assets/javascripts/ckeditor/lang/de-ch.js +0 -5
  181. data/vendor/assets/javascripts/ckeditor/lang/de.js +0 -5
  182. data/vendor/assets/javascripts/ckeditor/lang/el.js +0 -5
  183. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +0 -5
  184. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
  185. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
  186. data/vendor/assets/javascripts/ckeditor/lang/eo.js +0 -5
  187. data/vendor/assets/javascripts/ckeditor/lang/es-mx.js +0 -5
  188. data/vendor/assets/javascripts/ckeditor/lang/es.js +0 -5
  189. data/vendor/assets/javascripts/ckeditor/lang/et.js +0 -5
  190. data/vendor/assets/javascripts/ckeditor/lang/eu.js +0 -5
  191. data/vendor/assets/javascripts/ckeditor/lang/fa.js +0 -5
  192. data/vendor/assets/javascripts/ckeditor/lang/fi.js +0 -5
  193. data/vendor/assets/javascripts/ckeditor/lang/fo.js +0 -5
  194. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
  195. data/vendor/assets/javascripts/ckeditor/lang/fr.js +0 -5
  196. data/vendor/assets/javascripts/ckeditor/lang/gl.js +0 -5
  197. data/vendor/assets/javascripts/ckeditor/lang/gu.js +0 -5
  198. data/vendor/assets/javascripts/ckeditor/lang/he.js +0 -5
  199. data/vendor/assets/javascripts/ckeditor/lang/hi.js +0 -5
  200. data/vendor/assets/javascripts/ckeditor/lang/hr.js +0 -5
  201. data/vendor/assets/javascripts/ckeditor/lang/hu.js +0 -5
  202. data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -5
  203. data/vendor/assets/javascripts/ckeditor/lang/is.js +0 -5
  204. data/vendor/assets/javascripts/ckeditor/lang/it.js +0 -5
  205. data/vendor/assets/javascripts/ckeditor/lang/ja.js +0 -5
  206. data/vendor/assets/javascripts/ckeditor/lang/ka.js +0 -5
  207. data/vendor/assets/javascripts/ckeditor/lang/km.js +0 -5
  208. data/vendor/assets/javascripts/ckeditor/lang/ko.js +0 -5
  209. data/vendor/assets/javascripts/ckeditor/lang/ku.js +0 -5
  210. data/vendor/assets/javascripts/ckeditor/lang/lt.js +0 -5
  211. data/vendor/assets/javascripts/ckeditor/lang/lv.js +0 -5
  212. data/vendor/assets/javascripts/ckeditor/lang/mk.js +0 -5
  213. data/vendor/assets/javascripts/ckeditor/lang/mn.js +0 -5
  214. data/vendor/assets/javascripts/ckeditor/lang/ms.js +0 -5
  215. data/vendor/assets/javascripts/ckeditor/lang/nb.js +0 -5
  216. data/vendor/assets/javascripts/ckeditor/lang/nl.js +0 -5
  217. data/vendor/assets/javascripts/ckeditor/lang/no.js +0 -5
  218. data/vendor/assets/javascripts/ckeditor/lang/oc.js +0 -5
  219. data/vendor/assets/javascripts/ckeditor/lang/pl.js +0 -5
  220. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
  221. data/vendor/assets/javascripts/ckeditor/lang/pt.js +0 -5
  222. data/vendor/assets/javascripts/ckeditor/lang/ro.js +0 -5
  223. data/vendor/assets/javascripts/ckeditor/lang/si.js +0 -5
  224. data/vendor/assets/javascripts/ckeditor/lang/sk.js +0 -5
  225. data/vendor/assets/javascripts/ckeditor/lang/sl.js +0 -5
  226. data/vendor/assets/javascripts/ckeditor/lang/sq.js +0 -5
  227. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
  228. data/vendor/assets/javascripts/ckeditor/lang/sr.js +0 -5
  229. data/vendor/assets/javascripts/ckeditor/lang/sv.js +0 -5
  230. data/vendor/assets/javascripts/ckeditor/lang/th.js +0 -5
  231. data/vendor/assets/javascripts/ckeditor/lang/tr.js +0 -5
  232. data/vendor/assets/javascripts/ckeditor/lang/tt.js +0 -5
  233. data/vendor/assets/javascripts/ckeditor/lang/ug.js +0 -5
  234. data/vendor/assets/javascripts/ckeditor/lang/uk.js +0 -5
  235. data/vendor/assets/javascripts/ckeditor/lang/vi.js +0 -5
  236. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
  237. data/vendor/assets/javascripts/ckeditor/lang/zh.js +0 -5
  238. data/vendor/assets/javascripts/ckeditor/plugins/lineheight/lang/ru.js +0 -3
  239. data/vendor/assets/javascripts/ckeditor/plugins/loremipsum/lang/ru.js +0 -8
  240. data/vendor/assets/javascripts/ckeditor/skins/minimalist/skin.js +0 -10
@@ -1,20 +1,4 @@
1
1
  SCAYT plugin for CKEditor 4 Changelog
2
2
  ====================
3
- ### CKEditor 4.5.6
4
3
 
5
- New Features:
6
- * CKEditor [language addon](http://ckeditor.com/addon/language) support
7
- * CKEditor [placeholder addon](http://ckeditor.com/addon/placeholder) support
8
- * Drag and Drop support
9
- * *Experimental* GRAYT functionality http://www.webspellchecker.net/samples/scayt-ckeditor-plugin.html#25
10
-
11
- Fixed issues:
12
- * [#98](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/98) SCAYT Affects Dialog Double Click. Fixed in SCAYT Core.
13
- * [#102](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/102) SCAYT Core performance enhancements
14
- * [#104](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/104) SCAYT's spans leak into the clipboard and after pasting
15
- * [#105](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/105) Javascript error fired in case of multiple instances of CKEditor in one page
16
- * [#107](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/107) SCAYT should not check non-editable parts of content
17
- * [#108](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/108) Latest SCAYT copies id of editor element to the iframe
18
- * SCAYT stops working when CKEditor Undo plug-in not enabled
19
- * Issue with pasting SCAYT markup in CKEditor
20
- * [#32](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/32) SCAYT stops working after pressing Cancel button in WSC dialog
4
+ The full changelog of the SCAYT plugin for CKEditor 4 can be found on our website under the [release notes](https://webspellchecker.com/release-notes/) section.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  CKEDITOR.dialog.add("smiley",function(f){for(var e=f.config,a=f.lang.smiley,h=e.smiley_images,g=e.smiley_columns||8,k,m=function(l){var c=l.data.getTarget(),b=c.getName();if("a"==b)c=c.getChild(0);else if("img"!=b)return;var b=c.getAttribute("cke_src"),a=c.getAttribute("title"),c=f.document.createElement("img",{attributes:{src:b,"data-cke-saved-src":b,title:a,alt:a,width:c.$.width,height:c.$.height}});f.insertElement(c);k.hide();l.data.preventDefault()},q=CKEDITOR.tools.addFunction(function(a,c){a=
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  CKEDITOR.plugins.setLang("specialchar","en",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark",rdquo:"Right double quotation mark",ndash:"En dash",mdash:"Em dash",iexcl:"Inverted exclamation mark",cent:"Cent sign",pound:"Pound sign",curren:"Currency sign",yen:"Yen sign",brvbar:"Broken bar",sect:"Section sign",uml:"Diaeresis",copy:"Copyright sign",ordf:"Feminine ordinal indicator",laquo:"Left-pointing double angle quotation mark",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  CKEDITOR.plugins.setLang("specialchar","ru",{euro:"Знак евро",lsquo:"Левая одинарная кавычка",rsquo:"Правая одинарная кавычка",ldquo:"Левая двойная кавычка",rdquo:"Левая двойная кавычка",ndash:"Среднее тире",mdash:"Длинное тире",iexcl:"перевёрнутый восклицательный знак",cent:"Цент",pound:"Фунт",curren:"Знак валюты",yen:"Йена",brvbar:"Вертикальная черта с разрывом",sect:"Знак параграфа",uml:"Умлаут",copy:"Знак охраны авторского права",ordf:"Указатель окончания женского рода ...ая",laquo:"Левая кавычка-«ёлочка»",
@@ -1,14 +1,14 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- CKEDITOR.dialog.add("specialchar",function(k){var e,n=k.lang.specialchar,m=function(c){var b;c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);"a"==c.getName()&&(b=c.getChild(0).getHtml())&&(c.removeClass("cke_light_background"),e.hide(),c=k.document.createElement("span"),c.setHtml(b),k.insertText(c.getText()))},p=CKEDITOR.tools.addFunction(m),l,g=function(c,b){var a;b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());if("a"==b.getName()&&(a=b.getChild(0).getHtml())){l&&d(null,l);
6
- var f=e.getContentElement("info","htmlPreview").getElement();e.getContentElement("info","charPreview").getElement().setHtml(a);f.setHtml(CKEDITOR.tools.htmlEncode(a));b.getParent().addClass("cke_light_background");l=b}},d=function(c,b){b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());"a"==b.getName()&&(e.getContentElement("info","charPreview").getElement().setHtml("\x26nbsp;"),e.getContentElement("info","htmlPreview").getElement().setHtml("\x26nbsp;"),b.getParent().removeClass("cke_light_background"),
7
- l=void 0)},q=CKEDITOR.tools.addFunction(function(c){c=new CKEDITOR.dom.event(c);var b=c.getTarget(),a;a=c.getKeystroke();var f="rtl"==k.lang.dir;switch(a){case 38:if(a=b.getParent().getParent().getPrevious())a=a.getChild([b.getParent().getIndex(),0]),a.focus(),d(null,b),g(null,a);c.preventDefault();break;case 40:(a=b.getParent().getParent().getNext())&&(a=a.getChild([b.getParent().getIndex(),0]))&&1==a.type&&(a.focus(),d(null,b),g(null,a));c.preventDefault();break;case 32:m({data:c});c.preventDefault();
8
- break;case f?37:39:if(a=b.getParent().getNext())a=a.getChild(0),1==a.type?(a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):d(null,b);else if(a=b.getParent().getParent().getNext())(a=a.getChild([0,0]))&&1==a.type?(a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):d(null,b);break;case f?39:37:(a=b.getParent().getPrevious())?(a=a.getChild(0),a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):(a=b.getParent().getParent().getPrevious())?(a=a.getLast().getChild(0),a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):
9
- d(null,b)}});return{title:n.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var c=this.definition.charColumns,b=k.config.specialChars,a=CKEDITOR.tools.getNextId()+"_specialchar_table_label",f=['\x3ctable role\x3d"listbox" aria-labelledby\x3d"'+a+'" style\x3d"width: 320px; height: 100%; border-collapse: separate;" align\x3d"center" cellspacing\x3d"2" cellpadding\x3d"2" border\x3d"0"\x3e'],d=0,g=b.length,h,e;d<g;){f.push('\x3ctr role\x3d"presentation"\x3e');
10
- for(var l=0;l<c;l++,d++){if(h=b[d]){h instanceof Array?(e=h[1],h=h[0]):(e=h.replace("\x26","").replace(";","").replace("#",""),e=n[e]||h);var m="cke_specialchar_label_"+d+"_"+CKEDITOR.tools.getNextNumber();f.push('\x3ctd class\x3d"cke_dark_background" style\x3d"cursor: default" role\x3d"presentation"\x3e\x3ca href\x3d"javascript: void(0);" role\x3d"option" aria-posinset\x3d"'+(d+1)+'"',' aria-setsize\x3d"'+g+'"',' aria-labelledby\x3d"'+m+'"',' class\x3d"cke_specialchar" title\x3d"',CKEDITOR.tools.htmlEncode(e),
11
- '" onkeydown\x3d"CKEDITOR.tools.callFunction( '+q+', event, this )" onclick\x3d"CKEDITOR.tools.callFunction('+p+', this); return false;" tabindex\x3d"-1"\x3e\x3cspan style\x3d"margin: 0 auto;cursor: inherit"\x3e'+h+'\x3c/span\x3e\x3cspan class\x3d"cke_voice_label" id\x3d"'+m+'"\x3e'+e+"\x3c/span\x3e\x3c/a\x3e")}else f.push('\x3ctd class\x3d"cke_dark_background"\x3e\x26nbsp;');f.push("\x3c/td\x3e")}f.push("\x3c/tr\x3e")}f.push("\x3c/tbody\x3e\x3c/table\x3e",'\x3cspan id\x3d"'+a+'" class\x3d"cke_voice_label"\x3e'+
12
- n.options+"\x3c/span\x3e");this.getContentElement("info","charContainer").getElement().setHtml(f.join(""))},contents:[{id:"info",label:k.lang.common.generalTab,title:k.lang.common.generalTab,padding:0,align:"top",elements:[{type:"hbox",align:"top",widths:["320px","90px"],children:[{type:"html",id:"charContainer",html:"",onMouseover:g,onMouseout:d,focus:function(){var c=this.getElement().getElementsByTag("a").getItem(0);setTimeout(function(){c.focus();g(null,c)},0)},onShow:function(){var c=this.getElement().getChild([0,
13
- 0,0,0,0]);setTimeout(function(){c.focus();g(null,c)},0)},onLoad:function(c){e=c.sender}},{type:"hbox",align:"top",widths:["100%"],children:[{type:"vbox",align:"top",children:[{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"charPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"},{type:"html",
14
- id:"htmlPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"}]}]}]}]}]}});
5
+ CKEDITOR.dialog.add("specialchar",function(h){var f,n=h.lang.specialchar,k,l,p,d,e,q;l=function(c){var b;c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);"a"==c.getName()&&(b=c.getChild(0).getHtml())&&(c.removeClass("cke_light_background"),f.hide(),c=h.document.createElement("span"),c.setHtml(b),h.insertText(c.getText()))};p=CKEDITOR.tools.addFunction(l);e=function(c,b){var a;b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());if("a"==b.getName()&&(a=b.getChild(0).getHtml())){k&&
6
+ d(null,k);var e=f.getContentElement("info","htmlPreview").getElement();f.getContentElement("info","charPreview").getElement().setHtml(a);e.setHtml(CKEDITOR.tools.htmlEncode(a));b.getParent().addClass("cke_light_background");k=b}};d=function(c,b){b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());"a"==b.getName()&&(f.getContentElement("info","charPreview").getElement().setHtml("\x26nbsp;"),f.getContentElement("info","htmlPreview").getElement().setHtml("\x26nbsp;"),b.getParent().removeClass("cke_light_background"),
7
+ k=void 0)};q=CKEDITOR.tools.addFunction(function(c){c=new CKEDITOR.dom.event(c);var b=c.getTarget(),a;a=c.getKeystroke();var r="rtl"==h.lang.dir;switch(a){case 38:if(a=b.getParent().getParent().getPrevious())a=a.getChild([b.getParent().getIndex(),0]),a.focus(),d(null,b),e(null,a);c.preventDefault();break;case 40:(a=b.getParent().getParent().getNext())&&(a=a.getChild([b.getParent().getIndex(),0]))&&1==a.type&&(a.focus(),d(null,b),e(null,a));c.preventDefault();break;case 32:l({data:c});c.preventDefault();
8
+ break;case r?37:39:if(a=b.getParent().getNext())a=a.getChild(0),1==a.type?(a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):d(null,b);else if(a=b.getParent().getParent().getNext())(a=a.getChild([0,0]))&&1==a.type?(a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):d(null,b);break;case r?39:37:(a=b.getParent().getPrevious())?(a=a.getChild(0),a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):(a=b.getParent().getParent().getPrevious())?(a=a.getLast().getChild(0),a.focus(),d(null,b),e(null,a),c.preventDefault(!0)):
9
+ d(null,b)}});return{title:n.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var c=this.definition.charColumns,b=h.config.specialChars,a=CKEDITOR.tools.getNextId()+"_specialchar_table_label",d=['\x3ctable role\x3d"listbox" aria-labelledby\x3d"'+a+'" style\x3d"width: 320px; height: 100%; border-collapse: separate;" align\x3d"center" cellspacing\x3d"2" cellpadding\x3d"2" border\x3d"0"\x3e'],e=0,f=b.length,g,m;e<f;){d.push('\x3ctr role\x3d"presentation"\x3e');
10
+ for(var k=0;k<c;k++,e++)if(g=b[e]){g instanceof Array?(m=g[1],g=g[0]):(m=g.replace("\x26","").replace(";","").replace("#",""),m=n[m]||g);var l="cke_specialchar_label_"+e+"_"+CKEDITOR.tools.getNextNumber();d.push('\x3ctd class\x3d"cke_dark_background" style\x3d"cursor: default" role\x3d"presentation"\x3e\x3ca href\x3d"javascript: void(0);" role\x3d"option" aria-posinset\x3d"'+(e+1)+'"',' aria-setsize\x3d"'+f+'"',' aria-labelledby\x3d"'+l+'"',' class\x3d"cke_specialchar" title\x3d"',CKEDITOR.tools.htmlEncode(m),
11
+ '" onkeydown\x3d"CKEDITOR.tools.callFunction( '+q+', event, this )" onclick\x3d"CKEDITOR.tools.callFunction('+p+', this); return false;" tabindex\x3d"-1"\x3e\x3cspan style\x3d"margin: 0 auto;cursor: inherit"\x3e'+g+'\x3c/span\x3e\x3cspan class\x3d"cke_voice_label" id\x3d"'+l+'"\x3e'+m+"\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e")}d.push("\x3c/tr\x3e")}d.push("\x3c/tbody\x3e\x3c/table\x3e",'\x3cspan id\x3d"'+a+'" class\x3d"cke_voice_label"\x3e'+n.options+"\x3c/span\x3e");this.getContentElement("info","charContainer").getElement().setHtml(d.join(""))},
12
+ contents:[{id:"info",label:h.lang.common.generalTab,title:h.lang.common.generalTab,padding:0,align:"top",elements:[{type:"hbox",align:"top",widths:["320px","90px"],children:[{type:"html",id:"charContainer",html:"",onMouseover:e,onMouseout:d,focus:function(){var c=this.getElement().getElementsByTag("a").getItem(0);setTimeout(function(){c.focus();e(null,c)},0)},onShow:function(){var c=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){c.focus();e(null,c)},0)},onLoad:function(c){f=c.sender}},
13
+ {type:"hbox",align:"top",widths:["100%"],children:[{type:"vbox",align:"top",children:[{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"charPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"},{type:"html",id:"htmlPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",
14
+ html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"}]}]}]}]}]}});
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
2
+ * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -128,13 +128,13 @@
128
128
  * the regular expression will be ignored and will not be available
129
129
  * in the Styles drop-down list.
130
130
  *
131
- * Read more in the [documentation](#!/guide/dev_styles-section-the-stylesheet-parser-plugin)
132
- * and see the [SDK sample](https://sdk.ckeditor.com/samples/styles.html).
131
+ * Read more in the {@glink features/styles#the-stylesheet-parser-plugin documentation}
132
+ * and see the {@glink examples/styles example}.
133
133
  *
134
134
  * // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element.
135
135
  * config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i;
136
136
  *
137
- * @since 3.6
137
+ * @since 3.6.0
138
138
  * @cfg {RegExp} [stylesheetParser_skipSelectors=/(^body\.|^\.)/i]
139
139
  * @member CKEDITOR.config
140
140
  * @see CKEDITOR.config#stylesheetParser_validSelectors
@@ -145,13 +145,13 @@
145
145
  * by the Stylesheet Parser plugin. A CSS rule matching the regular
146
146
  * expression will be available in the Styles drop-down list.
147
147
  *
148
- * Read more in the [documentation](#!/guide/dev_styles-section-the-stylesheet-parser-plugin)
149
- * and see the [SDK sample](https://sdk.ckeditor.com/samples/styles.html).
148
+ * Read more in the {@glink features/styles#the-stylesheet-parser-plugin documentation}
149
+ * and see the {@glink examples/styles example}.
150
150
  *
151
151
  * // Only add rules for p and span elements.
152
152
  * config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/;
153
153
  *
154
- * @since 3.6
154
+ * @since 3.6.0
155
155
  * @cfg {RegExp} [stylesheetParser_validSelectors=/\w+\.\w+/]
156
156
  * @member CKEDITOR.config
157
157
  * @see CKEDITOR.config#stylesheetParser_skipSelectors
@@ -1,9 +1,9 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
3
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
4
4
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
5
5
  -->
6
- <html>
6
+ <html lang="en">
7
7
  <head>
8
8
  <meta charset="utf-8">
9
9
  <title>Using Stylesheet Parser Plugin &mdash; CKEditor Sample</title>
@@ -14,13 +14,14 @@ For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
14
14
  <meta name="ckeditor-sample-name" content="Stylesheet Parser plugin">
15
15
  <meta name="ckeditor-sample-description" content="Using the Stylesheet Parser plugin to fill the Styles drop-down list based on the CSS classes available in the document stylesheet.">
16
16
  <meta name="ckeditor-sample-group" content="Plugins">
17
+ <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
17
18
  </head>
18
19
  <body>
19
20
  <h1 class="samples">
20
21
  <a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Using the Stylesheet Parser Plugin
21
22
  </h1>
22
23
  <div class="warning deprecated">
23
- This sample is not maintained anymore. Check out its <a href="https://sdk.ckeditor.com/samples/styles.html">brand new version in CKEditor SDK</a>.
24
+ This sample is not maintained anymore. Check out its <a href="https://ckeditor.com/docs/ckeditor4/latest/examples/styles.html">brand new version in CKEditor Examples</a>.
24
25
  </div>
25
26
  <div class="description">
26
27
  <p>
@@ -77,7 +78,7 @@ CKEDITOR.replace( 'textarea_id', {
77
78
  CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
78
79
  </p>
79
80
  <p id="copy">
80
- Copyright &copy; 2003-2018, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
81
+ Copyright &copy; 2003-2020, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico
81
82
  Knabben. All rights reserved.
82
83
  </p>
83
84
  </div>
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  (function(){function w(a){for(var f=0,p=0,n=0,q,d=a.$.rows.length;n<d;n++){q=a.$.rows[n];for(var e=f=0,b,c=q.cells.length;e<c;e++)b=q.cells[e],f+=b.colSpan;f>p&&(p=f)}return p}function t(a){return function(){var f=this.getValue(),f=!!(CKEDITOR.dialog.validate.integer().call(this,f)&&0<f);f||(alert(a),this.select());return f}}function r(a,f){var p=function(d){return new CKEDITOR.dom.element(d,a.document)},r=a.editable(),q=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?
@@ -1,18 +1,18 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- CKEDITOR.dialog.add("cellProperties",function(g){function k(a){return{isSpacer:!0,type:"html",html:"\x26nbsp;",requiredContent:a?a:void 0}}function r(){return{type:"vbox",padding:0,children:[]}}function t(a){return{requiredContent:"td{"+a+"}",type:"hbox",widths:["70%","30%"],children:[{type:"text",id:a,width:"100px",label:e[a],validate:n.number(c["invalid"+CKEDITOR.tools.capitalize(a)]),onLoad:function(){var b=this.getDialog().getContentElement("info",a+"Type").getElement(),d=this.getInputElement(),
6
- c=d.getAttribute("aria-labelledby");d.setAttribute("aria-labelledby",[c,b.$.id].join(" "))},setup:f(function(b){var d=parseFloat(b.getAttribute(a),10);b=parseFloat(b.getStyle(a),10);if(!isNaN(b))return b;if(!isNaN(d))return d}),commit:function(b){var d=parseFloat(this.getValue(),10),c=this.getDialog().getValueOf("info",a+"Type")||u(b,a);isNaN(d)?b.removeStyle(a):b.setStyle(a,d+c);b.removeAttribute(a)},"default":""},{type:"select",id:a+"Type",label:g.lang.table[a+"Unit"],labelStyle:"visibility:hidden;display:block;width:0;overflow:hidden",
7
- "default":"px",items:[[p.widthPx,"px"],[p.widthPc,"%"]],setup:f(function(b){return u(b,a)})}]}}function f(a){return function(b){for(var d=a(b[0]),c=1;c<b.length;c++)if(a(b[c])!==d){d=null;break}"undefined"!=typeof d&&(this.setValue(d),CKEDITOR.env.gecko&&"select"==this.type&&!d&&(this.getInputElement().$.selectedIndex=-1))}}function u(a,b){var d=/^(\d+(?:\.\d+)?)(px|%)$/.exec(a.getStyle(b)||a.getAttribute(b));if(d)return d[2]}var p=g.lang.table,c=p.cell,e=g.lang.common,n=CKEDITOR.dialog.validate,
8
- w="rtl"==g.lang.dir,l=g.plugins.colordialog,q=[t("width"),t("height"),k(["td{width}","td{height}"]),{type:"select",id:"wordWrap",requiredContent:"td{white-space}",label:c.wordWrap,"default":"yes",items:[[c.yes,"yes"],[c.no,"no"]],setup:f(function(a){var b=a.getAttribute("noWrap");if("nowrap"==a.getStyle("white-space")||b)return"no"}),commit:function(a){"no"==this.getValue()?a.setStyle("white-space","nowrap"):a.removeStyle("white-space");a.removeAttribute("noWrap")}},k("td{white-space}"),{type:"select",
9
- id:"hAlign",requiredContent:"td{text-align}",label:c.hAlign,"default":"",items:[[e.notSet,""],[e.left,"left"],[e.center,"center"],[e.right,"right"],[e.justify,"justify"]],setup:f(function(a){var b=a.getAttribute("align");return a.getStyle("text-align")||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("text-align",b):a.removeStyle("text-align");a.removeAttribute("align")}},{type:"select",id:"vAlign",requiredContent:"td{vertical-align}",label:c.vAlign,"default":"",items:[[e.notSet,""],
10
- [e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[c.alignBaseline,"baseline"]],setup:f(function(a){var b=a.getAttribute("vAlign");a=a.getStyle("vertical-align");switch(a){case "top":case "middle":case "bottom":case "baseline":break;default:a=""}return a||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("vertical-align",b):a.removeStyle("vertical-align");a.removeAttribute("vAlign")}},k(["td{text-align}","td{vertical-align}"]),{type:"select",id:"cellType",requiredContent:"th",
11
- label:c.cellType,"default":"td",items:[[c.data,"td"],[c.header,"th"]],setup:f(function(a){return a.getName()}),commit:function(a){a.renameNode(this.getValue())}},k("th"),{type:"text",id:"rowSpan",requiredContent:"td[rowspan]",label:c.rowSpan,"default":"",validate:n.integer(c.invalidRowSpan),setup:f(function(a){if((a=parseInt(a.getAttribute("rowSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("rowSpan",this.getValue()):a.removeAttribute("rowSpan")}},
12
- {type:"text",id:"colSpan",requiredContent:"td[colspan]",label:c.colSpan,"default":"",validate:n.integer(c.invalidColSpan),setup:f(function(a){if((a=parseInt(a.getAttribute("colSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("colSpan",this.getValue()):a.removeAttribute("colSpan")}},k(["td[colspan]","td[rowspan]"]),{type:"hbox",padding:0,widths:l?["60%","40%"]:["100%"],requiredContent:"td{background-color}",children:function(){var a=[{type:"text",
13
- id:"bgColor",label:c.bgColor,"default":"",setup:f(function(a){var d=a.getAttribute("bgColor");return a.getStyle("background-color")||d}),commit:function(a){this.getValue()?a.setStyle("background-color",this.getValue()):a.removeStyle("background-color");a.removeAttribute("bgColor")}}];l&&a.push({type:"button",id:"bgColorChoose","class":"colorChooser",label:c.chooseColor,onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){g.getColorFromDialog(function(a){a&&
14
- this.getDialog().getContentElement("info","bgColor").setValue(a);this.focus()},this)}});return a}()},{type:"hbox",padding:0,widths:l?["60%","40%"]:["100%"],requiredContent:"td{border-color}",children:function(){var a=[{type:"text",id:"borderColor",label:c.borderColor,"default":"",setup:f(function(a){var d=a.getAttribute("borderColor");return a.getStyle("border-color")||d}),commit:function(a){this.getValue()?a.setStyle("border-color",this.getValue()):a.removeStyle("border-color");a.removeAttribute("borderColor")}}];
15
- l&&a.push({type:"button",id:"borderColorChoose","class":"colorChooser",label:c.chooseColor,style:(w?"margin-right":"margin-left")+": 10px",onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){g.getColorFromDialog(function(a){a&&this.getDialog().getContentElement("info","borderColor").setValue(a);this.focus()},this)}});return a}()}],m=0,v=-1,h=[r()],q=CKEDITOR.tools.array.filter(q,function(a){var b=a.requiredContent;delete a.requiredContent;(b=g.filter.check(b))&&
16
- !a.isSpacer&&m++;return b});5<m&&(h=h.concat([k(),r()]));CKEDITOR.tools.array.forEach(q,function(a){a.isSpacer||v++;5<m&&v>=m/2?h[2].children.push(a):h[0].children.push(a)});CKEDITOR.tools.array.forEach(h,function(a){a.isSpacer||(a=a.children,a[a.length-1].isSpacer&&a.pop())});return{title:c.title,minWidth:1===h.length?205:410,minHeight:50,contents:[{id:"info",label:c.title,accessKey:"I",elements:[{type:"hbox",widths:1===h.length?["100%"]:["40%","5%","40%"],children:h}]}],getModel:function(a){return CKEDITOR.plugins.tabletools.getSelectedCells(a.getSelection())},
17
- onShow:function(){var a=this.getModel(this.getParentEditor());this.setupContent(a)},onOk:function(){for(var a=this._.editor.getSelection(),b=a.createBookmarks(),d=this.getParentEditor(),c=this.getModel(d),e=0;e<c.length;e++)this.commitContent(c[e]);d.forceNextSelectionCheck();a.selectBookmarks(b);d.selectionChange()},onLoad:function(){var a={};this.foreach(function(b){b.setup&&b.commit&&(b.setup=CKEDITOR.tools.override(b.setup,function(c){return function(){c.apply(this,arguments);a[b.id]=b.getValue()}}),
18
- b.commit=CKEDITOR.tools.override(b.commit,function(c){return function(){a[b.id]!==b.getValue()&&c.apply(this,arguments)}}))})}}});
5
+ CKEDITOR.dialog.add("cellProperties",function(h){function k(a){return{isSpacer:!0,type:"html",html:"\x26nbsp;",requiredContent:a?a:void 0}}function r(){return{type:"vbox",padding:0,children:[]}}function t(a){return{requiredContent:"td{"+a+"}",type:"hbox",widths:["70%","30%"],children:[{type:"text",id:a,width:"100px",label:e[a],validate:n.number(d["invalid"+CKEDITOR.tools.capitalize(a)]),onLoad:function(){var b=this.getDialog().getContentElement("info",a+"Type").getElement(),c=this.getInputElement(),
6
+ d=c.getAttribute("aria-labelledby");c.setAttribute("aria-labelledby",[d,b.$.id].join(" "))},setup:f(function(b){var c=parseFloat(b.getAttribute(a),10);b=parseFloat(b.getStyle(a),10);if(!isNaN(b))return b;if(!isNaN(c))return c}),commit:function(b){var c=parseFloat(this.getValue(),10),d=this.getDialog().getValueOf("info",a+"Type")||u(b,a);isNaN(c)?b.removeStyle(a):b.setStyle(a,c+d);b.removeAttribute(a)},"default":""},{type:"select",id:a+"Type",label:h.lang.table[a+"Unit"],labelStyle:"visibility:hidden;display:block;width:0;overflow:hidden",
7
+ "default":"px",items:[[p.widthPx,"px"],[p.widthPc,"%"]],setup:f(function(b){return u(b,a)})}]}}function f(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(this.setValue(c),CKEDITOR.env.gecko&&"select"==this.type&&!c&&(this.getInputElement().$.selectedIndex=-1))}}function u(a,b){var c=/^(\d+(?:\.\d+)?)(px|%)$/.exec(a.getStyle(b)||a.getAttribute(b));if(c)return c[2]}function v(a,b){h.getColorFromDialog(function(c){c&&a.getDialog().getContentElement("info",
8
+ b).setValue(c);a.focus()},a)}function w(a,b,c){(a=a.getValue())?b.setStyle(c,a):b.removeStyle(c);"background-color"==c?b.removeAttribute("bgColor"):"border-color"==c&&b.removeAttribute("borderColor")}var p=h.lang.table,d=p.cell,e=h.lang.common,n=CKEDITOR.dialog.validate,y="rtl"==h.lang.dir,l=h.plugins.colordialog,q=[t("width"),t("height"),k(["td{width}","td{height}"]),{type:"select",id:"wordWrap",requiredContent:"td{white-space}",label:d.wordWrap,"default":"yes",items:[[d.yes,"yes"],[d.no,"no"]],
9
+ setup:f(function(a){var b=a.getAttribute("noWrap");if("nowrap"==a.getStyle("white-space")||b)return"no"}),commit:function(a){"no"==this.getValue()?a.setStyle("white-space","nowrap"):a.removeStyle("white-space");a.removeAttribute("noWrap")}},k("td{white-space}"),{type:"select",id:"hAlign",requiredContent:"td{text-align}",label:d.hAlign,"default":"",items:[[e.notSet,""],[e.left,"left"],[e.center,"center"],[e.right,"right"],[e.justify,"justify"]],setup:f(function(a){var b=a.getAttribute("align");return a.getStyle("text-align")||
10
+ b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("text-align",b):a.removeStyle("text-align");a.removeAttribute("align")}},{type:"select",id:"vAlign",requiredContent:"td{vertical-align}",label:d.vAlign,"default":"",items:[[e.notSet,""],[e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[d.alignBaseline,"baseline"]],setup:f(function(a){var b=a.getAttribute("vAlign");a=a.getStyle("vertical-align");switch(a){case "top":case "middle":case "bottom":case "baseline":break;default:a=
11
+ ""}return a||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("vertical-align",b):a.removeStyle("vertical-align");a.removeAttribute("vAlign")}},k(["td{text-align}","td{vertical-align}"]),{type:"select",id:"cellType",requiredContent:"th",label:d.cellType,"default":"td",items:[[d.data,"td"],[d.header,"th"]],setup:f(function(a){return a.getName()}),commit:function(a){a.renameNode(this.getValue())}},k("th"),{type:"text",id:"rowSpan",requiredContent:"td[rowspan]",label:d.rowSpan,"default":"",
12
+ validate:n.integer(d.invalidRowSpan),setup:f(function(a){if((a=parseInt(a.getAttribute("rowSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("rowSpan",this.getValue()):a.removeAttribute("rowSpan")}},{type:"text",id:"colSpan",requiredContent:"td[colspan]",label:d.colSpan,"default":"",validate:n.integer(d.invalidColSpan),setup:f(function(a){if((a=parseInt(a.getAttribute("colSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),
13
+ 10);b&&1!=b?a.setAttribute("colSpan",this.getValue()):a.removeAttribute("colSpan")}},k(["td[colspan]","td[rowspan]"]),{type:"hbox",padding:0,widths:l?["60%","40%"]:["100%"],requiredContent:"td{background-color}",children:function(){var a=[{type:"text",id:"bgColor",label:d.bgColor,"default":"",setup:f(function(a){var c=a.getAttribute("bgColor");return a.getStyle("background-color")||c}),commit:function(a){w(this,a,"background-color")}}];l&&a.push({type:"button",id:"bgColorChoose","class":"colorChooser",
14
+ label:d.chooseColor,onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){v(this,"bgColor")}});return a}()},{type:"hbox",padding:0,widths:l?["60%","40%"]:["100%"],requiredContent:"td{border-color}",children:function(){var a=[{type:"text",id:"borderColor",label:d.borderColor,"default":"",setup:f(function(a){var c=a.getAttribute("borderColor");return a.getStyle("border-color")||c}),commit:function(a){w(this,a,"border-color")}}];l&&a.push({type:"button",
15
+ id:"borderColorChoose","class":"colorChooser",label:d.chooseColor,style:(y?"margin-right":"margin-left")+": 10px",onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){v(this,"borderColor")}});return a}()}],m=0,x=-1,g=[r()],q=CKEDITOR.tools.array.filter(q,function(a){var b=a.requiredContent;delete a.requiredContent;(b=h.filter.check(b))&&!a.isSpacer&&m++;return b});5<m&&(g=g.concat([k(),r()]));CKEDITOR.tools.array.forEach(q,function(a){a.isSpacer||
16
+ x++;5<m&&x>=m/2?g[2].children.push(a):g[0].children.push(a)});CKEDITOR.tools.array.forEach(g,function(a){a.isSpacer||(a=a.children,a[a.length-1].isSpacer&&a.pop())});return{title:d.title,minWidth:1===g.length?205:410,minHeight:50,contents:[{id:"info",label:d.title,accessKey:"I",elements:[{type:"hbox",widths:1===g.length?["100%"]:["40%","5%","40%"],children:g}]}],getModel:function(a){return CKEDITOR.plugins.tabletools.getSelectedCells(a.getSelection())},onShow:function(){var a=this.getModel(this.getParentEditor());
17
+ this.setupContent(a)},onOk:function(){for(var a=this._.editor.getSelection(),b=a.createBookmarks(),c=this.getParentEditor(),d=this.getModel(c),e=0;e<d.length;e++)this.commitContent(d[e]);c.forceNextSelectionCheck();a.selectBookmarks(b);c.selectionChange()},onLoad:function(){var a={};this.foreach(function(b){b.setup&&b.commit&&(b.setup=CKEDITOR.tools.override(b.setup,function(c){return function(){c.apply(this,arguments);a[b.id]=b.getValue()}}),b.commit=CKEDITOR.tools.override(b.commit,function(c){return function(){a[b.id]!==
18
+ b.getValue()&&c.apply(this,arguments)}}))})}}});
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  (function(){CKEDITOR.dialog.add("templates",function(c){function r(a,b){var m=CKEDITOR.dom.element.createFromHtml('\x3ca href\x3d"javascript:void(0)" tabIndex\x3d"-1" role\x3d"option" \x3e\x3cdiv class\x3d"cke_tpl_item"\x3e\x3c/div\x3e\x3c/a\x3e'),d='\x3ctable style\x3d"width:350px;" class\x3d"cke_tpl_preview" role\x3d"presentation"\x3e\x3ctr\x3e';a.image&&b&&(d+='\x3ctd class\x3d"cke_tpl_preview_img"\x3e\x3cimg src\x3d"'+CKEDITOR.getUrl(b+a.image)+'"'+(CKEDITOR.env.ie6Compat?' onload\x3d"this.width\x3dthis.width"':
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  CKEDITOR.addTemplates("default",{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath("templates")+"templates/images/"),templates:[{title:"Image and Title",image:"template1.gif",description:"One main image with a title and text that surround the image.",html:'\x3ch3\x3e\x3cimg src\x3d" " alt\x3d"" style\x3d"margin-right: 10px" height\x3d"100" width\x3d"100" align\x3d"left" /\x3eType the title here\x3c/h3\x3e\x3cp\x3eType the text here\x3c/p\x3e'},{title:"Strange Template",image:"template2.gif",description:"A template that defines two columns, each one with a title, and some text.",
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Ingo Herbote
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,106 @@
1
+ CKEditor-WordCount-Plugin
2
+ =========================
3
+
4
+ WordCount Plugin for CKEditor v4 (or above) that counts the words/characters an shows the word count and/or char count in the footer of the editor.
5
+
6
+ ![Screenshot](http://www.watchersnet.de/Portals/0/screenshots/dnn/CKEditorWordCountPlugin.png)
7
+
8
+ #### Demo
9
+
10
+ http://w8tcha.github.com/CKEditor-WordCount-Plugin/
11
+
12
+ DISCLAIMER: This is a forked Version, i can not find the original Author anymore if anyone knows the original Author please contact me and i can include the Author in the Copyright Notices.
13
+
14
+ #### License
15
+
16
+ Licensed under the terms of the MIT License.
17
+
18
+ #### Installation
19
+
20
+ If building a new editor using the CKBuilder from http://ckeditor.com/, there is no need to follow numbers steps below. If adding the Word Count & Char Count plugin to an already established CKEditor, follow the numbered steps below.
21
+
22
+ 1. Download the Word Count & Char Count plugin from http://ckeditor.com/addon/wordcount or https://github.com/w8tcha/CKEditor-WordCount-Plugin. This will download a folder named **wordcount_*version*.zip** or **CKEditor-WordCount-Plugin-master.zip** to your Downloads folder.
23
+ 2. Download the Notification plugin from http://ckeditor.com/addon/notification. This will download a folder named **notification_*version*.zip** to your Downloads folder.
24
+ 3. Extract the .zip folders for both the Word Count & Char Count and Notification plugin. After extraction, you should have a folder named **wordcount** and a folder named **notification**.
25
+ 4. Move the wordcount folder to /web/server/root/ckeditor/plugins/. Move the notification folder to /web/server/root/ckeditor/plugins/.
26
+ 5. Add the following line of text to the config.js file, which is located at /web/server/root/ckeditor/.
27
+
28
+ ```javascript
29
+ config.extraPlugins = 'wordcount,notification';
30
+ ```
31
+
32
+ Below is an example of what your config.js file might look like after adding config.extraPlugins = 'wordcount,notification';
33
+
34
+ ```javascript
35
+ CKEDITOR.editorConfig = function( config ) {
36
+ config.extraPlugins = 'wordcount,notification';
37
+ config.toolbar [
38
+ et cetera . . .
39
+ ];
40
+ };
41
+ ```
42
+
43
+ There now should be text in the bottom right-hand corner of your CKEditor which counts the number of Paragraphs and number of Words in your CKEditor.
44
+
45
+ To modify the behavior of the Word Count & Char Count text at the bottom right-hand corner of your CKEditor, add the following text to your config.js file located at /web/server/root/ckeditor/config.js.
46
+
47
+ ````js
48
+ config.wordcount = {
49
+
50
+ // Whether or not you want to show the Paragraphs Count
51
+ showParagraphs: true,
52
+
53
+ // Whether or not you want to show the Word Count
54
+ showWordCount: true,
55
+
56
+ // Whether or not you want to show the Char Count
57
+ showCharCount: false,
58
+
59
+ // Whether or not you want to count Spaces as Chars
60
+ countSpacesAsChars: false,
61
+
62
+ // Whether or not to include Html chars in the Char Count
63
+ countHTML: false,
64
+
65
+ // Whether or not to include Line Breaks in the Char Count
66
+ countLineBreaks: false,
67
+
68
+ // Maximum allowed Word Count, -1 is default for unlimited
69
+ maxWordCount: -1,
70
+
71
+ // Maximum allowed Char Count, -1 is default for unlimited
72
+ maxCharCount: -1,
73
+
74
+ // Maximum allowed Paragraphs Count, -1 is default for unlimited
75
+ maxParagraphs: -1,
76
+
77
+ // How long to show the 'paste' warning, 0 is default for not auto-closing the notification
78
+ pasteWarningDuration: 0,
79
+
80
+
81
+ // Add filter to add or remove element before counting (see CKEDITOR.htmlParser.filter), Default value : null (no filter)
82
+ filter: new CKEDITOR.htmlParser.filter({
83
+ elements: {
84
+ div: function( element ) {
85
+ if(element.attributes.class == 'mediaembed') {
86
+ return false;
87
+ }
88
+ }
89
+ }
90
+ })
91
+ };
92
+ ````
93
+
94
+ **Note:** If you plan to change some of the JavaScript, you probably will not want to use the CKBuilder, because this will place the JavaScript of the Word Count & Char Count plugin in the ckeditor.js file located at /web/server/root/ckeditor/ckeditor.js. The JavaScript for the Word Count & Char Count plugin in the ckeditor.js file is different than the JavaScript used when manually adding the Word Count & Char Count plugin. When manually adding the Word Count & Char Count plugin, the JavaScript will be in the plugin.js file located at
95
+
96
+ ---
97
+
98
+ If you want to query the current wordcount you can do it via
99
+
100
+ ```javascript
101
+ // get the word count
102
+ CKEDITOR.instances.editor1.wordCount.wordCount
103
+
104
+ // get the char count
105
+ CKEDITOR.instances.editor1.wordCount.charCount
106
+ ```
@@ -11,7 +11,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
11
11
 
12
12
  function doLoadScript( url )
13
13
  {
14
- if ( !url )
14
+ if ( !url || typeof url !== 'string' )
15
15
  return false ;
16
16
 
17
17
  var s = document.createElement( "script" ) ;
@@ -0,0 +1,15 @@
1
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
+ Version 2, December 2004
3
+
4
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
5
+
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
14
+
15
+
@@ -0,0 +1,156 @@
1
+ Youtube Plugin for CKEditor 4
2
+ =============================
3
+
4
+ Copyright © 2017 Jonnas Fonini <jonnasfonini@gmail.com>.
5
+
6
+ This work is free. You can redistribute it and/or modify it under the
7
+ terms of the Do What The Fuck You Want To Public License, Version 2,
8
+ as published by Sam Hocevar. See the LICENSE file for more details.
9
+
10
+ This plugin allow you to insert Youtube videos using embed code or just the video URL.
11
+
12
+ ## Installation
13
+
14
+ ### With NPM
15
+
16
+ 1. npm install ckeditor-youtube-plugin
17
+
18
+ 2. Add the plugin to CKEditor (config.js):
19
+
20
+ ````js
21
+ CKEDITOR.plugins.addExternal('youtube', '../node_modules/ckeditor-youtube-plugin/youtube/');
22
+
23
+ config.extraPlugins = 'youtube';
24
+ ````
25
+
26
+ You may need to adjust the plugin path. The example is assuming that you have the following directory structure:
27
+
28
+ ```
29
+ project
30
+ └───ckeditor
31
+ │ └───config.js
32
+ └───node_modules
33
+ └───ckeditor-youtube-plugin
34
+ ```
35
+
36
+ ### Manual
37
+
38
+ Follow these steps:
39
+
40
+ 1. Download the latest version of the plugin from Github.
41
+ 2. Extract the downloaded file into the CKEditor's **plugins** folder.
42
+ 3. Enable the plugin by changing or adding the extraPlugins line in your configuration (config.js):
43
+
44
+ ````js
45
+ config.extraPlugins = 'youtube';
46
+ ````
47
+
48
+ ## Configuration
49
+ The default options can be overriden on config.js.
50
+
51
+ Video width:
52
+
53
+ ```js
54
+ config.youtube_width = '640';
55
+ ```
56
+
57
+ Video height:
58
+
59
+ ```js
60
+ config.youtube_height = '480';
61
+ ```
62
+
63
+ Make responsive (ignore width and height, fit to width):
64
+
65
+ ```js
66
+ config.youtube_responsive = true;
67
+ ```
68
+
69
+ Show related videos:
70
+
71
+ ```js
72
+ config.youtube_related = true;
73
+ ```
74
+
75
+ Use old embed code:
76
+
77
+ ```js
78
+ config.youtube_older = false;
79
+ ```
80
+
81
+ Enable privacy-enhanced mode:
82
+
83
+ ```js
84
+ config.youtube_privacy = false;
85
+ ```
86
+
87
+ Start video automatically:
88
+
89
+ ```js
90
+ config.youtube_autoplay = false;
91
+ ```
92
+
93
+ Show player controls:
94
+
95
+ ```js
96
+ config.youtube_controls = true;
97
+ ```
98
+
99
+ Disable the change of settings. The elements on the list will be disabled (but still visible).
100
+ See the available element list below.
101
+
102
+ ```js
103
+ config.youtube_disabled_fields = ['txtEmbed', 'chkAutoplay'];
104
+ ```
105
+
106
+ #### List of UI elements
107
+
108
+ * txtEmbed
109
+ * txtUrl
110
+ * txtWidth
111
+ * txtHeight
112
+ * chkResponsive
113
+ * chkNoEmbed
114
+ * chkRelated
115
+ * chkOlderCode
116
+ * chkPrivacy
117
+ * chkAutoplay
118
+ * txtStartAt
119
+ * chkControls
120
+
121
+
122
+ ## How to use
123
+ If everything is ok, a Youtube icon should appear on the CKEditor toolbar. Click it,
124
+ paste your embed code or video URL and the video will be inserted.
125
+
126
+ ## Translators
127
+ Thanks to those who helped translate the plugin
128
+
129
+ * Eyed Farra (ar)
130
+ * N. Petkov (bg)
131
+ * Lukáš Říha (cs)
132
+ * Sven Jansen (de)
133
+ * Dimitris Kotsakis (el)
134
+ * Victor (pollin14) (es)
135
+ * Kevin Rudissaar (et)
136
+ * Asier Iturralde Sarasola (eu)
137
+ * Jami Pietilä (fi)
138
+ * BiomanRouge (fr)
139
+ * Moshe Simantov (he)
140
+ * Karmacsi Gábor (hu)
141
+ * Francesco Zanoni (it)
142
+ * Yayoshi Nobuhide (ja)
143
+ * MinSoo Kim (ko)
144
+ * Holger Lockertsen (nb, nn)
145
+ * Patrick van Lier (nl)
146
+ * Michał Zalewski, Wirek (pl)
147
+ * Samuel Diogo (pt-br)
148
+ * Alexander Ustimenko (ru)
149
+ * ivanbarlog (sk)
150
+ * Çağdaş Yiğit (tr)
151
+ * Mykola Pukhalskyi (uk)
152
+ * Vu Thao (vi)
153
+ * trowa (zh)
154
+
155
+
156
+ [![Licensed under the WTFPL](http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-2.png "Licensed under the WTFPL")](http://www.wtfpl.net)