integral 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/logo.png +0 -0
  3. data/app/assets/javascripts/ckeditor/my_config.js.erb +26 -18
  4. data/app/assets/javascripts/ckeditor/plugins/autoembed/lang/lv.js +8 -0
  5. data/app/assets/javascripts/ckeditor/plugins/autoembed/plugin.js +1 -1
  6. data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +14 -14
  7. data/app/assets/javascripts/ckeditor/plugins/autogrow/samples/autogrow.html +8 -8
  8. data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -1
  9. data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/autoformat.png +0 -0
  10. data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/searchcode.png +0 -0
  11. data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/uncommentselectedrange.png +0 -0
  12. data/app/assets/javascripts/ckeditor/plugins/codemirror/images/autocomplete.png +0 -0
  13. data/app/assets/javascripts/ckeditor/plugins/codemirror/images/autoformat.png +0 -0
  14. data/app/assets/javascripts/ckeditor/plugins/codemirror/images/commentselectedrange.png +0 -0
  15. data/app/assets/javascripts/ckeditor/plugins/codemirror/images/searchcode.png +0 -0
  16. data/app/assets/javascripts/ckeditor/plugins/codemirror/images/uncommentselectedrange.png +0 -0
  17. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/beautify.min.js +2 -2
  18. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +2 -2
  19. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js +1 -1
  20. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -6
  21. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js +1 -1
  22. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js +1 -0
  23. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +2 -2
  24. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
  25. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +3 -3
  26. data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.twig.min.js +1 -1
  27. data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +7 -7
  28. data/app/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +231 -217
  29. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/darcula.css +46 -0
  30. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/gruvbox-dark.css +34 -0
  31. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/idea.css +42 -0
  32. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +1 -1
  33. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/lucario.css +37 -0
  34. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +5 -0
  35. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/oceanic-next.css +44 -0
  36. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/shadowfox.css +52 -0
  37. data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/ssms.css +16 -0
  38. data/app/assets/javascripts/ckeditor/plugins/embedbase/lang/ar.js +15 -0
  39. data/app/assets/javascripts/ckeditor/plugins/embedbase/lang/lv.js +15 -0
  40. data/app/assets/javascripts/ckeditor/plugins/embedbase/plugin.js +1 -1
  41. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/copywidget.png +0 -0
  42. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/editwidget.png +0 -0
  43. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/copywidget.png +0 -0
  44. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/editwidget.png +0 -0
  45. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/removewidget.png +0 -0
  46. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/widget.png +0 -0
  47. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/removewidget.png +0 -0
  48. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/widget.png +0 -0
  49. data/app/assets/javascripts/ckeditor/plugins/foundation-callout/plugin.js +86 -0
  50. data/app/assets/javascripts/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
  51. data/app/assets/javascripts/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
  52. data/app/assets/javascripts/ckeditor/plugins/image2/dev/contents.css +35 -0
  53. data/app/assets/javascripts/ckeditor/plugins/image2/dev/image2.html +339 -0
  54. data/app/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +553 -0
  55. data/app/assets/javascripts/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
  56. data/app/assets/javascripts/ckeditor/plugins/image2/icons/image.png +0 -0
  57. data/app/assets/javascripts/ckeditor/plugins/image2/lang/af.js +21 -0
  58. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ar.js +21 -0
  59. data/app/assets/javascripts/ckeditor/plugins/image2/lang/az.js +21 -0
  60. data/app/assets/javascripts/ckeditor/plugins/image2/lang/bg.js +21 -0
  61. data/app/assets/javascripts/ckeditor/plugins/image2/lang/bn.js +21 -0
  62. data/app/assets/javascripts/ckeditor/plugins/image2/lang/bs.js +21 -0
  63. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ca.js +21 -0
  64. data/app/assets/javascripts/ckeditor/plugins/image2/lang/cs.js +21 -0
  65. data/app/assets/javascripts/ckeditor/plugins/image2/lang/cy.js +21 -0
  66. data/app/assets/javascripts/ckeditor/plugins/image2/lang/da.js +21 -0
  67. data/app/assets/javascripts/ckeditor/plugins/image2/lang/de-ch.js +21 -0
  68. data/app/assets/javascripts/ckeditor/plugins/image2/lang/de.js +21 -0
  69. data/app/assets/javascripts/ckeditor/plugins/image2/lang/el.js +21 -0
  70. data/app/assets/javascripts/ckeditor/plugins/image2/lang/en-au.js +21 -0
  71. data/app/assets/javascripts/ckeditor/plugins/image2/lang/en-ca.js +21 -0
  72. data/app/assets/javascripts/ckeditor/plugins/image2/lang/en-gb.js +21 -0
  73. data/app/assets/javascripts/ckeditor/plugins/image2/lang/en.js +21 -0
  74. data/app/assets/javascripts/ckeditor/plugins/image2/lang/eo.js +21 -0
  75. data/app/assets/javascripts/ckeditor/plugins/image2/lang/es-mx.js +21 -0
  76. data/app/assets/javascripts/ckeditor/plugins/image2/lang/es.js +21 -0
  77. data/app/assets/javascripts/ckeditor/plugins/image2/lang/et.js +21 -0
  78. data/app/assets/javascripts/ckeditor/plugins/image2/lang/eu.js +21 -0
  79. data/app/assets/javascripts/ckeditor/plugins/image2/lang/fa.js +21 -0
  80. data/app/assets/javascripts/ckeditor/plugins/image2/lang/fi.js +21 -0
  81. data/app/assets/javascripts/ckeditor/plugins/image2/lang/fo.js +21 -0
  82. data/app/assets/javascripts/ckeditor/plugins/image2/lang/fr-ca.js +21 -0
  83. data/app/assets/javascripts/ckeditor/plugins/image2/lang/fr.js +21 -0
  84. data/app/assets/javascripts/ckeditor/plugins/image2/lang/gl.js +21 -0
  85. data/app/assets/javascripts/ckeditor/plugins/image2/lang/gu.js +21 -0
  86. data/app/assets/javascripts/ckeditor/plugins/image2/lang/he.js +21 -0
  87. data/app/assets/javascripts/ckeditor/plugins/image2/lang/hi.js +21 -0
  88. data/app/assets/javascripts/ckeditor/plugins/image2/lang/hr.js +21 -0
  89. data/app/assets/javascripts/ckeditor/plugins/image2/lang/hu.js +21 -0
  90. data/app/assets/javascripts/ckeditor/plugins/image2/lang/id.js +21 -0
  91. data/app/assets/javascripts/ckeditor/plugins/image2/lang/is.js +21 -0
  92. data/app/assets/javascripts/ckeditor/plugins/image2/lang/it.js +21 -0
  93. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ja.js +21 -0
  94. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ka.js +21 -0
  95. data/app/assets/javascripts/ckeditor/plugins/image2/lang/km.js +21 -0
  96. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ko.js +21 -0
  97. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ku.js +21 -0
  98. data/app/assets/javascripts/ckeditor/plugins/image2/lang/lt.js +21 -0
  99. data/app/assets/javascripts/ckeditor/plugins/image2/lang/lv.js +21 -0
  100. data/app/assets/javascripts/ckeditor/plugins/image2/lang/mk.js +21 -0
  101. data/app/assets/javascripts/ckeditor/plugins/image2/lang/mn.js +21 -0
  102. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ms.js +21 -0
  103. data/app/assets/javascripts/ckeditor/plugins/image2/lang/nb.js +21 -0
  104. data/app/assets/javascripts/ckeditor/plugins/image2/lang/nl.js +21 -0
  105. data/app/assets/javascripts/ckeditor/plugins/image2/lang/no.js +21 -0
  106. data/app/assets/javascripts/ckeditor/plugins/image2/lang/oc.js +21 -0
  107. data/app/assets/javascripts/ckeditor/plugins/image2/lang/pl.js +21 -0
  108. data/app/assets/javascripts/ckeditor/plugins/image2/lang/pt-br.js +21 -0
  109. data/app/assets/javascripts/ckeditor/plugins/image2/lang/pt.js +21 -0
  110. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ro.js +21 -0
  111. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ru.js +21 -0
  112. data/app/assets/javascripts/ckeditor/plugins/image2/lang/si.js +21 -0
  113. data/app/assets/javascripts/ckeditor/plugins/image2/lang/sk.js +21 -0
  114. data/app/assets/javascripts/ckeditor/plugins/image2/lang/sl.js +21 -0
  115. data/app/assets/javascripts/ckeditor/plugins/image2/lang/sq.js +21 -0
  116. data/app/assets/javascripts/ckeditor/plugins/image2/lang/sr-latn.js +21 -0
  117. data/app/assets/javascripts/ckeditor/plugins/image2/lang/sr.js +21 -0
  118. data/app/assets/javascripts/ckeditor/plugins/image2/lang/sv.js +21 -0
  119. data/app/assets/javascripts/ckeditor/plugins/image2/lang/th.js +21 -0
  120. data/app/assets/javascripts/ckeditor/plugins/image2/lang/tr.js +21 -0
  121. data/app/assets/javascripts/ckeditor/plugins/image2/lang/tt.js +21 -0
  122. data/app/assets/javascripts/ckeditor/plugins/image2/lang/ug.js +21 -0
  123. data/app/assets/javascripts/ckeditor/plugins/image2/lang/uk.js +21 -0
  124. data/app/assets/javascripts/ckeditor/plugins/image2/lang/vi.js +21 -0
  125. data/app/assets/javascripts/ckeditor/plugins/image2/lang/zh-cn.js +21 -0
  126. data/app/assets/javascripts/ckeditor/plugins/image2/lang/zh.js +21 -0
  127. data/app/assets/javascripts/ckeditor/plugins/image2/plugin.js +1720 -0
  128. data/app/assets/javascripts/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
  129. data/app/assets/javascripts/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
  130. data/app/assets/javascripts/ckeditor/plugins/image2/samples/image2.html +68 -0
  131. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/copywidget.png +0 -0
  132. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/editwidget.png +0 -0
  133. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/copywidget.png +0 -0
  134. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/editwidget.png +0 -0
  135. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/removewidget.png +0 -0
  136. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/widget.png +0 -0
  137. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/removewidget.png +0 -0
  138. data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/widget.png +0 -0
  139. data/app/assets/javascripts/ckeditor/plugins/integral-card/plugin.js +86 -0
  140. data/app/assets/javascripts/ckeditor/plugins/integralrecentposts/dialogs/integralrecentposts.js +40 -0
  141. data/app/assets/javascripts/ckeditor/plugins/integralrecentposts/plugin.js +32 -0
  142. data/app/assets/javascripts/ckeditor/plugins/lineutils/dev/dnd.html +4 -4
  143. data/app/assets/javascripts/ckeditor/plugins/lineutils/dev/magicfinger.html +4 -4
  144. data/app/assets/javascripts/ckeditor/plugins/lineutils/plugin.js +7 -7
  145. data/app/assets/javascripts/ckeditor/plugins/linkballoon/README.md +5 -0
  146. data/app/assets/javascripts/ckeditor/plugins/linkballoon/assets/demo.png +0 -0
  147. data/app/assets/javascripts/ckeditor/plugins/linkballoon/plugin.js +25 -0
  148. data/app/assets/javascripts/ckeditor/plugins/notification/lang/az.js +7 -0
  149. data/app/assets/javascripts/ckeditor/plugins/notification/lang/bg.js +7 -0
  150. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ca.js +7 -0
  151. data/app/assets/javascripts/ckeditor/plugins/notification/lang/cs.js +2 -2
  152. data/app/assets/javascripts/ckeditor/plugins/notification/lang/da.js +2 -2
  153. data/app/assets/javascripts/ckeditor/plugins/notification/lang/de-ch.js +2 -2
  154. data/app/assets/javascripts/ckeditor/plugins/notification/lang/de.js +2 -2
  155. data/app/assets/javascripts/ckeditor/plugins/notification/lang/en-au.js +7 -0
  156. data/app/assets/javascripts/ckeditor/plugins/notification/lang/en.js +2 -2
  157. data/app/assets/javascripts/ckeditor/plugins/notification/lang/eo.js +2 -2
  158. data/app/assets/javascripts/ckeditor/plugins/notification/lang/es-mx.js +7 -0
  159. data/app/assets/javascripts/ckeditor/plugins/notification/lang/es.js +7 -0
  160. data/app/assets/javascripts/ckeditor/plugins/notification/lang/et.js +7 -0
  161. data/app/assets/javascripts/ckeditor/plugins/notification/lang/eu.js +2 -2
  162. data/app/assets/javascripts/ckeditor/plugins/notification/lang/fa.js +7 -0
  163. data/app/assets/javascripts/ckeditor/plugins/notification/lang/fr.js +3 -3
  164. data/app/assets/javascripts/ckeditor/plugins/notification/lang/gl.js +2 -2
  165. data/app/assets/javascripts/ckeditor/plugins/notification/lang/hr.js +7 -0
  166. data/app/assets/javascripts/ckeditor/plugins/notification/lang/hu.js +7 -0
  167. data/app/assets/javascripts/ckeditor/plugins/notification/lang/id.js +2 -2
  168. data/app/assets/javascripts/ckeditor/plugins/notification/lang/it.js +2 -2
  169. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ja.js +7 -0
  170. data/app/assets/javascripts/ckeditor/plugins/notification/lang/km.js +2 -2
  171. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ko.js +2 -2
  172. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ku.js +2 -2
  173. data/app/assets/javascripts/ckeditor/plugins/notification/lang/lv.js +7 -0
  174. data/app/assets/javascripts/ckeditor/plugins/notification/lang/nb.js +2 -2
  175. data/app/assets/javascripts/ckeditor/plugins/notification/lang/nl.js +2 -2
  176. data/app/assets/javascripts/ckeditor/plugins/notification/lang/oc.js +7 -0
  177. data/app/assets/javascripts/ckeditor/plugins/notification/lang/pl.js +2 -2
  178. data/app/assets/javascripts/ckeditor/plugins/notification/lang/pt-br.js +2 -2
  179. data/app/assets/javascripts/ckeditor/plugins/notification/lang/pt.js +2 -2
  180. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ro.js +7 -0
  181. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ru.js +2 -2
  182. data/app/assets/javascripts/ckeditor/plugins/notification/lang/sk.js +7 -0
  183. data/app/assets/javascripts/ckeditor/plugins/notification/lang/sq.js +7 -0
  184. data/app/assets/javascripts/ckeditor/plugins/notification/lang/sv.js +2 -2
  185. data/app/assets/javascripts/ckeditor/plugins/notification/lang/tr.js +2 -2
  186. data/app/assets/javascripts/ckeditor/plugins/notification/lang/ug.js +2 -2
  187. data/app/assets/javascripts/ckeditor/plugins/notification/lang/uk.js +2 -2
  188. data/app/assets/javascripts/ckeditor/plugins/notification/lang/zh-cn.js +3 -3
  189. data/app/assets/javascripts/ckeditor/plugins/notification/lang/zh.js +2 -2
  190. data/app/assets/javascripts/ckeditor/plugins/notification/plugin.js +794 -784
  191. data/app/assets/javascripts/ckeditor/plugins/numericinput/LICENSE.md +363 -0
  192. data/app/assets/javascripts/ckeditor/plugins/numericinput/README.md +16 -0
  193. data/app/assets/javascripts/ckeditor/plugins/numericinput/plugin.js +354 -0
  194. data/app/assets/javascripts/ckeditor/plugins/openlink/README.md +50 -0
  195. data/app/assets/javascripts/ckeditor/plugins/openlink/icons/hidpi/openLink.png +0 -0
  196. data/app/assets/javascripts/ckeditor/plugins/openlink/icons/openLink.png +0 -0
  197. data/app/assets/javascripts/ckeditor/plugins/openlink/lang/bg.js +7 -0
  198. data/app/assets/javascripts/ckeditor/plugins/openlink/lang/de.js +7 -0
  199. data/app/assets/javascripts/ckeditor/plugins/openlink/lang/en.js +7 -0
  200. data/app/assets/javascripts/ckeditor/plugins/openlink/lang/pl.js +7 -0
  201. data/app/assets/javascripts/ckeditor/plugins/openlink/lang/ru.js +7 -0
  202. data/app/assets/javascripts/ckeditor/plugins/openlink/lang/uk.js +7 -0
  203. data/app/assets/javascripts/ckeditor/plugins/openlink/plugin.js +178 -0
  204. data/app/assets/javascripts/ckeditor/plugins/placeholder/dev/placeholder.html +5 -5
  205. data/app/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +2 -2
  206. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/af.js +2 -2
  207. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ar.js +2 -2
  208. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/az.js +2 -2
  209. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +5 -5
  210. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ca.js +2 -2
  211. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +2 -2
  212. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +2 -2
  213. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +2 -2
  214. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/de-ch.js +2 -2
  215. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +2 -2
  216. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +2 -2
  217. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en-au.js +12 -0
  218. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en-gb.js +2 -2
  219. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +2 -2
  220. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +2 -2
  221. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/es-mx.js +2 -2
  222. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/es.js +2 -2
  223. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +2 -2
  224. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/eu.js +2 -2
  225. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +2 -2
  226. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +2 -2
  227. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fr-ca.js +2 -2
  228. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +2 -2
  229. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/gl.js +2 -2
  230. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +2 -2
  231. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +2 -2
  232. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/hu.js +2 -2
  233. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/id.js +2 -2
  234. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +2 -2
  235. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ja.js +2 -2
  236. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/km.js +2 -2
  237. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ko.js +2 -2
  238. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ku.js +2 -2
  239. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/lv.js +5 -5
  240. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +2 -2
  241. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +2 -2
  242. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +2 -2
  243. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/oc.js +2 -2
  244. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +2 -2
  245. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pt-br.js +2 -2
  246. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pt.js +2 -2
  247. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ro.js +12 -0
  248. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ru.js +2 -2
  249. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/si.js +2 -2
  250. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sk.js +2 -2
  251. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sl.js +2 -2
  252. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sq.js +2 -2
  253. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sv.js +2 -2
  254. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/th.js +2 -2
  255. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +2 -2
  256. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/tt.js +2 -2
  257. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +2 -2
  258. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +2 -2
  259. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +2 -2
  260. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +2 -2
  261. data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/zh.js +2 -2
  262. data/app/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +3 -3
  263. data/app/assets/javascripts/ckeditor/plugins/placeholder/samples/placeholder.html +6 -6
  264. data/app/assets/javascripts/ckeditor/plugins/widget/dev/assets/simplebox/dialogs/simplebox.js +4 -4
  265. data/app/assets/javascripts/ckeditor/plugins/widget/dev/assets/simplebox/plugin.js +3 -3
  266. data/app/assets/javascripts/ckeditor/plugins/widget/dev/console.js +2 -2
  267. data/app/assets/javascripts/ckeditor/plugins/widget/dev/nestedwidgets.html +2 -2
  268. data/app/assets/javascripts/ckeditor/plugins/widget/dev/widgetstyles.html +2 -2
  269. data/app/assets/javascripts/ckeditor/plugins/widget/lang/af.js +2 -2
  270. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ar.js +2 -2
  271. data/app/assets/javascripts/ckeditor/plugins/widget/lang/az.js +2 -2
  272. data/app/assets/javascripts/ckeditor/plugins/widget/lang/bg.js +3 -3
  273. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ca.js +2 -2
  274. data/app/assets/javascripts/ckeditor/plugins/widget/lang/cs.js +2 -2
  275. data/app/assets/javascripts/ckeditor/plugins/widget/lang/cy.js +2 -2
  276. data/app/assets/javascripts/ckeditor/plugins/widget/lang/da.js +2 -2
  277. data/app/assets/javascripts/ckeditor/plugins/widget/lang/de-ch.js +2 -2
  278. data/app/assets/javascripts/ckeditor/plugins/widget/lang/de.js +2 -2
  279. data/app/assets/javascripts/ckeditor/plugins/widget/lang/el.js +2 -2
  280. data/app/assets/javascripts/ckeditor/plugins/widget/lang/en-au.js +8 -0
  281. data/app/assets/javascripts/ckeditor/plugins/widget/lang/en-gb.js +2 -2
  282. data/app/assets/javascripts/ckeditor/plugins/widget/lang/en.js +2 -2
  283. data/app/assets/javascripts/ckeditor/plugins/widget/lang/eo.js +2 -2
  284. data/app/assets/javascripts/ckeditor/plugins/widget/lang/es-mx.js +2 -2
  285. data/app/assets/javascripts/ckeditor/plugins/widget/lang/es.js +2 -2
  286. data/app/assets/javascripts/ckeditor/plugins/widget/lang/et.js +8 -0
  287. data/app/assets/javascripts/ckeditor/plugins/widget/lang/eu.js +2 -2
  288. data/app/assets/javascripts/ckeditor/plugins/widget/lang/fa.js +3 -3
  289. data/app/assets/javascripts/ckeditor/plugins/widget/lang/fi.js +2 -2
  290. data/app/assets/javascripts/ckeditor/plugins/widget/lang/fr.js +2 -2
  291. data/app/assets/javascripts/ckeditor/plugins/widget/lang/gl.js +2 -2
  292. data/app/assets/javascripts/ckeditor/plugins/widget/lang/he.js +2 -2
  293. data/app/assets/javascripts/ckeditor/plugins/widget/lang/hr.js +2 -2
  294. data/app/assets/javascripts/ckeditor/plugins/widget/lang/hu.js +2 -2
  295. data/app/assets/javascripts/ckeditor/plugins/widget/lang/id.js +2 -2
  296. data/app/assets/javascripts/ckeditor/plugins/widget/lang/it.js +2 -2
  297. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ja.js +2 -2
  298. data/app/assets/javascripts/ckeditor/plugins/widget/lang/km.js +2 -2
  299. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ko.js +2 -2
  300. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ku.js +2 -2
  301. data/app/assets/javascripts/ckeditor/plugins/widget/lang/lv.js +3 -3
  302. data/app/assets/javascripts/ckeditor/plugins/widget/lang/nb.js +2 -2
  303. data/app/assets/javascripts/ckeditor/plugins/widget/lang/nl.js +2 -2
  304. data/app/assets/javascripts/ckeditor/plugins/widget/lang/no.js +2 -2
  305. data/app/assets/javascripts/ckeditor/plugins/widget/lang/oc.js +2 -2
  306. data/app/assets/javascripts/ckeditor/plugins/widget/lang/pl.js +2 -2
  307. data/app/assets/javascripts/ckeditor/plugins/widget/lang/pt-br.js +2 -2
  308. data/app/assets/javascripts/ckeditor/plugins/widget/lang/pt.js +2 -2
  309. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ro.js +8 -0
  310. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ru.js +2 -2
  311. data/app/assets/javascripts/ckeditor/plugins/widget/lang/sk.js +2 -2
  312. data/app/assets/javascripts/ckeditor/plugins/widget/lang/sl.js +2 -2
  313. data/app/assets/javascripts/ckeditor/plugins/widget/lang/sq.js +3 -3
  314. data/app/assets/javascripts/ckeditor/plugins/widget/lang/sv.js +2 -2
  315. data/app/assets/javascripts/ckeditor/plugins/widget/lang/tr.js +2 -2
  316. data/app/assets/javascripts/ckeditor/plugins/widget/lang/tt.js +2 -2
  317. data/app/assets/javascripts/ckeditor/plugins/widget/lang/ug.js +2 -2
  318. data/app/assets/javascripts/ckeditor/plugins/widget/lang/uk.js +2 -2
  319. data/app/assets/javascripts/ckeditor/plugins/widget/lang/vi.js +2 -2
  320. data/app/assets/javascripts/ckeditor/plugins/widget/lang/zh-cn.js +2 -2
  321. data/app/assets/javascripts/ckeditor/plugins/widget/lang/zh.js +2 -2
  322. data/app/assets/javascripts/ckeditor/plugins/widget/plugin.js +235 -64
  323. data/app/assets/javascripts/ckeditor/plugins/widgetselection/plugin.js +6 -11
  324. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ar.js +1 -0
  325. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/bg.js +17 -0
  326. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ca.js +1 -0
  327. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/cs.js +15 -0
  328. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/da.js +1 -0
  329. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/de.js +1 -0
  330. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/el.js +1 -0
  331. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +5 -1
  332. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/es.js +1 -0
  333. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/eu.js +17 -0
  334. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fa.js +13 -0
  335. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fi.js +1 -0
  336. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fr.js +1 -0
  337. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/he.js +1 -0
  338. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/hr.js +1 -0
  339. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/hu.js +14 -0
  340. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/it.js +4 -3
  341. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ja.js +5 -5
  342. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ko.js +16 -0
  343. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/nl.js +3 -2
  344. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/no.js +1 -0
  345. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pl.js +4 -3
  346. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pt-br.js +1 -0
  347. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pt.js +1 -0
  348. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ro.js +15 -0
  349. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ru.js +2 -1
  350. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/sk.js +15 -0
  351. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/sv.js +5 -3
  352. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/tr.js +1 -0
  353. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/uk.js +17 -0
  354. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/zh-cn.js +1 -0
  355. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/zh.js +14 -0
  356. data/app/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +485 -302
  357. data/app/assets/javascripts/ckeditor/plugins/wordcount/samples/maxParagraphs.html +26 -0
  358. data/app/assets/javascripts/integral/backend.js +10 -14
  359. data/app/assets/javascripts/integral/frontend.js +0 -2
  360. data/app/assets/javascripts/integral/support/date_picker.coffee +54 -59
  361. data/app/assets/javascripts/integral/support/grid.coffee +11 -4
  362. data/app/assets/javascripts/integral/support/remote_form.coffee +13 -9
  363. data/app/assets/stylesheets/integral/frontend.sass +0 -1
  364. data/app/controllers/integral/application_controller.rb +3 -2
  365. data/app/controllers/integral/backend/activities_controller.rb +1 -1
  366. data/app/controllers/integral/backend/base_controller.rb +160 -24
  367. data/app/controllers/integral/backend/images_controller.rb +16 -49
  368. data/app/controllers/integral/backend/lists_controller.rb +15 -85
  369. data/app/controllers/integral/backend/pages_controller.rb +13 -116
  370. data/app/controllers/integral/backend/posts_controller.rb +21 -108
  371. data/app/controllers/integral/backend/settings_controller.rb +5 -10
  372. data/app/controllers/integral/backend/static_pages_controller.rb +4 -0
  373. data/app/controllers/integral/backend/users_controller.rb +23 -66
  374. data/app/controllers/integral/pages_controller.rb +2 -2
  375. data/app/controllers/integral/posts_controller.rb +2 -6
  376. data/app/decorators/integral/image_decorator.rb +1 -1
  377. data/app/decorators/integral/list_decorator.rb +1 -1
  378. data/app/decorators/integral/page_decorator.rb +1 -1
  379. data/app/decorators/integral/paginating_decorator.rb +6 -0
  380. data/app/decorators/integral/post_decorator.rb +34 -1
  381. data/app/decorators/integral/user_decorator.rb +1 -1
  382. data/app/decorators/integral/version_decorator.rb +1 -1
  383. data/app/helpers/integral/application_helper.rb +7 -0
  384. data/app/helpers/integral/blog_helper.rb +29 -0
  385. data/app/helpers/integral/social_helper.rb +0 -23
  386. data/app/models/integral/list.rb +1 -2
  387. data/app/models/integral/page.rb +1 -1
  388. data/app/models/integral/post.rb +1 -1
  389. data/app/models/integral/user.rb +6 -0
  390. data/app/policies/integral/base_policy.rb +1 -1
  391. data/app/views/devise/sessions/new.haml +2 -2
  392. data/app/views/integral/backend/images/_form.haml +8 -8
  393. data/app/views/integral/backend/images/edit.haml +10 -2
  394. data/app/views/integral/backend/lists/_child_fields.haml +1 -1
  395. data/app/views/integral/backend/lists/_form.haml +1 -1
  396. data/app/views/integral/backend/lists/_item_container.haml +2 -2
  397. data/app/views/integral/backend/lists/_item_modal.haml +1 -1
  398. data/app/views/integral/backend/lists/_list_item_fields.haml +4 -3
  399. data/app/views/integral/backend/lists/edit.haml +15 -1
  400. data/app/views/integral/backend/pages/_form.haml +3 -3
  401. data/app/views/integral/backend/pages/activities.haml +2 -2
  402. data/app/views/integral/backend/pages/activity.haml +1 -1
  403. data/app/views/integral/backend/pages/edit.haml +20 -0
  404. data/app/views/integral/backend/posts/_form.haml +9 -5
  405. data/app/views/integral/backend/posts/activities.haml +2 -2
  406. data/app/views/integral/backend/posts/activity.haml +1 -1
  407. data/app/views/integral/backend/posts/edit.haml +8 -3
  408. data/app/views/integral/backend/settings/sections/_social.haml +1 -3
  409. data/app/views/integral/backend/users/_form.haml +4 -4
  410. data/app/views/integral/backend/users/edit.haml +1 -1
  411. data/app/views/integral/backend/users/show.haml +7 -7
  412. data/app/views/integral/posts/index.haml +2 -1
  413. data/app/views/integral/posts/templates/default.haml +1 -2
  414. data/app/views/integral/shared/_share_modal.haml +0 -3
  415. data/app/views/integral/shared/_social_list_items.haml +6 -12
  416. data/config/locales/en.yml +23 -12
  417. data/lib/generators/templates/app.yml +0 -1
  418. data/lib/integral/engine.rb +1 -0
  419. data/lib/integral/router.rb +3 -1
  420. data/lib/integral/version.rb +1 -1
  421. data/public/integral/ckeditor_demo_content.html +0 -13
  422. metadata +186 -12
  423. data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/jp.js +0 -13
  424. data/app/assets/javascripts/integral/support/date_picker/picker.date.js +0 -1435
  425. data/app/assets/javascripts/integral/support/date_picker/picker.js +0 -1132
  426. data/app/assets/stylesheets/integral/support/date-picker.scss +0 -16
  427. data/app/assets/stylesheets/integral/support/date_picker/_default.date.scss +0 -452
  428. data/app/assets/stylesheets/integral/support/date_picker/_default.scss +0 -201
  429. data/app/assets/stylesheets/integral/support/date_picker/materialize_clockpicker.sass +0 -220
  430. data/app/views/integral/backend/pages/edit.html.haml +0 -15
@@ -0,0 +1,363 @@
1
+
2
+ Mozilla Public License, version 2.0
3
+
4
+ 1. Definitions
5
+
6
+ 1.1. "Contributor"
7
+
8
+ means each individual or legal entity that creates, contributes to the
9
+ creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+
13
+ means the combination of the Contributions of others (if any) used by a
14
+ Contributor and that particular Contributor's Contribution.
15
+
16
+ 1.3. "Contribution"
17
+
18
+ means Covered Software of a particular Contributor.
19
+
20
+ 1.4. "Covered Software"
21
+
22
+ means Source Code Form to which the initial Contributor has attached the
23
+ notice in Exhibit A, the Executable Form of such Source Code Form, and
24
+ Modifications of such Source Code Form, in each case including portions
25
+ thereof.
26
+
27
+ 1.5. "Incompatible With Secondary Licenses"
28
+ means
29
+
30
+ a. that the initial Contributor has attached the notice described in
31
+ Exhibit B to the Covered Software; or
32
+
33
+ b. that the Covered Software was made available under the terms of
34
+ version 1.1 or earlier of the License, but not also under the terms of
35
+ a Secondary License.
36
+
37
+ 1.6. "Executable Form"
38
+
39
+ means any form of the work other than Source Code Form.
40
+
41
+ 1.7. "Larger Work"
42
+
43
+ means a work that combines Covered Software with other material, in a
44
+ separate file or files, that is not Covered Software.
45
+
46
+ 1.8. "License"
47
+
48
+ means this document.
49
+
50
+ 1.9. "Licensable"
51
+
52
+ means having the right to grant, to the maximum extent possible, whether
53
+ at the time of the initial grant or subsequently, any and all of the
54
+ rights conveyed by this License.
55
+
56
+ 1.10. "Modifications"
57
+
58
+ means any of the following:
59
+
60
+ a. any file in Source Code Form that results from an addition to,
61
+ deletion from, or modification of the contents of Covered Software; or
62
+
63
+ b. any new file in Source Code Form that contains any Covered Software.
64
+
65
+ 1.11. "Patent Claims" of a Contributor
66
+
67
+ means any patent claim(s), including without limitation, method,
68
+ process, and apparatus claims, in any patent Licensable by such
69
+ Contributor that would be infringed, but for the grant of the License,
70
+ by the making, using, selling, offering for sale, having made, import,
71
+ or transfer of either its Contributions or its Contributor Version.
72
+
73
+ 1.12. "Secondary License"
74
+
75
+ means either the GNU General Public License, Version 2.0, the GNU Lesser
76
+ General Public License, Version 2.1, the GNU Affero General Public
77
+ License, Version 3.0, or any later versions of those licenses.
78
+
79
+ 1.13. "Source Code Form"
80
+
81
+ means the form of the work preferred for making modifications.
82
+
83
+ 1.14. "You" (or "Your")
84
+
85
+ means an individual or a legal entity exercising rights under this
86
+ License. For legal entities, "You" includes any entity that controls, is
87
+ controlled by, or is under common control with You. For purposes of this
88
+ definition, "control" means (a) the power, direct or indirect, to cause
89
+ the direction or management of such entity, whether by contract or
90
+ otherwise, or (b) ownership of more than fifty percent (50%) of the
91
+ outstanding shares or beneficial ownership of such entity.
92
+
93
+
94
+ 2. License Grants and Conditions
95
+
96
+ 2.1. Grants
97
+
98
+ Each Contributor hereby grants You a world-wide, royalty-free,
99
+ non-exclusive license:
100
+
101
+ a. under intellectual property rights (other than patent or trademark)
102
+ Licensable by such Contributor to use, reproduce, make available,
103
+ modify, display, perform, distribute, and otherwise exploit its
104
+ Contributions, either on an unmodified basis, with Modifications, or
105
+ as part of a Larger Work; and
106
+
107
+ b. under Patent Claims of such Contributor to make, use, sell, offer for
108
+ sale, have made, import, and otherwise transfer either its
109
+ Contributions or its Contributor Version.
110
+
111
+ 2.2. Effective Date
112
+
113
+ The licenses granted in Section 2.1 with respect to any Contribution
114
+ become effective for each Contribution on the date the Contributor first
115
+ distributes such Contribution.
116
+
117
+ 2.3. Limitations on Grant Scope
118
+
119
+ The licenses granted in this Section 2 are the only rights granted under
120
+ this License. No additional rights or licenses will be implied from the
121
+ distribution or licensing of Covered Software under this License.
122
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
123
+ Contributor:
124
+
125
+ a. for any code that a Contributor has removed from Covered Software; or
126
+
127
+ b. for infringements caused by: (i) Your and any other third party's
128
+ modifications of Covered Software, or (ii) the combination of its
129
+ Contributions with other software (except as part of its Contributor
130
+ Version); or
131
+
132
+ c. under Patent Claims infringed by Covered Software in the absence of
133
+ its Contributions.
134
+
135
+ This License does not grant any rights in the trademarks, service marks,
136
+ or logos of any Contributor (except as may be necessary to comply with
137
+ the notice requirements in Section 3.4).
138
+
139
+ 2.4. Subsequent Licenses
140
+
141
+ No Contributor makes additional grants as a result of Your choice to
142
+ distribute the Covered Software under a subsequent version of this
143
+ License (see Section 10.2) or under the terms of a Secondary License (if
144
+ permitted under the terms of Section 3.3).
145
+
146
+ 2.5. Representation
147
+
148
+ Each Contributor represents that the Contributor believes its
149
+ Contributions are its original creation(s) or it has sufficient rights to
150
+ grant the rights to its Contributions conveyed by this License.
151
+
152
+ 2.6. Fair Use
153
+
154
+ This License is not intended to limit any rights You have under
155
+ applicable copyright doctrines of fair use, fair dealing, or other
156
+ equivalents.
157
+
158
+ 2.7. Conditions
159
+
160
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
161
+ Section 2.1.
162
+
163
+
164
+ 3. Responsibilities
165
+
166
+ 3.1. Distribution of Source Form
167
+
168
+ All distribution of Covered Software in Source Code Form, including any
169
+ Modifications that You create or to which You contribute, must be under
170
+ the terms of this License. You must inform recipients that the Source
171
+ Code Form of the Covered Software is governed by the terms of this
172
+ License, and how they can obtain a copy of this License. You may not
173
+ attempt to alter or restrict the recipients' rights in the Source Code
174
+ Form.
175
+
176
+ 3.2. Distribution of Executable Form
177
+
178
+ If You distribute Covered Software in Executable Form then:
179
+
180
+ a. such Covered Software must also be made available in Source Code Form,
181
+ as described in Section 3.1, and You must inform recipients of the
182
+ Executable Form how they can obtain a copy of such Source Code Form by
183
+ reasonable means in a timely manner, at a charge no more than the cost
184
+ of distribution to the recipient; and
185
+
186
+ b. You may distribute such Executable Form under the terms of this
187
+ License, or sublicense it under different terms, provided that the
188
+ license for the Executable Form does not attempt to limit or alter the
189
+ recipients' rights in the Source Code Form under this License.
190
+
191
+ 3.3. Distribution of a Larger Work
192
+
193
+ You may create and distribute a Larger Work under terms of Your choice,
194
+ provided that You also comply with the requirements of this License for
195
+ the Covered Software. If the Larger Work is a combination of Covered
196
+ Software with a work governed by one or more Secondary Licenses, and the
197
+ Covered Software is not Incompatible With Secondary Licenses, this
198
+ License permits You to additionally distribute such Covered Software
199
+ under the terms of such Secondary License(s), so that the recipient of
200
+ the Larger Work may, at their option, further distribute the Covered
201
+ Software under the terms of either this License or such Secondary
202
+ License(s).
203
+
204
+ 3.4. Notices
205
+
206
+ You may not remove or alter the substance of any license notices
207
+ (including copyright notices, patent notices, disclaimers of warranty, or
208
+ limitations of liability) contained within the Source Code Form of the
209
+ Covered Software, except that You may alter any license notices to the
210
+ extent required to remedy known factual inaccuracies.
211
+
212
+ 3.5. Application of Additional Terms
213
+
214
+ You may choose to offer, and to charge a fee for, warranty, support,
215
+ indemnity or liability obligations to one or more recipients of Covered
216
+ Software. However, You may do so only on Your own behalf, and not on
217
+ behalf of any Contributor. You must make it absolutely clear that any
218
+ such warranty, support, indemnity, or liability obligation is offered by
219
+ You alone, and You hereby agree to indemnify every Contributor for any
220
+ liability incurred by such Contributor as a result of warranty, support,
221
+ indemnity or liability terms You offer. You may include additional
222
+ disclaimers of warranty and limitations of liability specific to any
223
+ jurisdiction.
224
+
225
+ 4. Inability to Comply Due to Statute or Regulation
226
+
227
+ If it is impossible for You to comply with any of the terms of this License
228
+ with respect to some or all of the Covered Software due to statute,
229
+ judicial order, or regulation then You must: (a) comply with the terms of
230
+ this License to the maximum extent possible; and (b) describe the
231
+ limitations and the code they affect. Such description must be placed in a
232
+ text file included with all distributions of the Covered Software under
233
+ this License. Except to the extent prohibited by statute or regulation,
234
+ such description must be sufficiently detailed for a recipient of ordinary
235
+ skill to be able to understand it.
236
+
237
+ 5. Termination
238
+
239
+ 5.1. The rights granted under this License will terminate automatically if You
240
+ fail to comply with any of its terms. However, if You become compliant,
241
+ then the rights granted under this License from a particular Contributor
242
+ are reinstated (a) provisionally, unless and until such Contributor
243
+ explicitly and finally terminates Your grants, and (b) on an ongoing
244
+ basis, if such Contributor fails to notify You of the non-compliance by
245
+ some reasonable means prior to 60 days after You have come back into
246
+ compliance. Moreover, Your grants from a particular Contributor are
247
+ reinstated on an ongoing basis if such Contributor notifies You of the
248
+ non-compliance by some reasonable means, this is the first time You have
249
+ received notice of non-compliance with this License from such
250
+ Contributor, and You become compliant prior to 30 days after Your receipt
251
+ of the notice.
252
+
253
+ 5.2. If You initiate litigation against any entity by asserting a patent
254
+ infringement claim (excluding declaratory judgment actions,
255
+ counter-claims, and cross-claims) alleging that a Contributor Version
256
+ directly or indirectly infringes any patent, then the rights granted to
257
+ You by any and all Contributors for the Covered Software under Section
258
+ 2.1 of this License shall terminate.
259
+
260
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
261
+ license agreements (excluding distributors and resellers) which have been
262
+ validly granted by You or Your distributors under this License prior to
263
+ termination shall survive termination.
264
+
265
+ 6. Disclaimer of Warranty
266
+
267
+ Covered Software is provided under this License on an "as is" basis,
268
+ without warranty of any kind, either expressed, implied, or statutory,
269
+ including, without limitation, warranties that the Covered Software is free
270
+ of defects, merchantable, fit for a particular purpose or non-infringing.
271
+ The entire risk as to the quality and performance of the Covered Software
272
+ is with You. Should any Covered Software prove defective in any respect,
273
+ You (not any Contributor) assume the cost of any necessary servicing,
274
+ repair, or correction. This disclaimer of warranty constitutes an essential
275
+ part of this License. No use of any Covered Software is authorized under
276
+ this License except under this disclaimer.
277
+
278
+ 7. Limitation of Liability
279
+
280
+ Under no circumstances and under no legal theory, whether tort (including
281
+ negligence), contract, or otherwise, shall any Contributor, or anyone who
282
+ distributes Covered Software as permitted above, be liable to You for any
283
+ direct, indirect, special, incidental, or consequential damages of any
284
+ character including, without limitation, damages for lost profits, loss of
285
+ goodwill, work stoppage, computer failure or malfunction, or any and all
286
+ other commercial damages or losses, even if such party shall have been
287
+ informed of the possibility of such damages. This limitation of liability
288
+ shall not apply to liability for death or personal injury resulting from
289
+ such party's negligence to the extent applicable law prohibits such
290
+ limitation. Some jurisdictions do not allow the exclusion or limitation of
291
+ incidental or consequential damages, so this exclusion and limitation may
292
+ not apply to You.
293
+
294
+ 8. Litigation
295
+
296
+ Any litigation relating to this License may be brought only in the courts
297
+ of a jurisdiction where the defendant maintains its principal place of
298
+ business and such litigation shall be governed by laws of that
299
+ jurisdiction, without reference to its conflict-of-law provisions. Nothing
300
+ in this Section shall prevent a party's ability to bring cross-claims or
301
+ counter-claims.
302
+
303
+ 9. Miscellaneous
304
+
305
+ This License represents the complete agreement concerning the subject
306
+ matter hereof. If any provision of this License is held to be
307
+ unenforceable, such provision shall be reformed only to the extent
308
+ necessary to make it enforceable. Any law or regulation which provides that
309
+ the language of a contract shall be construed against the drafter shall not
310
+ be used to construe this License against a Contributor.
311
+
312
+
313
+ 10. Versions of the License
314
+
315
+ 10.1. New Versions
316
+
317
+ Mozilla Foundation is the license steward. Except as provided in Section
318
+ 10.3, no one other than the license steward has the right to modify or
319
+ publish new versions of this License. Each version will be given a
320
+ distinguishing version number.
321
+
322
+ 10.2. Effect of New Versions
323
+
324
+ You may distribute the Covered Software under the terms of the version
325
+ of the License under which You originally received the Covered Software,
326
+ or under the terms of any subsequent version published by the license
327
+ steward.
328
+
329
+ 10.3. Modified Versions
330
+
331
+ If you create software not governed by this License, and you want to
332
+ create a new license for such software, you may create and use a
333
+ modified version of this License if you rename the license and remove
334
+ any references to the name of the license steward (except to note that
335
+ such modified license differs from this License).
336
+
337
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
338
+ Licenses If You choose to distribute Source Code Form that is
339
+ Incompatible With Secondary Licenses under the terms of this version of
340
+ the License, the notice described in Exhibit B of this License must be
341
+ attached.
342
+
343
+ Exhibit A - Source Code Form License Notice
344
+
345
+ This Source Code Form is subject to the
346
+ terms of the Mozilla Public License, v.
347
+ 2.0. If a copy of the MPL was not
348
+ distributed with this file, You can
349
+ obtain one at
350
+ http://mozilla.org/MPL/2.0/.
351
+
352
+ If it is not possible or desirable to put the notice in a particular file,
353
+ then You may include the notice in a location (such as a LICENSE file in a
354
+ relevant directory) where a recipient would be likely to look for such a
355
+ notice.
356
+
357
+ You may add additional accurate notices of copyright ownership.
358
+
359
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
360
+
361
+ This Source Code Form is "Incompatible
362
+ With Secondary Licenses", as defined by
363
+ the Mozilla Public License, v. 2.0.
@@ -0,0 +1,16 @@
1
+ Numeric Input is a plugin that allows you to use ```<input type = "number">``` in the dialogs of CKEditor.
2
+
3
+ If you have created a dialog and want to add a field in which the user can only enter a number, CKEditor only lets you use a text field and add a validation when the user clicks on the OK button in the dialog.
4
+
5
+ To improve the user experience and usability of their plugins, you can add the Numeric Input plugin to your editor.
6
+
7
+ With Numeric Input You can tell the browser user that the field is type = "number"; in this way the browser will:
8
+
9
+ - Prevent the user to enter non-numeric values
10
+ - Offer buttons to increase or decrease the numerical value
11
+ - Prevent the user to enter a value out of range
12
+
13
+ With Numeric Input you can define the allowed number range and the value to add or subtract when the user clicks the buttons to increase or decrease.
14
+
15
+ More info: http://www.pluginsforckeditor.com/More-Plugins/NumericInput-Introduction
16
+
@@ -0,0 +1,354 @@
1
+ /**
2
+ * @license Copyright (c) 2016 Uritec. All rights reserved.
3
+ * For licensing, see LICENSE.md
4
+ * version 0.2
5
+ */
6
+
7
+ /**
8
+ * @fileOverview Extends the Dialog User Interface to add the option of using input type="number"
9
+ */
10
+
11
+ /* globals CKEDITOR */
12
+
13
+ (function() {
14
+ 'use strict';
15
+
16
+ CKEDITOR.plugins.add( 'numericinput', {
17
+ requires: 'dialogui',
18
+ init: function( editor ) {
19
+
20
+ // Add hook to automatically use the numericinput type on existing dialogs that we don't want/can't change
21
+
22
+ // Customize dialogs:
23
+ CKEDITOR.on( 'dialogDefinition', function( ev ) {
24
+ if ( editor != ev.editor )
25
+ return;
26
+
27
+ var dialogName = ev.data.name,
28
+ dialogDefinition = ev.data.definition,
29
+ tabsToProcess,
30
+ tabName, fields, tab;
31
+
32
+ if (dialogName == 'tableProperties')
33
+ dialogName = 'table';
34
+
35
+ var fieldsToModify = editor.config.numericinput_modifyfields;
36
+ if (!fieldsToModify)
37
+ return;
38
+
39
+ /*
40
+ numericinput_modifyfields is an object, each entry is the name of a dialog that we want to modify,
41
+ the value is another object, the tabs of the dialog, and finally an object with the name of the fields.
42
+ eg for the Table dialog
43
+ config.numericinput_modifyfields = {
44
+ 'table': {
45
+ 'info' : {
46
+ 'txtRows': {
47
+ 'min': 1
48
+ },
49
+ 'txtCols': {
50
+ 'min': 1
51
+ },
52
+ 'txtBorder': {
53
+ }, 'txtCellSpace': {
54
+ },
55
+ 'txtCellPad': {
56
+ }
57
+ }
58
+ }
59
+
60
+ }
61
+ */
62
+ // iterate the possible items defined in the configuration
63
+ if ( fieldsToModify && ( tabsToProcess = fieldsToModify[ dialogName ] ) ) {
64
+ for ( tabName in tabsToProcess ) {
65
+ tab = dialogDefinition.getContents( tabName );
66
+ if (!tab)
67
+ continue;
68
+
69
+ fields = tabsToProcess[ tabName ];
70
+ for ( var fieldName in fields ) {
71
+ var dialogField = tab.get( fieldName );
72
+ if ( dialogField ) {
73
+ dialogField.type = 'number';
74
+ dialogField = CKEDITOR.tools.extend(dialogField, fields[ fieldName], true);
75
+ }
76
+
77
+ }
78
+ }
79
+ }
80
+ });
81
+
82
+
83
+ if (CKEDITOR.ui.dialog.numericInput)
84
+ return;
85
+
86
+ initNumericInput();
87
+ }
88
+ } );
89
+
90
+ function initNumericInput() {
91
+ var initPrivateObject = function( elementDefinition ) {
92
+ if (!this._)
93
+ this._ = {};
94
+ this._[ 'default' ] = this._.initValue = elementDefinition[ 'default' ] || '';
95
+ this._.required = elementDefinition.required || false;
96
+ var args = [ this._ ];
97
+ for ( var i = 1; i < arguments.length; i++ )
98
+ args.push( arguments[ i ] );
99
+ args.push( true );
100
+ CKEDITOR.tools.extend.apply( CKEDITOR.tools, args );
101
+ return this._;
102
+ },
103
+ numericBuilder = {
104
+ build: function( dialog, elementDefinition, output ) {
105
+ return new CKEDITOR.ui.dialog.numericInput( dialog, elementDefinition, output );
106
+ }
107
+ },
108
+ commonPrototype = {
109
+ isChanged: function() {
110
+ return this.getValue() != this.getInitValue();
111
+ },
112
+
113
+ reset: function( noChangeEvent ) {
114
+ this.setValue( this.getInitValue(), noChangeEvent );
115
+ },
116
+
117
+ setInitValue: function() {
118
+ this._.initValue = this.getValue();
119
+ },
120
+
121
+ resetInitValue: function() {
122
+ this._.initValue = this._[ 'default' ];
123
+ },
124
+
125
+ getInitValue: function() {
126
+ return this._.initValue;
127
+ }
128
+ };
129
+
130
+ CKEDITOR.tools.extend( CKEDITOR.ui.dialog, {
131
+ /**
132
+ * A numeric input with a label.
133
+ *
134
+ * @class CKEDITOR.ui.dialog.numericInput
135
+ * @extends CKEDITOR.ui.dialog.labeledElement
136
+ * @constructor Creates a numericInput class instance.
137
+ * @param {CKEDITOR.dialog} dialog Parent dialog window object.
138
+ * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition
139
+ * The element definition. Accepted fields:
140
+ *
141
+ * * `default` (Optional) The default value.
142
+ * * `validate` (Optional) The validation function.
143
+ * * `min` (Optional) The minimum value of the input.
144
+ * * `max` (Optional) The maximum value of the input.
145
+ * * `step` (Optional) The step value of the input.
146
+ *
147
+ * @param {Array} htmlList List of HTML code to output to.
148
+ */
149
+ numericInput: function( dialog, elementDefinition, htmlList ) {
150
+ if ( arguments.length < 3 )
151
+ return;
152
+
153
+ initPrivateObject.call( this, elementDefinition );
154
+ var domId = this._.inputId = CKEDITOR.tools.getNextId() + '_numericInput',
155
+ attributes = { 'class': 'cke_dialog_ui_input_text cke_dialog_ui_input_number', id: domId, type: 'number' };
156
+
157
+ // Set the validator, if any.
158
+ if ( elementDefinition.validate )
159
+ this.validate = elementDefinition.validate;
160
+
161
+ // Set the min, max and step.
162
+ if ( typeof elementDefinition.min != 'undefined' )
163
+ attributes.min = elementDefinition.min;
164
+ if ( typeof elementDefinition.max != 'undefined' )
165
+ attributes.max = elementDefinition.max;
166
+ if ( elementDefinition.step )
167
+ attributes.step = elementDefinition.step;
168
+
169
+ if ( elementDefinition.inputStyle )
170
+ attributes.style = elementDefinition.inputStyle;
171
+
172
+ // If user presses Enter in a text box, it implies clicking OK for the dialog.
173
+ var me = this,
174
+ keyPressedOnMe = false;
175
+ dialog.on( 'load', function() {
176
+ me.getInputElement().on( 'keydown', function( evt ) {
177
+ if ( evt.data.getKeystroke() == 13 )
178
+ keyPressedOnMe = true;
179
+ } );
180
+
181
+ // Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749)
182
+ me.getInputElement().on( 'keyup', function( evt ) {
183
+ if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) {
184
+ var okButton = dialog.getButton( 'ok' );
185
+ if (okButton)
186
+ setTimeout( function() {
187
+ dialog.getButton( 'ok' ).click();
188
+ }, 0 );
189
+ keyPressedOnMe = false;
190
+ }
191
+
192
+ }, null, null, 1000 );
193
+ } );
194
+
195
+ var innerHTML = function() {
196
+ // IE BUG: Text input fields in IE at 100% would exceed a <td> or inline
197
+ // container's width, so need to wrap it inside a <div>.
198
+ var html = [ '<div class="cke_dialog_ui_input_number" role="presentation"' ];
199
+
200
+ if ( elementDefinition.width )
201
+ html.push( 'style="width:' + elementDefinition.width + '" ' );
202
+
203
+ html.push( '><input ' );
204
+
205
+ attributes[ 'aria-labelledby' ] = this._.labelId;
206
+ if (this._.required)
207
+ attributes[ 'aria-required' ] = this._.required;
208
+ for ( var i in attributes )
209
+ html.push( i + '="' + attributes[ i ] + '" ' );
210
+ html.push( ' /></div>' );
211
+ return html.join( '' );
212
+ };
213
+ CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML );
214
+ }
215
+
216
+ }, true );
217
+
218
+ /** @class CKEDITOR.ui.dialog.numericInput */
219
+ CKEDITOR.ui.dialog.numericInput.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement(), {
220
+ /**
221
+ * Gets the text input DOM element under this UI object.
222
+ *
223
+ * @returns {CKEDITOR.dom.element} The DOM element of the text input.
224
+ */
225
+ getInputElement: function() {
226
+ return CKEDITOR.document.getById( this._.inputId );
227
+ },
228
+
229
+ /**
230
+ * Puts focus into the text input.
231
+ */
232
+ focus: function() {
233
+ var me = this.selectParentTab();
234
+
235
+ // GECKO BUG: setTimeout() is needed to workaround invisible selections.
236
+ setTimeout( function() {
237
+ var element = me.getInputElement();
238
+ if (element)
239
+ element.$.focus();
240
+ }, 0 );
241
+ },
242
+
243
+ /**
244
+ * Selects all the text in the text input.
245
+ */
246
+ select: function() {
247
+ var me = this.selectParentTab();
248
+
249
+ // GECKO BUG: setTimeout() is needed to workaround invisible selections.
250
+ setTimeout( function() {
251
+ var e = me.getInputElement();
252
+ if ( e ) {
253
+ e.$.focus();
254
+ e.$.select();
255
+ }
256
+ }, 0 );
257
+ },
258
+
259
+ /**
260
+ * Handler for the text input's access key up event. Makes a `select()`
261
+ * call to the text input.
262
+ */
263
+ accessKeyUp: function() {
264
+ this.select();
265
+ },
266
+
267
+ /**
268
+ * Sets the value of this numeric input object.
269
+ *
270
+ * uiElement.setValue( 83 );
271
+ *
272
+ * @param {Number} value The new value.
273
+ * @returns {CKEDITOR.ui.dialog.textInput} The current UI element.
274
+ */
275
+ setValue: function( value ) {
276
+ return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply( this, arguments );
277
+ },
278
+
279
+ /**
280
+ * Gets the value of this number input object.
281
+ *
282
+ * @returns {String} The value.
283
+ */
284
+ getValue: function() {
285
+ return CKEDITOR.ui.dialog.uiElement.prototype.getValue.call( this );
286
+ if ( value === '' )
287
+ return value;
288
+
289
+ return parseFloat( value );
290
+ },
291
+
292
+ /**
293
+ * Gets the value as number of this number input object.
294
+ *
295
+ * @returns {Number} The value.
296
+ */
297
+ getValueAsNumber: function() {
298
+ var value = CKEDITOR.ui.dialog.uiElement.prototype.getValue.call( this );
299
+ if ( value === '' )
300
+ return null;
301
+
302
+ return parseFloat( value );
303
+ },
304
+
305
+ keyboardFocusable: true
306
+ }, commonPrototype, true );
307
+
308
+ CKEDITOR.dialog.addUIElement( 'number', numericBuilder );
309
+ }
310
+ })();
311
+
312
+
313
+ /*
314
+ /**
315
+ * An object to modify elements of existing dialogs and turn them to input type="number"
316
+ *
317
+ * CKEDITOR.config.numericinput_modifyfields;
318
+ *
319
+ * @since 0.2
320
+ * @cfg {Object} numericinput_modifyfields
321
+ * @member CKEDITOR.config
322
+
323
+ The object is composed of dialog names, each of these properties is another object.
324
+ This second object then lists the tab names and its value is again an object.
325
+ In the third object the keys are the control names, and the value is an object with the properties that must me modified.
326
+
327
+ Example for the Table dialog:
328
+
329
+ config.numericinput_modifyfields = {
330
+ 'table': {
331
+ 'info' : {
332
+ 'txtRows': {
333
+ 'min': 1
334
+ },
335
+ 'txtCols': {
336
+ 'min': 1
337
+ },
338
+ 'txtBorder': {
339
+ 'min': 0,
340
+ 'controlStyle': 'width: 4em',
341
+ },
342
+ 'txtCellSpace': {
343
+ 'min': 0,
344
+ 'controlStyle': 'width: 4em',
345
+ },
346
+ 'txtCellPad': {
347
+ 'min': 0,
348
+ 'controlStyle': 'width: 4em',
349
+ }
350
+ }
351
+ }
352
+ }
353
+
354
+ */