tehranjs 0.0.2.alpha → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +254 -1
  3. data/.travis.yml +2 -3
  4. data/Gemfile +4 -0
  5. data/lib/tehranjs/cli.rb +5 -2
  6. data/lib/tehranjs/cli/serve.rb +20 -15
  7. data/lib/tehranjs/identity.rb +1 -1
  8. data/lib/tehranjs/web/controller.rb +45 -17
  9. data/lib/tehranjs/web/filter.rb +24 -0
  10. data/lib/tehranjs/web/helper.rb +21 -1
  11. data/lib/tehranjs/web/servlet.rb +25 -7
  12. data/lib/tehranjs/web/views/_layouts/application.html.erb +7 -0
  13. data/lib/tehranjs/web/views/build_article.md.erb +9 -0
  14. data/lib/tehranjs/web/views/locals/en.yml +17 -1
  15. data/lib/tehranjs/web/views/locals/fa.yml +14 -1
  16. data/lib/tehranjs/web/views/new_article.html.erb +51 -32
  17. data/lib/tehranjs/web/views/public/assets/css/application.css +3 -0
  18. data/lib/tehranjs/web/views/public/assets/js/application.js +104 -0
  19. data/lib/tehranjs/web/views/public/assets/js/ckeditor.js +1135 -0
  20. data/lib/tehranjs/web/views/public/assets/js/config.js +12 -0
  21. data/lib/tehranjs/web/views/public/assets/js/contents.css +208 -0
  22. data/lib/tehranjs/web/views/public/assets/js/lang/af.js +5 -0
  23. data/lib/tehranjs/web/views/public/assets/js/lang/ar.js +5 -0
  24. data/lib/tehranjs/web/views/public/assets/js/lang/az.js +5 -0
  25. data/lib/tehranjs/web/views/public/assets/js/lang/bg.js +5 -0
  26. data/lib/tehranjs/web/views/public/assets/js/lang/bn.js +5 -0
  27. data/lib/tehranjs/web/views/public/assets/js/lang/bs.js +5 -0
  28. data/lib/tehranjs/web/views/public/assets/js/lang/ca.js +5 -0
  29. data/lib/tehranjs/web/views/public/assets/js/lang/cs.js +5 -0
  30. data/lib/tehranjs/web/views/public/assets/js/lang/cy.js +5 -0
  31. data/lib/tehranjs/web/views/public/assets/js/lang/da.js +5 -0
  32. data/lib/tehranjs/web/views/public/assets/js/lang/de-ch.js +5 -0
  33. data/lib/tehranjs/web/views/public/assets/js/lang/de.js +5 -0
  34. data/lib/tehranjs/web/views/public/assets/js/lang/el.js +5 -0
  35. data/lib/tehranjs/web/views/public/assets/js/lang/en-au.js +5 -0
  36. data/lib/tehranjs/web/views/public/assets/js/lang/en-ca.js +5 -0
  37. data/lib/tehranjs/web/views/public/assets/js/lang/en-gb.js +5 -0
  38. data/lib/tehranjs/web/views/public/assets/js/lang/en.js +5 -0
  39. data/lib/tehranjs/web/views/public/assets/js/lang/eo.js +5 -0
  40. data/lib/tehranjs/web/views/public/assets/js/lang/es.js +5 -0
  41. data/lib/tehranjs/web/views/public/assets/js/lang/et.js +5 -0
  42. data/lib/tehranjs/web/views/public/assets/js/lang/eu.js +5 -0
  43. data/lib/tehranjs/web/views/public/assets/js/lang/fa.js +5 -0
  44. data/lib/tehranjs/web/views/public/assets/js/lang/fi.js +5 -0
  45. data/lib/tehranjs/web/views/public/assets/js/lang/fo.js +5 -0
  46. data/lib/tehranjs/web/views/public/assets/js/lang/fr-ca.js +5 -0
  47. data/lib/tehranjs/web/views/public/assets/js/lang/fr.js +5 -0
  48. data/lib/tehranjs/web/views/public/assets/js/lang/gl.js +5 -0
  49. data/lib/tehranjs/web/views/public/assets/js/lang/gu.js +5 -0
  50. data/lib/tehranjs/web/views/public/assets/js/lang/he.js +5 -0
  51. data/lib/tehranjs/web/views/public/assets/js/lang/hi.js +5 -0
  52. data/lib/tehranjs/web/views/public/assets/js/lang/hr.js +5 -0
  53. data/lib/tehranjs/web/views/public/assets/js/lang/hu.js +5 -0
  54. data/lib/tehranjs/web/views/public/assets/js/lang/id.js +5 -0
  55. data/lib/tehranjs/web/views/public/assets/js/lang/is.js +5 -0
  56. data/lib/tehranjs/web/views/public/assets/js/lang/it.js +5 -0
  57. data/lib/tehranjs/web/views/public/assets/js/lang/ja.js +5 -0
  58. data/lib/tehranjs/web/views/public/assets/js/lang/ka.js +5 -0
  59. data/lib/tehranjs/web/views/public/assets/js/lang/km.js +5 -0
  60. data/lib/tehranjs/web/views/public/assets/js/lang/ko.js +5 -0
  61. data/lib/tehranjs/web/views/public/assets/js/lang/ku.js +5 -0
  62. data/lib/tehranjs/web/views/public/assets/js/lang/lt.js +5 -0
  63. data/lib/tehranjs/web/views/public/assets/js/lang/lv.js +5 -0
  64. data/lib/tehranjs/web/views/public/assets/js/lang/mk.js +5 -0
  65. data/lib/tehranjs/web/views/public/assets/js/lang/mn.js +5 -0
  66. data/lib/tehranjs/web/views/public/assets/js/lang/ms.js +5 -0
  67. data/lib/tehranjs/web/views/public/assets/js/lang/nb.js +5 -0
  68. data/lib/tehranjs/web/views/public/assets/js/lang/nl.js +5 -0
  69. data/lib/tehranjs/web/views/public/assets/js/lang/no.js +5 -0
  70. data/lib/tehranjs/web/views/public/assets/js/lang/oc.js +5 -0
  71. data/lib/tehranjs/web/views/public/assets/js/lang/pl.js +5 -0
  72. data/lib/tehranjs/web/views/public/assets/js/lang/pt-br.js +5 -0
  73. data/lib/tehranjs/web/views/public/assets/js/lang/pt.js +5 -0
  74. data/lib/tehranjs/web/views/public/assets/js/lang/ro.js +5 -0
  75. data/lib/tehranjs/web/views/public/assets/js/lang/ru.js +5 -0
  76. data/lib/tehranjs/web/views/public/assets/js/lang/si.js +5 -0
  77. data/lib/tehranjs/web/views/public/assets/js/lang/sk.js +5 -0
  78. data/lib/tehranjs/web/views/public/assets/js/lang/sl.js +5 -0
  79. data/lib/tehranjs/web/views/public/assets/js/lang/sq.js +5 -0
  80. data/lib/tehranjs/web/views/public/assets/js/lang/sr-latn.js +5 -0
  81. data/lib/tehranjs/web/views/public/assets/js/lang/sr.js +5 -0
  82. data/lib/tehranjs/web/views/public/assets/js/lang/sv.js +5 -0
  83. data/lib/tehranjs/web/views/public/assets/js/lang/th.js +5 -0
  84. data/lib/tehranjs/web/views/public/assets/js/lang/tr.js +5 -0
  85. data/lib/tehranjs/web/views/public/assets/js/lang/tt.js +5 -0
  86. data/lib/tehranjs/web/views/public/assets/js/lang/ug.js +5 -0
  87. data/lib/tehranjs/web/views/public/assets/js/lang/uk.js +5 -0
  88. data/lib/tehranjs/web/views/public/assets/js/lang/vi.js +5 -0
  89. data/lib/tehranjs/web/views/public/assets/js/lang/zh-cn.js +5 -0
  90. data/lib/tehranjs/web/views/public/assets/js/lang/zh.js +5 -0
  91. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
  92. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
  93. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/af.js +11 -0
  94. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ar.js +10 -0
  95. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/az.js +11 -0
  96. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/bg.js +10 -0
  97. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ca.js +12 -0
  98. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
  99. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
  100. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/da.js +11 -0
  101. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/de-ch.js +11 -0
  102. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/de.js +11 -0
  103. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/el.js +11 -0
  104. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/en-gb.js +10 -0
  105. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/en.js +10 -0
  106. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/eo.js +12 -0
  107. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/es.js +13 -0
  108. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/et.js +10 -0
  109. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
  110. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
  111. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/fi.js +11 -0
  112. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/fo.js +10 -0
  113. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/fr-ca.js +11 -0
  114. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
  115. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/gl.js +11 -0
  116. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/gu.js +10 -0
  117. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/he.js +10 -0
  118. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/hi.js +10 -0
  119. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
  120. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/hu.js +11 -0
  121. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/id.js +11 -0
  122. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/it.js +13 -0
  123. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
  124. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/km.js +10 -0
  125. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
  126. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
  127. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/lt.js +10 -0
  128. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/lv.js +11 -0
  129. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
  130. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/mn.js +10 -0
  131. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/nb.js +11 -0
  132. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
  133. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/no.js +11 -0
  134. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
  135. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
  136. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/pt-br.js +12 -0
  137. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
  138. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ro.js +11 -0
  139. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
  140. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/si.js +10 -0
  141. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
  142. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/sl.js +11 -0
  143. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
  144. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/sr-latn.js +10 -0
  145. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/sr.js +10 -0
  146. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
  147. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/th.js +10 -0
  148. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
  149. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
  150. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/ug.js +11 -0
  151. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
  152. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
  153. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
  154. data/lib/tehranjs/web/views/public/assets/js/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
  155. data/lib/tehranjs/web/views/public/assets/js/plugins/about/dialogs/about.js +8 -0
  156. data/lib/tehranjs/web/views/public/assets/js/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  157. data/lib/tehranjs/web/views/public/assets/js/plugins/about/dialogs/logo_ckeditor.png +0 -0
  158. data/lib/tehranjs/web/views/public/assets/js/plugins/clipboard/dialogs/paste.js +12 -0
  159. data/lib/tehranjs/web/views/public/assets/js/plugins/colordialog/dialogs/colordialog.css +20 -0
  160. data/lib/tehranjs/web/views/public/assets/js/plugins/colordialog/dialogs/colordialog.js +14 -0
  161. data/lib/tehranjs/web/views/public/assets/js/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
  162. data/lib/tehranjs/web/views/public/assets/js/plugins/copyformatting/cursors/cursor.svg +14 -0
  163. data/lib/tehranjs/web/views/public/assets/js/plugins/copyformatting/styles/copyformatting.css +45 -0
  164. data/lib/tehranjs/web/views/public/assets/js/plugins/dialog/dialogDefinition.js +4 -0
  165. data/lib/tehranjs/web/views/public/assets/js/plugins/div/dialogs/div.js +9 -0
  166. data/lib/tehranjs/web/views/public/assets/js/plugins/find/dialogs/find.js +25 -0
  167. data/lib/tehranjs/web/views/public/assets/js/plugins/flash/dialogs/flash.js +24 -0
  168. data/lib/tehranjs/web/views/public/assets/js/plugins/flash/images/placeholder.png +0 -0
  169. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/button.js +8 -0
  170. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/checkbox.js +9 -0
  171. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/form.js +8 -0
  172. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/hiddenfield.js +7 -0
  173. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/radio.js +9 -0
  174. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/select.js +20 -0
  175. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/textarea.js +8 -0
  176. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/dialogs/textfield.js +11 -0
  177. data/lib/tehranjs/web/views/public/assets/js/plugins/forms/images/hiddenfield.gif +0 -0
  178. data/lib/tehranjs/web/views/public/assets/js/plugins/icons.png +0 -0
  179. data/lib/tehranjs/web/views/public/assets/js/plugins/icons_hidpi.png +0 -0
  180. data/lib/tehranjs/web/views/public/assets/js/plugins/iframe/dialogs/iframe.js +10 -0
  181. data/lib/tehranjs/web/views/public/assets/js/plugins/iframe/images/placeholder.png +0 -0
  182. data/lib/tehranjs/web/views/public/assets/js/plugins/image/dialogs/image.js +44 -0
  183. data/lib/tehranjs/web/views/public/assets/js/plugins/image/images/noimage.png +0 -0
  184. data/lib/tehranjs/web/views/public/assets/js/plugins/link/dialogs/anchor.js +7 -0
  185. data/lib/tehranjs/web/views/public/assets/js/plugins/link/dialogs/link.js +28 -0
  186. data/lib/tehranjs/web/views/public/assets/js/plugins/link/images/anchor.png +0 -0
  187. data/lib/tehranjs/web/views/public/assets/js/plugins/link/images/hidpi/anchor.png +0 -0
  188. data/lib/tehranjs/web/views/public/assets/js/plugins/liststyle/dialogs/liststyle.js +10 -0
  189. data/lib/tehranjs/web/views/public/assets/js/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  190. data/lib/tehranjs/web/views/public/assets/js/plugins/magicline/images/hidpi/icon.png +0 -0
  191. data/lib/tehranjs/web/views/public/assets/js/plugins/magicline/images/icon-rtl.png +0 -0
  192. data/lib/tehranjs/web/views/public/assets/js/plugins/magicline/images/icon.png +0 -0
  193. data/lib/tehranjs/web/views/public/assets/js/plugins/pagebreak/images/pagebreak.gif +0 -0
  194. data/lib/tehranjs/web/views/public/assets/js/plugins/pastefromword/filter/default.js +43 -0
  195. data/lib/tehranjs/web/views/public/assets/js/plugins/preview/preview.html +13 -0
  196. data/lib/tehranjs/web/views/public/assets/js/plugins/scayt/CHANGELOG.md +20 -0
  197. data/lib/tehranjs/web/views/public/assets/js/plugins/scayt/LICENSE.md +28 -0
  198. data/lib/tehranjs/web/views/public/assets/js/plugins/scayt/README.md +25 -0
  199. data/lib/tehranjs/web/views/public/assets/js/plugins/scayt/dialogs/options.js +19 -0
  200. data/lib/tehranjs/web/views/public/assets/js/plugins/scayt/dialogs/toolbar.css +71 -0
  201. data/lib/tehranjs/web/views/public/assets/js/plugins/scayt/skins/moono-lisa/scayt.css +20 -0
  202. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_address.png +0 -0
  203. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_blockquote.png +0 -0
  204. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_div.png +0 -0
  205. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_h1.png +0 -0
  206. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_h2.png +0 -0
  207. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_h3.png +0 -0
  208. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_h4.png +0 -0
  209. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_h5.png +0 -0
  210. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_h6.png +0 -0
  211. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_p.png +0 -0
  212. data/lib/tehranjs/web/views/public/assets/js/plugins/showblocks/images/block_pre.png +0 -0
  213. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/dialogs/smiley.js +11 -0
  214. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/angel_smile.gif +0 -0
  215. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/angel_smile.png +0 -0
  216. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/angry_smile.gif +0 -0
  217. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/angry_smile.png +0 -0
  218. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/broken_heart.gif +0 -0
  219. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/broken_heart.png +0 -0
  220. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/confused_smile.gif +0 -0
  221. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/confused_smile.png +0 -0
  222. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/cry_smile.gif +0 -0
  223. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/cry_smile.png +0 -0
  224. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/devil_smile.gif +0 -0
  225. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/devil_smile.png +0 -0
  226. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/embaressed_smile.gif +0 -0
  227. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/embarrassed_smile.gif +0 -0
  228. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/embarrassed_smile.png +0 -0
  229. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/envelope.gif +0 -0
  230. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/envelope.png +0 -0
  231. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/heart.gif +0 -0
  232. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/heart.png +0 -0
  233. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/kiss.gif +0 -0
  234. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/kiss.png +0 -0
  235. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/lightbulb.gif +0 -0
  236. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/lightbulb.png +0 -0
  237. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/omg_smile.gif +0 -0
  238. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/omg_smile.png +0 -0
  239. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/regular_smile.gif +0 -0
  240. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/regular_smile.png +0 -0
  241. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/sad_smile.gif +0 -0
  242. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/sad_smile.png +0 -0
  243. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/shades_smile.gif +0 -0
  244. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/shades_smile.png +0 -0
  245. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/teeth_smile.gif +0 -0
  246. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/teeth_smile.png +0 -0
  247. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/thumbs_down.gif +0 -0
  248. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/thumbs_down.png +0 -0
  249. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/thumbs_up.gif +0 -0
  250. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/thumbs_up.png +0 -0
  251. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/tongue_smile.gif +0 -0
  252. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/tongue_smile.png +0 -0
  253. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/tounge_smile.gif +0 -0
  254. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  255. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  256. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/wink_smile.gif +0 -0
  257. data/lib/tehranjs/web/views/public/assets/js/plugins/smiley/images/wink_smile.png +0 -0
  258. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
  259. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/af.js +13 -0
  260. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ar.js +13 -0
  261. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/az.js +10 -0
  262. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/bg.js +13 -0
  263. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ca.js +14 -0
  264. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/cs.js +13 -0
  265. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/cy.js +14 -0
  266. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/da.js +11 -0
  267. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
  268. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/de.js +13 -0
  269. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/el.js +13 -0
  270. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
  271. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/en.js +13 -0
  272. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/eo.js +12 -0
  273. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/es.js +13 -0
  274. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/et.js +13 -0
  275. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/eu.js +13 -0
  276. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/fa.js +12 -0
  277. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/fi.js +13 -0
  278. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
  279. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/fr.js +12 -0
  280. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/gl.js +13 -0
  281. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/he.js +12 -0
  282. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/hr.js +13 -0
  283. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/hu.js +12 -0
  284. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/id.js +13 -0
  285. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/it.js +14 -0
  286. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ja.js +9 -0
  287. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/km.js +13 -0
  288. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ko.js +10 -0
  289. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ku.js +13 -0
  290. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/lt.js +13 -0
  291. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/lv.js +13 -0
  292. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/nb.js +11 -0
  293. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/nl.js +13 -0
  294. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/no.js +11 -0
  295. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/oc.js +12 -0
  296. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/pl.js +12 -0
  297. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  298. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/pt.js +13 -0
  299. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ru.js +13 -0
  300. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/si.js +13 -0
  301. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/sk.js +13 -0
  302. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/sl.js +12 -0
  303. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/sq.js +13 -0
  304. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/sv.js +11 -0
  305. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/th.js +13 -0
  306. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/tr.js +12 -0
  307. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/tt.js +13 -0
  308. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/ug.js +13 -0
  309. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/uk.js +12 -0
  310. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/vi.js +14 -0
  311. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  312. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/lang/zh.js +9 -0
  313. data/lib/tehranjs/web/views/public/assets/js/plugins/specialchar/dialogs/specialchar.js +14 -0
  314. data/lib/tehranjs/web/views/public/assets/js/plugins/table/dialogs/table.js +21 -0
  315. data/lib/tehranjs/web/views/public/assets/js/plugins/tabletools/dialogs/tableCell.js +17 -0
  316. data/lib/tehranjs/web/views/public/assets/js/plugins/templates/dialogs/templates.css +84 -0
  317. data/lib/tehranjs/web/views/public/assets/js/plugins/templates/dialogs/templates.js +10 -0
  318. data/lib/tehranjs/web/views/public/assets/js/plugins/templates/templates/default.js +7 -0
  319. data/lib/tehranjs/web/views/public/assets/js/plugins/templates/templates/images/template1.gif +0 -0
  320. data/lib/tehranjs/web/views/public/assets/js/plugins/templates/templates/images/template2.gif +0 -0
  321. data/lib/tehranjs/web/views/public/assets/js/plugins/templates/templates/images/template3.gif +0 -0
  322. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/LICENSE.md +28 -0
  323. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/README.md +25 -0
  324. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/dialogs/ciframe.html +66 -0
  325. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  326. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/dialogs/wsc.css +82 -0
  327. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/dialogs/wsc.js +92 -0
  328. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/dialogs/wsc_ie.js +11 -0
  329. data/lib/tehranjs/web/views/public/assets/js/plugins/wsc/skins/moono-lisa/wsc.css +43 -0
  330. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/dialog.css +5 -0
  331. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/dialog_ie.css +5 -0
  332. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/dialog_ie8.css +5 -0
  333. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/dialog_iequirks.css +5 -0
  334. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/editor.css +5 -0
  335. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/editor_gecko.css +5 -0
  336. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/editor_ie.css +5 -0
  337. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/editor_ie8.css +5 -0
  338. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/editor_iequirks.css +5 -0
  339. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/icons.png +0 -0
  340. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/icons_hidpi.png +0 -0
  341. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/arrow.png +0 -0
  342. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/close.png +0 -0
  343. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/hidpi/close.png +0 -0
  344. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  345. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/hidpi/lock.png +0 -0
  346. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  347. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/lock-open.png +0 -0
  348. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/lock.png +0 -0
  349. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/refresh.png +0 -0
  350. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/images/spinner.gif +0 -0
  351. data/lib/tehranjs/web/views/public/assets/js/skins/moono-lisa/readme.md +46 -0
  352. data/lib/tehranjs/web/views/public/assets/js/styles.js +137 -0
  353. data/tehranjs.gemspec +0 -1
  354. metadata +343 -19
  355. data/.ruby-version +0 -1
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+ (function(){function v(a){for(var f=0,n=0,l=0,p,e=a.$.rows.length;l<e;l++){p=a.$.rows[l];for(var d=f=0,b,c=p.cells.length;d<c;d++)b=p.cells[d],f+=b.colSpan;f>n&&(n=f)}return n}function r(a){return function(){var f=this.getValue(),f=!!(CKEDITOR.dialog.validate.integer()(f)&&0<f);f||(alert(a),this.select());return f}}function q(a,f){var n=function(e){return new CKEDITOR.dom.element(e,a.document)},q=a.editable(),p=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?
6
+ 310:280,onLoad:function(){var e=this,a=e.getContentElement("advanced","advStyles");if(a)a.on("change",function(){var a=this.getStyle("width",""),c=e.getContentElement("info","txtWidth");c&&c.setValue(a,!0);a=this.getStyle("height","");(c=e.getContentElement("info","txtHeight"))&&c.setValue(a,!0)})},onShow:function(){var e=a.getSelection(),d=e.getRanges(),b,c=this.getContentElement("info","txtRows"),g=this.getContentElement("info","txtCols"),t=this.getContentElement("info","txtWidth"),m=this.getContentElement("info",
7
+ "txtHeight");"tableProperties"==f&&((e=e.getSelectedElement())&&e.is("table")?b=e:0<d.length&&(CKEDITOR.env.webkit&&d[0].shrink(CKEDITOR.NODE_ELEMENT),b=a.elementPath(d[0].getCommonAncestor(!0)).contains("table",1)),this._.selectedElement=b);b?(this.setupContent(b),c&&c.disable(),g&&g.disable()):(c&&c.enable(),g&&g.enable());t&&t.onChange();m&&m.onChange()},onOk:function(){var e=a.getSelection(),d=this._.selectedElement&&e.createBookmarks(),b=this._.selectedElement||n("table"),c={};this.commitContent(c,
8
+ b);if(c.info){c=c.info;if(!this._.selectedElement)for(var g=b.append(n("tbody")),f=parseInt(c.txtRows,10)||0,m=parseInt(c.txtCols,10)||0,k=0;k<f;k++)for(var h=g.append(n("tr")),l=0;l<m;l++)h.append(n("td")).appendBogus();f=c.selHeaders;if(!b.$.tHead&&("row"==f||"both"==f)){h=b.getElementsByTag("thead").getItem(0);g=b.getElementsByTag("tbody").getItem(0);m=g.getElementsByTag("tr").getItem(0);h||(h=new CKEDITOR.dom.element("thead"),h.insertBefore(g));for(k=0;k<m.getChildCount();k++)g=m.getChild(k),
9
+ g.type!=CKEDITOR.NODE_ELEMENT||g.data("cke-bookmark")||(g.renameNode("th"),g.setAttribute("scope","col"));h.append(m.remove())}if(null!==b.$.tHead&&"row"!=f&&"both"!=f){h=new CKEDITOR.dom.element(b.$.tHead);g=b.getElementsByTag("tbody").getItem(0);for(l=g.getFirst();0<h.getChildCount();){m=h.getFirst();for(k=0;k<m.getChildCount();k++)g=m.getChild(k),g.type==CKEDITOR.NODE_ELEMENT&&(g.renameNode("td"),g.removeAttribute("scope"));m.insertBefore(l)}h.remove()}if(!this.hasColumnHeaders&&("col"==f||"both"==
10
+ f))for(h=0;h<b.$.rows.length;h++)g=new CKEDITOR.dom.element(b.$.rows[h].cells[0]),g.renameNode("th"),g.setAttribute("scope","row");if(this.hasColumnHeaders&&"col"!=f&&"both"!=f)for(k=0;k<b.$.rows.length;k++)h=new CKEDITOR.dom.element(b.$.rows[k]),"tbody"==h.getParent().getName()&&(g=new CKEDITOR.dom.element(h.$.cells[0]),g.renameNode("td"),g.removeAttribute("scope"));c.txtHeight?b.setStyle("height",c.txtHeight):b.removeStyle("height");c.txtWidth?b.setStyle("width",c.txtWidth):b.removeStyle("width");
11
+ b.getAttribute("style")||b.removeAttribute("style")}if(this._.selectedElement)try{e.selectBookmarks(d)}catch(p){}else a.insertElement(b),setTimeout(function(){var e=new CKEDITOR.dom.element(b.$.rows[0].cells[0]),c=a.createRange();c.moveToPosition(e,CKEDITOR.POSITION_AFTER_START);c.select()},0)},contents:[{id:"info",label:a.lang.table.title,elements:[{type:"hbox",widths:[null,null],styles:["vertical-align:top"],children:[{type:"vbox",padding:0,children:[{type:"text",id:"txtRows","default":3,label:a.lang.table.rows,
12
+ required:!0,controlStyle:"width:5em",validate:r(a.lang.table.invalidRows),setup:function(e){this.setValue(e.$.rows.length)},commit:l},{type:"text",id:"txtCols","default":2,label:a.lang.table.columns,required:!0,controlStyle:"width:5em",validate:r(a.lang.table.invalidCols),setup:function(e){this.setValue(v(e))},commit:l},{type:"html",html:"\x26nbsp;"},{type:"select",id:"selHeaders",requiredContent:"th","default":"",label:a.lang.table.headers,items:[[a.lang.table.headersNone,""],[a.lang.table.headersRow,
13
+ "row"],[a.lang.table.headersColumn,"col"],[a.lang.table.headersBoth,"both"]],setup:function(e){var a=this.getDialog();a.hasColumnHeaders=!0;for(var b=0;b<e.$.rows.length;b++){var c=e.$.rows[b].cells[0];if(c&&"th"!=c.nodeName.toLowerCase()){a.hasColumnHeaders=!1;break}}null!==e.$.tHead?this.setValue(a.hasColumnHeaders?"both":"row"):this.setValue(a.hasColumnHeaders?"col":"")},commit:l},{type:"text",id:"txtBorder",requiredContent:"table[border]","default":a.filter.check("table[border]")?1:0,label:a.lang.table.border,
14
+ controlStyle:"width:3em",validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidBorder),setup:function(a){this.setValue(a.getAttribute("border")||"")},commit:function(a,d){this.getValue()?d.setAttribute("border",this.getValue()):d.removeAttribute("border")}},{id:"cmbAlign",type:"select",requiredContent:"table[align]","default":"",label:a.lang.common.align,items:[[a.lang.common.notSet,""],[a.lang.common.alignLeft,"left"],[a.lang.common.alignCenter,"center"],[a.lang.common.alignRight,"right"]],
15
+ setup:function(a){this.setValue(a.getAttribute("align")||"")},commit:function(a,d){this.getValue()?d.setAttribute("align",this.getValue()):d.removeAttribute("align")}}]},{type:"vbox",padding:0,children:[{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtWidth",requiredContent:"table{width}",controlStyle:"width:5em",label:a.lang.common.width,title:a.lang.common.cssLengthTooltip,"default":a.filter.check("table{width}")?500>q.getSize("width")?"100%":500:0,getValue:u,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",
16
+ a.lang.common.width)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles");a&&a.updateStyle("width",this.getValue())},setup:function(a){a=a.getStyle("width");this.setValue(a)},commit:l}]},{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtHeight",requiredContent:"table{height}",controlStyle:"width:5em",label:a.lang.common.height,title:a.lang.common.cssLengthTooltip,"default":"",getValue:u,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",
17
+ a.lang.common.height)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles");a&&a.updateStyle("height",this.getValue())},setup:function(a){(a=a.getStyle("height"))&&this.setValue(a)},commit:l}]},{type:"html",html:"\x26nbsp;"},{type:"text",id:"txtCellSpace",requiredContent:"table[cellspacing]",controlStyle:"width:3em",label:a.lang.table.cellSpace,"default":a.filter.check("table[cellspacing]")?1:0,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellSpacing),
18
+ setup:function(a){this.setValue(a.getAttribute("cellSpacing")||"")},commit:function(a,d){this.getValue()?d.setAttribute("cellSpacing",this.getValue()):d.removeAttribute("cellSpacing")}},{type:"text",id:"txtCellPad",requiredContent:"table[cellpadding]",controlStyle:"width:3em",label:a.lang.table.cellPad,"default":a.filter.check("table[cellpadding]")?1:0,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellPadding),setup:function(a){this.setValue(a.getAttribute("cellPadding")||"")},commit:function(a,
19
+ d){this.getValue()?d.setAttribute("cellPadding",this.getValue()):d.removeAttribute("cellPadding")}}]}]},{type:"html",align:"right",html:""},{type:"vbox",padding:0,children:[{type:"text",id:"txtCaption",requiredContent:"caption",label:a.lang.table.caption,setup:function(a){this.enable();a=a.getElementsByTag("caption");if(0<a.count()){a=a.getItem(0);var d=a.getFirst(CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT));d&&!d.equals(a.getBogus())?(this.disable(),this.setValue(a.getText())):(a=CKEDITOR.tools.trim(a.getText()),
20
+ this.setValue(a))}},commit:function(e,d){if(this.isEnabled()){var b=this.getValue(),c=d.getElementsByTag("caption");if(b)0<c.count()?(c=c.getItem(0),c.setHtml("")):(c=new CKEDITOR.dom.element("caption",a.document),d.append(c,!0)),c.append(new CKEDITOR.dom.text(b,a.document));else if(0<c.count())for(b=c.count()-1;0<=b;b--)c.getItem(b).remove()}}},{type:"text",id:"txtSummary",bidi:!0,requiredContent:"table[summary]",label:a.lang.table.summary,setup:function(a){this.setValue(a.getAttribute("summary")||
21
+ "")},commit:function(a,d){this.getValue()?d.setAttribute("summary",this.getValue()):d.removeAttribute("summary")}}]}]},p&&p.createAdvancedTab(a,null,"table")]}}var u=CKEDITOR.tools.cssLength,l=function(a){var f=this.id;a.info||(a.info={});a.info[f]=this.getValue()};CKEDITOR.dialog.add("table",function(a){return q(a,"table")});CKEDITOR.dialog.add("tableProperties",function(a){return q(a,"tableProperties")})})();
@@ -0,0 +1,17 @@
1
+ /*
2
+ Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.dialog.add("cellProperties",function(g){function d(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 l(a){if(a=n.exec(a.getStyle("width")||a.getAttribute("width")))return a[2]}var h=g.lang.table,c=h.cell,e=g.lang.common,k=CKEDITOR.dialog.validate,n=/^(\d+(?:\.\d+)?)(px|%)$/,f={type:"html",html:"\x26nbsp;"},p="rtl"==
6
+ g.lang.dir,m=g.plugins.colordialog;return{title:c.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?450:410,minHeight:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?230:220,contents:[{id:"info",label:c.title,accessKey:"I",elements:[{type:"hbox",widths:["40%","5%","40%"],children:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["70%","30%"],children:[{type:"text",id:"width",width:"100px",label:e.width,validate:k.number(c.invalidWidth),onLoad:function(){var a=this.getDialog().getContentElement("info",
7
+ "widthType").getElement(),b=this.getInputElement(),c=b.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",[c,a.$.id].join(" "))},setup:d(function(a){var b=parseInt(a.getAttribute("width"),10);a=parseInt(a.getStyle("width"),10);return isNaN(a)?isNaN(b)?"":b:a}),commit:function(a){var b=parseInt(this.getValue(),10),c=this.getDialog().getValueOf("info","widthType")||l(a);isNaN(b)?a.removeStyle("width"):a.setStyle("width",b+c);a.removeAttribute("width")},"default":""},{type:"select",id:"widthType",
8
+ label:g.lang.table.widthUnit,labelStyle:"visibility:hidden","default":"px",items:[[h.widthPx,"px"],[h.widthPc,"%"]],setup:d(l)}]},{type:"hbox",widths:["70%","30%"],children:[{type:"text",id:"height",label:e.height,width:"100px","default":"",validate:k.number(c.invalidHeight),onLoad:function(){var a=this.getDialog().getContentElement("info","htmlHeightType").getElement(),b=this.getInputElement(),c=b.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",[c,a.$.id].join(" "))},setup:d(function(a){var b=
9
+ parseInt(a.getAttribute("height"),10);a=parseInt(a.getStyle("height"),10);return isNaN(a)?isNaN(b)?"":b:a}),commit:function(a){var b=parseInt(this.getValue(),10);isNaN(b)?a.removeStyle("height"):a.setStyle("height",CKEDITOR.tools.cssLength(b));a.removeAttribute("height")}},{id:"htmlHeightType",type:"html",html:"\x3cbr /\x3e"+h.widthPx}]},f,{type:"select",id:"wordWrap",label:c.wordWrap,"default":"yes",items:[[c.yes,"yes"],[c.no,"no"]],setup:d(function(a){var b=a.getAttribute("noWrap");if("nowrap"==
10
+ 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")}},f,{type:"select",id:"hAlign",label:c.hAlign,"default":"",items:[[e.notSet,""],[e.alignLeft,"left"],[e.alignCenter,"center"],[e.alignRight,"right"],[e.alignJustify,"justify"]],setup:d(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",
11
+ b):a.removeStyle("text-align");a.removeAttribute("align")}},{type:"select",id:"vAlign",label:c.vAlign,"default":"",items:[[e.notSet,""],[e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[c.alignBaseline,"baseline"]],setup:d(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");
12
+ a.removeAttribute("vAlign")}}]},f,{type:"vbox",padding:0,children:[{type:"select",id:"cellType",label:c.cellType,"default":"td",items:[[c.data,"td"],[c.header,"th"]],setup:d(function(a){return a.getName()}),commit:function(a){a.renameNode(this.getValue())}},f,{type:"text",id:"rowSpan",label:c.rowSpan,"default":"",validate:k.integer(c.invalidRowSpan),setup:d(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",
13
+ this.getValue()):a.removeAttribute("rowSpan")}},{type:"text",id:"colSpan",label:c.colSpan,"default":"",validate:k.integer(c.invalidColSpan),setup:d(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")}},f,{type:"hbox",padding:0,widths:["60%","40%"],children:[{type:"text",id:"bgColor",label:c.bgColor,"default":"",setup:d(function(a){var b=a.getAttribute("bgColor");
14
+ return a.getStyle("background-color")||b}),commit:function(a){this.getValue()?a.setStyle("background-color",this.getValue()):a.removeStyle("background-color");a.removeAttribute("bgColor")}},m?{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&&this.getDialog().getContentElement("info","bgColor").setValue(a);this.focus()},this)}}:f]},f,
15
+ {type:"hbox",padding:0,widths:["60%","40%"],children:[{type:"text",id:"borderColor",label:c.borderColor,"default":"",setup:d(function(a){var b=a.getAttribute("borderColor");return a.getStyle("border-color")||b}),commit:function(a){this.getValue()?a.setStyle("border-color",this.getValue()):a.removeStyle("border-color");a.removeAttribute("borderColor")}},m?{type:"button",id:"borderColorChoose","class":"colorChooser",label:c.chooseColor,style:(p?"margin-right":"margin-left")+": 10px",onLoad:function(){this.getElement().getParent().setStyle("vertical-align",
16
+ "bottom")},onClick:function(){g.getColorFromDialog(function(a){a&&this.getDialog().getContentElement("info","borderColor").setValue(a);this.focus()},this)}}:f]}]}]}]}],onShow:function(){this.cells=CKEDITOR.plugins.tabletools.getSelectedCells(this._.editor.getSelection());this.setupContent(this.cells)},onOk:function(){for(var a=this._.editor.getSelection(),b=a.createBookmarks(),c=this.cells,d=0;d<c.length;d++)this.commitContent(c[d]);this._.editor.forceNextSelectionCheck();a.selectBookmarks(b);this._.editor.selectionChange()},
17
+ 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]!==b.getValue()&&c.apply(this,arguments)}}))})}}});
@@ -0,0 +1,84 @@
1
+ /*
2
+ Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ .cke_tpl_list
7
+ {
8
+ border: #dcdcdc 2px solid;
9
+ background-color: #ffffff;
10
+ overflow-y: auto;
11
+ overflow-x: hidden;
12
+ width: 100%;
13
+ height: 220px;
14
+ }
15
+
16
+ .cke_tpl_item
17
+ {
18
+ margin: 5px;
19
+ padding: 7px;
20
+ border: #eeeeee 1px solid;
21
+ *width: 88%;
22
+ }
23
+
24
+ .cke_tpl_preview
25
+ {
26
+ border-collapse: separate;
27
+ text-indent:0;
28
+ width: 100%;
29
+ }
30
+ .cke_tpl_preview td
31
+ {
32
+ padding: 2px;
33
+ vertical-align: middle;
34
+ }
35
+ .cke_tpl_preview .cke_tpl_preview_img
36
+ {
37
+ width: 100px;
38
+ }
39
+ .cke_tpl_preview span
40
+ {
41
+ white-space: normal;
42
+ }
43
+
44
+ .cke_tpl_title
45
+ {
46
+ font-weight: bold;
47
+ }
48
+
49
+ .cke_tpl_list a:hover .cke_tpl_item,
50
+ .cke_tpl_list a:focus .cke_tpl_item,
51
+ .cke_tpl_list a:active .cke_tpl_item
52
+ {
53
+ border: #ff9933 1px solid;
54
+ background-color: #fffacd;
55
+ }
56
+
57
+ .cke_tpl_list a:hover *,
58
+ .cke_tpl_list a:focus *,
59
+ .cke_tpl_list a:active *
60
+ {
61
+ cursor: pointer;
62
+ }
63
+
64
+ /* IE Quirks contextual selectors children will not get :hover transition until
65
+ the hover style of the link itself contains certain CSS declarations. */
66
+ .cke_browser_quirks .cke_tpl_list a:active,
67
+ .cke_browser_quirks .cke_tpl_list a:hover,
68
+ .cke_browser_quirks .cke_tpl_list a:focus
69
+ {
70
+ background-position: 0 0;
71
+ }
72
+
73
+ .cke_hc .cke_tpl_list a:hover .cke_tpl_item,
74
+ .cke_hc .cke_tpl_list a:focus .cke_tpl_item,
75
+ .cke_hc .cke_tpl_list a:active .cke_tpl_item
76
+ {
77
+ border-width: 3px;
78
+ }
79
+
80
+ .cke_tpl_empty, .cke_tpl_loading
81
+ {
82
+ text-align: center;
83
+ padding: 5px;
84
+ }
@@ -0,0 +1,10 @@
1
+ /*
2
+ Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
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"':
6
+ "")+' alt\x3d"" title\x3d""\x3e\x3c/td\x3e');d+='\x3ctd style\x3d"white-space:normal;"\x3e\x3cspan class\x3d"cke_tpl_title"\x3e'+a.title+"\x3c/span\x3e\x3cbr/\x3e";a.description&&(d+="\x3cspan\x3e"+a.description+"\x3c/span\x3e");d+="\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e";m.getFirst().setHtml(d);m.on("click",function(){t(a.html)});return m}function t(a){var b=CKEDITOR.dialog.getCurrent();b.getValueOf("selectTpl","chkInsertOpt")?(c.fire("saveSnapshot"),c.setData(a,function(){b.hide();var a=c.createRange();
7
+ a.moveToElementEditStart(c.editable());a.select();setTimeout(function(){c.fire("saveSnapshot")},0)})):(c.insertHtml(a),b.hide())}function k(a){var b=a.data.getTarget(),c=g.equals(b);if(c||g.contains(b)){var d=a.data.getKeystroke(),f=g.getElementsByTag("a"),e;if(f){if(c)e=f.getItem(0);else switch(d){case 40:e=b.getNext();break;case 38:e=b.getPrevious();break;case 13:case 32:b.fire("click")}e&&(e.focus(),a.data.preventDefault())}}}var h=CKEDITOR.plugins.get("templates");CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl(h.path+
8
+ "dialogs/templates.css"));var g,h="cke_tpl_list_label_"+CKEDITOR.tools.getNextNumber(),f=c.lang.templates,n=c.config;return{title:c.lang.templates.title,minWidth:CKEDITOR.env.ie?440:400,minHeight:340,contents:[{id:"selectTpl",label:f.title,elements:[{type:"vbox",padding:5,children:[{id:"selectTplText",type:"html",html:"\x3cspan\x3e"+f.selectPromptMsg+"\x3c/span\x3e"},{id:"templatesList",type:"html",focus:!0,html:'\x3cdiv class\x3d"cke_tpl_list" tabIndex\x3d"-1" role\x3d"listbox" aria-labelledby\x3d"'+
9
+ h+'"\x3e\x3cdiv class\x3d"cke_tpl_loading"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cspan class\x3d"cke_voice_label" id\x3d"'+h+'"\x3e'+f.options+"\x3c/span\x3e"},{id:"chkInsertOpt",type:"checkbox",label:f.insertOption,"default":n.templates_replaceContent}]}]}],buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var a=this.getContentElement("selectTpl","templatesList");g=a.getElement();CKEDITOR.loadTemplates(n.templates_files,function(){var b=(n.templates||"default").split(",");
10
+ if(b.length){var c=g;c.setHtml("");for(var d=0,h=b.length;d<h;d++)for(var e=CKEDITOR.getTemplates(b[d]),k=e.imagesPath,e=e.templates,q=e.length,l=0;l<q;l++){var p=r(e[l],k);p.setAttribute("aria-posinset",l+1);p.setAttribute("aria-setsize",q);c.append(p)}a.focus()}else g.setHtml('\x3cdiv class\x3d"cke_tpl_empty"\x3e\x3cspan\x3e'+f.emptyListMsg+"\x3c/span\x3e\x3c/div\x3e")});this._.element.on("keydown",k)},onHide:function(){this._.element.removeListener("keydown",k)}}})})();
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
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.",
6
+ html:'\x3ctable cellspacing\x3d"0" cellpadding\x3d"0" style\x3d"width:100%" border\x3d"0"\x3e\x3ctr\x3e\x3ctd style\x3d"width:50%"\x3e\x3ch3\x3eTitle 1\x3c/h3\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd style\x3d"width:50%"\x3e\x3ch3\x3eTitle 2\x3c/h3\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3eText 1\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3eText 2\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cp\x3eMore text goes here.\x3c/p\x3e'},{title:"Text and Table",image:"template3.gif",description:"A title with some text and a table.",
7
+ html:'\x3cdiv style\x3d"width: 80%"\x3e\x3ch3\x3eTitle goes here\x3c/h3\x3e\x3ctable style\x3d"width:150px;float: right" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"1"\x3e\x3ccaption style\x3d"border:solid 1px black"\x3e\x3cstrong\x3eTable title\x3c/strong\x3e\x3c/caption\x3e\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cp\x3eType the text here\x3c/p\x3e\x3c/div\x3e'}]});
@@ -0,0 +1,28 @@
1
+ Software License Agreement
2
+ ==========================
3
+
4
+ **CKEditor WSC Plugin**
5
+ Copyright &copy; 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved.
6
+
7
+ Licensed under the terms of any of the following licenses at your choice:
8
+
9
+ * GNU General Public License Version 2 or later (the "GPL"):
10
+ http://www.gnu.org/licenses/gpl.html
11
+
12
+ * GNU Lesser General Public License Version 2.1 or later (the "LGPL"):
13
+ http://www.gnu.org/licenses/lgpl.html
14
+
15
+ * Mozilla Public License Version 1.1 or later (the "MPL"):
16
+ http://www.mozilla.org/MPL/MPL-1.1.html
17
+
18
+ You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice.
19
+
20
+ Sources of Intellectual Property Included in this plugin
21
+ --------------------------------------------------------
22
+
23
+ Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission.
24
+
25
+ Trademarks
26
+ ----------
27
+
28
+ CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
@@ -0,0 +1,25 @@
1
+ CKEditor WebSpellChecker Plugin
2
+ ===============================
3
+
4
+ This plugin brings Web Spell Checker (WSC) into CKEditor.
5
+
6
+ WSC is "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution.
7
+
8
+ Installation
9
+ ------------
10
+
11
+ 1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation.
12
+ 2. Enable the "wsc" plugin in the CKEditor configuration file (config.js):
13
+
14
+ config.extraPlugins = 'wsc';
15
+
16
+ That's all. WSC will appear on the editor toolbar and will be ready to use.
17
+
18
+ License
19
+ -------
20
+
21
+ Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html).
22
+
23
+ See LICENSE.md for more information.
24
+
25
+ Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/).
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <!--
3
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.html or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <title></title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
+ <script type="text/javascript">
11
+
12
+ function gup( name )
13
+ {
14
+ name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
15
+ var regexS = '[\\?&]' + name + '=([^&#]*)' ;
16
+ var regex = new RegExp( regexS ) ;
17
+ var results = regex.exec( window.location.href ) ;
18
+
19
+ if ( results )
20
+ return results[ 1 ] ;
21
+ else
22
+ return '' ;
23
+ }
24
+
25
+ var interval;
26
+
27
+ function sendData2Master()
28
+ {
29
+ var destination = window.parent.parent ;
30
+ try
31
+ {
32
+ if ( destination.XDTMaster )
33
+ {
34
+ var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
35
+ window.clearInterval( interval ) ;
36
+ }
37
+ }
38
+ catch (e) {}
39
+ }
40
+
41
+ function OnMessage (event) {
42
+ var message = event.data;
43
+ var destination = window.parent.parent;
44
+ destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ;
45
+ }
46
+
47
+ function listenPostMessage() {
48
+ if (window.addEventListener) { // all browsers except IE before version 9
49
+ window.addEventListener ("message", OnMessage, false);
50
+ }else {
51
+ if (window.attachEvent) { // IE before version 9
52
+ window.attachEvent("onmessage", OnMessage);
53
+ }
54
+ }
55
+ }
56
+
57
+ function onLoad()
58
+ {
59
+ interval = window.setInterval( sendData2Master, 100 );
60
+ listenPostMessage();
61
+ }
62
+
63
+ </script>
64
+ </head>
65
+ <body onload="onLoad()"><p></p></body>
66
+ </html>
@@ -0,0 +1,52 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
2
+ <!--
3
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.html or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <title></title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
+ <script type="text/javascript">
11
+
12
+ function doLoadScript( url )
13
+ {
14
+ if ( !url )
15
+ return false ;
16
+
17
+ var s = document.createElement( "script" ) ;
18
+ s.type = "text/javascript" ;
19
+ s.src = url ;
20
+ document.getElementsByTagName( "head" )[ 0 ].appendChild( s ) ;
21
+
22
+ return true ;
23
+ }
24
+
25
+ var opener;
26
+ function tryLoad()
27
+ {
28
+ opener = window.parent;
29
+
30
+ // get access to global parameters
31
+ var oParams = window.opener.oldFramesetPageParams;
32
+
33
+ // make frameset rows string prepare
34
+ var sFramesetRows = ( parseInt( oParams.firstframeh, 10 ) || '30') + ",*," + ( parseInt( oParams.thirdframeh, 10 ) || '150' ) + ',0' ;
35
+ document.getElementById( 'itFrameset' ).rows = sFramesetRows ;
36
+
37
+ // dynamic including init frames and crossdomain transport code
38
+ // from config sproxy_js_frameset url
39
+ var addScriptUrl = oParams.sproxy_js_frameset ;
40
+ doLoadScript( addScriptUrl ) ;
41
+ }
42
+
43
+ </script>
44
+ </head>
45
+
46
+ <frameset id="itFrameset" onload="tryLoad();" border="0" rows="30,*,*,0">
47
+ <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="2" src="" name="navbar"></frame>
48
+ <frame scrolling="auto" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="0" src="" name="mid"></frame>
49
+ <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="bot"></frame>
50
+ <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="spellsuggestall"></frame>
51
+ </frameset>
52
+ </html>
@@ -0,0 +1,82 @@
1
+ /*
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ html, body
7
+ {
8
+ background-color: transparent;
9
+ margin: 0px;
10
+ padding: 0px;
11
+ }
12
+
13
+ body
14
+ {
15
+ padding: 10px;
16
+ }
17
+
18
+ body, td, input, select, textarea
19
+ {
20
+ font-size: 11px;
21
+ font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana;
22
+ }
23
+
24
+ .midtext
25
+ {
26
+ padding:0px;
27
+ margin:10px;
28
+ }
29
+
30
+ .midtext p
31
+ {
32
+ padding:0px;
33
+ margin:10px;
34
+ }
35
+
36
+ .Button
37
+ {
38
+ border: #737357 1px solid;
39
+ color: #3b3b1f;
40
+ background-color: #c7c78f;
41
+ }
42
+
43
+ .PopupTabArea
44
+ {
45
+ color: #737357;
46
+ background-color: #e3e3c7;
47
+ }
48
+
49
+ .PopupTitleBorder
50
+ {
51
+ border-bottom: #d5d59d 1px solid;
52
+ }
53
+ .PopupTabEmptyArea
54
+ {
55
+ padding-left: 10px;
56
+ border-bottom: #d5d59d 1px solid;
57
+ }
58
+
59
+ .PopupTab, .PopupTabSelected
60
+ {
61
+ border-right: #d5d59d 1px solid;
62
+ border-top: #d5d59d 1px solid;
63
+ border-left: #d5d59d 1px solid;
64
+ padding: 3px 5px 3px 5px;
65
+ color: #737357;
66
+ }
67
+
68
+ .PopupTab
69
+ {
70
+ margin-top: 1px;
71
+ border-bottom: #d5d59d 1px solid;
72
+ cursor: pointer;
73
+ }
74
+
75
+ .PopupTabSelected
76
+ {
77
+ font-weight: bold;
78
+ cursor: default;
79
+ padding-top: 4px;
80
+ border-bottom: #f1f1e3 1px solid;
81
+ background-color: #f1f1e3;
82
+ }
@@ -0,0 +1,92 @@
1
+ /*
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ (function(){function z(a){return a&&a.domId&&a.getInputElement().$?a.getInputElement():a&&a.$?a:!1}function I(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],e="",d;for(d in a)for(var f in a[d]){var h=a[d][f];"en_US"==h?e=h:c.push(h)}c.sort();e&&c.unshift(e);return{getCurrentLangGroup:function(c){a:{for(var d in a)for(var e in a[d])if(e.toUpperCase()===c.toUpperCase()){c=d;break a}c=""}return c},setLangList:function(){var c={},d;for(d in a)for(var e in a[d])c[a[d][e]]=
6
+ e;return c}()}}var g=function(){var a=function(a,b,d){d=d||{};var f=d.expires;if("number"==typeof f&&f){var h=new Date;h.setTime(h.getTime()+1E3*f);f=d.expires=h}f&&f.toUTCString&&(d.expires=f.toUTCString());b=encodeURIComponent(b);a=a+"\x3d"+b;for(var k in d)b=d[k],a+="; "+k,!0!==b&&(a+="\x3d"+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString,
7
+ d=a.fn||null,f=a.id||"",h=a.target||window,k=a.message||{id:f};a.message&&"[object Object]"==b.call(a.message)&&(a.message.id?a.message.id:a.message.id=f,k=a.message);a=window.JSON.stringify(k,d);h.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
8
+ "\\$1")+"\x3d([^;]*)")))?decodeURIComponent(a[1]):void 0},remove:function(c){a(c,"",{expires:-1})}},misc:{findFocusable:function(a){var b=null;a&&(b=a.find("a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]"));return b},isVisible:function(a){var b;(b=0===a.offsetWidth||0==a.offsetHeight)||(b="none"===(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null).display:a.currentStyle?a.currentStyle.display:a.style.display));
9
+ return!b},hasClass:function(a,b){return!(!a.className||!a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)")))}}}}(),a=a||{};a.TextAreaNumber=null;a.load=!0;a.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"};a.dialog=null;a.optionNode=null;a.selectNode=null;a.grammerSuggest=null;a.textNode={};a.iframeMain=null;a.dataTemp="";a.div_overlay=null;a.textNodeInfo={};a.selectNode={};a.selectNodeResponce={};a.langList=null;a.langSelectbox=null;a.banner="";a.show_grammar=null;a.div_overlay_no_check=
10
+ null;a.targetFromFrame={};a.onLoadOverlay=null;a.LocalizationComing={};a.OverlayPlace=null;a.sessionid="";a.LocalizationButton={ChangeTo_button:{instance:null,text:"Change to",localizationID:"ChangeTo"},ChangeAll:{instance:null,text:"Change All"},IgnoreWord:{instance:null,text:"Ignore word"},IgnoreAllWords:{instance:null,text:"Ignore all words"},Options:{instance:null,text:"Options",optionsDialog:{instance:null}},AddWord:{instance:null,text:"Add word"},FinishChecking_button:{instance:null,text:"Finish Checking",
11
+ localizationID:"FinishChecking"},FinishChecking_button_block:{instance:null,text:"Finish Checking",localizationID:"FinishChecking"}};a.LocalizationLabel={ChangeTo_label:{instance:null,text:"Change to",localizationID:"ChangeTo"},Suggestions:{instance:null,text:"Suggestions"},Categories:{instance:null,text:"Categories"},Synonyms:{instance:null,text:"Synonyms"}};var J=function(b){var c,e,d;for(d in b)c=(c=a.dialog.getContentElement(a.dialog._.currentTabId,d))?c.getElement():b[d].instance.getElement().getFirst()||
12
+ b[d].instance.getElement(),e=b[d].localizationID||d,c.setText(a.LocalizationComing[e])},K=function(b){var c,e,d;for(d in b)c=a.dialog.getContentElement(a.dialog._.currentTabId,d),c||(c=b[d].instance),c.setLabel&&(e=b[d].localizationID||d,c.setLabel(a.LocalizationComing[e]+":"))},r,A;a.framesetHtml=function(b){return"\x3ciframe id\x3d"+a.iframeNumber+"_"+b+' frameborder\x3d"0" allowtransparency\x3d"1" style\x3d"width:100%;border: 1px solid #AEB3B9;overflow: auto;background:#fff; border-radius: 3px;"\x3e\x3c/iframe\x3e'};
13
+ a.setIframe=function(b,c){var e;e=a.framesetHtml(c);var d=a.iframeNumber+"_"+c;b.getElement().setHtml(e);e=document.getElementById(d);e=e.contentWindow?e.contentWindow:e.contentDocument.document?e.contentDocument.document:e.contentDocument;e.document.open();e.document.write('\x3c!DOCTYPE html\x3e\x3chtml\x3e\x3chead\x3e\x3cmeta charset\x3d"UTF-8"\x3e\x3ctitle\x3eiframe\x3c/title\x3e\x3cstyle\x3ehtml,body{margin: 0;height: 100%;font: 13px/1.555 "Trebuchet MS", sans-serif;}a{color: #888;font-weight: bold;text-decoration: none;border-bottom: 1px solid #888;}.main-box {color:#252525;padding: 3px 5px;text-align: justify;}.main-box p{margin: 0 0 14px;}.main-box .cerr{color: #f00000;border-bottom-color: #f00000;}\x3c/style\x3e\x3c/head\x3e\x3cbody\x3e\x3cdiv id\x3d"content" class\x3d"main-box"\x3e\x3c/div\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"spelltext" name\x3d"spelltext" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadsuggestfirst" name\x3d"loadsuggestfirst" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadspellsuggestall" name\x3d"loadspellsuggestall" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadOptionsForm" name\x3d"loadOptionsForm" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3cscript\x3e(function(window) {var ManagerPostMessage \x3d function() {var _init \x3d function(handler) {if (document.addEventListener) {window.addEventListener("message", handler, false);} else {window.attachEvent("onmessage", handler);};};var _sendCmd \x3d function(o) {var str,type \x3d Object.prototype.toString,fn \x3d o.fn || null,id \x3d o.id || "",target \x3d o.target || window,message \x3d o.message || { "id": id };if (o.message \x26\x26 type.call(o.message) \x3d\x3d "[object Object]") {(o.message["id"]) ? o.message["id"] : o.message["id"] \x3d id;message \x3d o.message;};str \x3d JSON.stringify(message, fn);target.postMessage(str, "*");};return {init: _init,send: _sendCmd};};var manageMessageTmp \x3d new ManagerPostMessage;var appString \x3d (function(){var spell \x3d parent.CKEDITOR.config.wsc.DefaultParams.scriptPath;var serverUrl \x3d parent.CKEDITOR.config.wsc.DefaultParams.serviceHost;return serverUrl + spell;})();function loadScript(src, callback) {var scriptTag \x3d document.createElement("script");scriptTag.type \x3d "text/javascript";callback ? callback : callback \x3d function() {};if(scriptTag.readyState) {scriptTag.onreadystatechange \x3d function() {if (scriptTag.readyState \x3d\x3d "loaded" ||scriptTag.readyState \x3d\x3d "complete") {scriptTag.onreadystatechange \x3d null;setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();}};}else{scriptTag.onload \x3d function() {setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();};};scriptTag.src \x3d src;document.getElementsByTagName("head")[0].appendChild(scriptTag);};window.onload \x3d function(){loadScript(appString, function(){manageMessageTmp.send({"id": "iframeOnload","target": window.parent});});}})(this);\x3c/script\x3e\x3c/body\x3e\x3c/html\x3e');
14
+ e.document.close()};a.setCurrentIframe=function(b){a.setIframe(a.dialog._.contents[b].Content,b)};a.setHeightBannerFrame=function(){var b=a.dialog.getContentElement("SpellTab","banner").getElement(),c=a.dialog.getContentElement("GrammTab","banner").getElement(),e=a.dialog.getContentElement("Thesaurus","banner").getElement();b.setStyle("height","90px");c.setStyle("height","90px");e.setStyle("height","90px")};a.setHeightFrame=function(){document.getElementById(a.iframeNumber+"_"+a.dialog._.currentTabId).style.height=
15
+ "240px"};a.sendData=function(b){var c=b._.currentTabId,e=b._.contents[c].Content,d,f;a.previousTab=c;a.setIframe(e,c);var h=function(h){c=b._.currentTabId;h=h||window.event;h.data.getTarget().is("a")&&c!==a.previousTab&&(a.previousTab=c,e=b._.contents[c].Content,d=a.iframeNumber+"_"+c,a.div_overlay.setEnable(),e.getElement().getChildCount()?E(a.targetFromFrame[d],a.cmd[c]):(a.setIframe(e,c),f=document.getElementById(d),a.targetFromFrame[d]=f.contentWindow))};b.parts.tabs.removeListener("click",h);
16
+ b.parts.tabs.on("click",h)};a.buildSelectLang=function(a){var c=new CKEDITOR.dom.element("div"),e=new CKEDITOR.dom.element("select");a="wscLang"+a;c.addClass("cke_dialog_ui_input_select");c.setAttribute("role","presentation");c.setStyles({height:"auto",position:"absolute",right:"0",top:"-1px",width:"160px","white-space":"normal"});e.setAttribute("id",a);e.addClass("cke_dialog_ui_input_select");e.setStyles({width:"160px"});c.append(e);return c};a.buildOptionLang=function(b,c){var e=document.getElementById("wscLang"+
17
+ c),d=document.createDocumentFragment(),f,h,k=[];if(0===e.options.length){for(f in b)k.push([f,b[f]]);k.sort();for(var p=0;p<k.length;p++)f=document.createElement("option"),f.setAttribute("value",k[p][1]),h=document.createTextNode(k[p][0]),f.appendChild(h),d.appendChild(f);e.appendChild(d)}for(d=0;d<e.options.length;d++)e.options[d].value==a.selectingLang&&(e.options[d].selected="selected")};a.buildOptionSynonyms=function(b){b=a.selectNodeResponce[b];var c=z(a.selectNode.Synonyms);a.selectNode.Synonyms.clear();
18
+ for(var e=0;e<b.length;e++){var d=document.createElement("option");d.text=b[e];d.value=b[e];c.$.add(d,e)}a.selectNode.Synonyms.getInputElement().$.firstChild.selected=!0;a.textNode.Thesaurus.setValue(a.selectNode.Synonyms.getInputElement().getValue())};var B=function(a){var c=document,e=a.target||c.body,d=a.id||"overlayBlock",f=a.opacity||"0.9";a=a.background||"#f1f1f1";var h=c.getElementById(d),k=h||c.createElement("div");k.style.cssText="position: absolute;top:30px;bottom:41px;left:1px;right:1px;z-index: 10020;padding:0;margin:0;background:"+
19
+ a+";opacity: "+f+";filter: alpha(opacity\x3d"+100*f+");display: none;";k.id=d;h||e.appendChild(k);return{setDisable:function(){k.style.display="none"},setEnable:function(){k.style.display="block"}}},L=function(b,c,e){var d=new CKEDITOR.dom.element("div"),f=new CKEDITOR.dom.element("input"),h=new CKEDITOR.dom.element("label"),k="wscGrammerSuggest"+b+"_"+c;d.addClass("cke_dialog_ui_input_radio");d.setAttribute("role","presentation");d.setStyles({width:"97%",padding:"5px","white-space":"normal"});f.setAttributes({type:"radio",
20
+ value:c,name:"wscGrammerSuggest",id:k});f.setStyles({"float":"left"});f.on("click",function(b){a.textNode.GrammTab.setValue(b.sender.getValue())});e?f.setAttribute("checked",!0):!1;f.addClass("cke_dialog_ui_radio_input");h.appendText(b);h.setAttribute("for",k);h.setStyles({display:"block","line-height":"16px","margin-left":"18px","white-space":"normal"});d.append(f);d.append(h);return d},F=function(a){a=a||"true";null!==a&&"false"==a&&t()},w=function(b){var c=new I(b);b="wscLang"+a.dialog.getParentEditor().name;
21
+ b=document.getElementById(b);var e=a.iframeNumber+"_"+a.dialog._.currentTabId;a.buildOptionLang(c.setLangList,a.dialog.getParentEditor().name);u[c.getCurrentLangGroup(a.selectingLang)].onShow();F(a.show_grammar);b.onchange=function(b){b=c.getCurrentLangGroup(this.value);var f=a.dialog._.currentTabId;u[b].onShow();F(a.show_grammar);a.div_overlay.setEnable();a.selectingLang=this.value;f=a.cmd[f];b&&u[b]&&u[b].allowedTabCommands[f]||(f=u[b].defaultTabCommand);for(var h in a.cmd)if(a.cmd[h]==f){a.previousTab=
22
+ h;break}g.postMessage.send({message:{changeLang:a.selectingLang,interfaceLang:a.interfaceLang,text:a.dataTemp,cmd:f},target:a.targetFromFrame[e],id:"selectionLang_outer__page"})}},M=function(b){var c,e=function(b){b=a.dialog.getContentElement(a.dialog._.currentTabId,b)||a.LocalizationButton[b].instance;b.getElement().hasClass("cke_disabled")?b.getElement().setStyle("color","#a0a0a0"):b.disable()};c=function(b){b=a.dialog.getContentElement(a.dialog._.currentTabId,b)||a.LocalizationButton[b].instance;
23
+ b.enable();b.getElement().setStyle("color","#333")};"no_any_suggestions"==b?(b="No suggestions",c=a.dialog.getContentElement(a.dialog._.currentTabId,"ChangeTo_button")||a.LocalizationButton.ChangeTo_button.instance,c.disable(),c=a.dialog.getContentElement(a.dialog._.currentTabId,"ChangeAll")||a.LocalizationButton.ChangeAll.instance,c.disable(),e("ChangeTo_button"),e("ChangeAll")):(c("ChangeTo_button"),c("ChangeAll"));return b},O={iframeOnload:function(b){a.div_overlay.setEnable();b=a.dialog._.currentTabId;
24
+ E(a.targetFromFrame[a.iframeNumber+"_"+b],a.cmd[b])},suggestlist:function(b){delete b.id;a.div_overlay_no_check.setDisable();C();w(a.langList);var c=M(b.word),e="";c instanceof Array&&(c=b.word[0]);e=c=c.split(",");a.textNode.SpellTab.setValue(e[0]);b=z(A);A.clear();for(c=0;c<e.length;c++){var d=document.createElement("option");d.text=e[c];d.value=e[c];b.$.add(d,c)}v();a.div_overlay.setDisable()},grammerSuggest:function(b){delete b.id;delete b.mocklangs;C();w(a.langList);var c=b.grammSuggest[0];a.grammerSuggest.getElement().setHtml("");
25
+ a.textNode.GrammTab.reset();a.textNode.GrammTab.setValue(c);a.textNodeInfo.GrammTab.getElement().setHtml("");a.textNodeInfo.GrammTab.getElement().setText(b.info);b=b.grammSuggest;for(var c=b.length,e=!0,d=0;d<c;d++)a.grammerSuggest.getElement().append(L(b[d],b[d],e)),e=!1;v();a.div_overlay.setDisable()},thesaurusSuggest:function(b){delete b.id;delete b.mocklangs;C();w(a.langList);a.selectNodeResponce=b;a.textNode.Thesaurus.reset();var c=z(a.selectNode.Categories),e=0;a.selectNode.Categories.clear();
26
+ for(var d in b)b=document.createElement("option"),b.text=d,b.value=d,c.$.add(b,e),e++;c=a.selectNode.Categories.getInputElement().getChildren().$[0].value;a.selectNode.Categories.getInputElement().getChildren().$[0].selected=!0;a.buildOptionSynonyms(c);v();a.div_overlay.setDisable()},finish:function(b){delete b.id;N();b=a.dialog.getContentElement(a.dialog._.currentTabId,"BlockFinishChecking").getElement();b.removeStyle("display");b.removeStyle("position");b.removeStyle("left");b.show();a.div_overlay.setDisable()},
27
+ settext:function(b){delete b.id;a.dialog.getParentEditor().getCommand("checkspell");var c=a.dialog.getParentEditor();if(c.scayt&&c.wsc.isSsrvSame){var e=c.wsc.udn;e?c.wsc.DataStorage.setData("scayt_user_dictionary_name",e):c.wsc.DataStorage.setData("scayt_user_dictionary_name","")}try{c.focus()}catch(d){}c.setData(b.text,function(){a.dataTemp="";c.unlockSelection();c.fire("saveSnapshot");a.dialog.hide()})},ReplaceText:function(b){delete b.id;a.div_overlay.setEnable();a.dataTemp=b.text;a.selectingLang=
28
+ b.currentLang;(b.cmd="0"!==b.len&&b.len)?a.div_overlay.setDisable():window.setTimeout(function(){try{a.div_overlay.setDisable()}catch(b){}},500);J(a.LocalizationButton);K(a.LocalizationLabel)},options_checkbox_send:function(b){delete b.id;b={osp:g.cookie.get("osp"),udn:g.cookie.get("udn"),cust_dic_ids:a.cust_dic_ids};g.postMessage.send({message:b,target:a.targetFromFrame[a.iframeNumber+"_"+a.dialog._.currentTabId],id:"options_outer__page"})},getOptions:function(b){var c=b.DefOptions.udn;a.LocalizationComing=
29
+ b.DefOptions.localizationButtonsAndText;a.show_grammar=b.show_grammar;a.langList=b.lang;a.bnr=b.bannerId;a.sessionid=b.sessionid;if(b.bannerId){a.setHeightBannerFrame();var e=b.banner;a.dialog.getContentElement(a.dialog._.currentTabId,"banner").getElement().setHtml(e)}else a.setHeightFrame();"undefined"==c&&(a.userDictionaryName?(c=a.userDictionaryName,e={osp:g.cookie.get("osp"),udn:a.userDictionaryName,cust_dic_ids:a.cust_dic_ids,id:"options_dic_send",udnCmd:"create"},g.postMessage.send({message:e,
30
+ target:a.targetFromFrame[void 0]})):c="");g.cookie.set("osp",b.DefOptions.osp);g.cookie.set("udn",c);g.cookie.set("cust_dic_ids",b.DefOptions.cust_dic_ids);g.postMessage.send({id:"giveOptions"})},options_dic_send:function(b){b={osp:g.cookie.get("osp"),udn:g.cookie.get("udn"),cust_dic_ids:a.cust_dic_ids,id:"options_dic_send",udnCmd:g.cookie.get("udnCmd")};g.postMessage.send({message:b,target:a.targetFromFrame[a.iframeNumber+"_"+a.dialog._.currentTabId]})},data:function(a){delete a.id},giveOptions:function(){},
31
+ setOptionsConfirmF:function(){},setOptionsConfirmT:function(){r.setValue("")},clickBusy:function(){a.div_overlay.setEnable()},suggestAllCame:function(){a.div_overlay.setDisable();a.div_overlay_no_check.setDisable()},TextCorrect:function(){w(a.langList)}},G=function(a){a=a||window.event;if((a=window.JSON.parse(a.data))&&a.id)O[a.id](a)},E=function(b,c,e,d){c=c||CKEDITOR.config.wsc_cmd;e=e||a.dataTemp;g.postMessage.send({message:{customerId:a.wsc_customerId,text:e,txt_ctrl:a.TextAreaNumber,cmd:c,cust_dic_ids:a.cust_dic_ids,
32
+ udn:a.userDictionaryName,slang:a.selectingLang,interfaceLang:a.interfaceLang,reset_suggest:d||!1,sessionid:a.sessionid},target:b,id:"data_outer__page"});a.div_overlay.setEnable()},u={superset:{onShow:function(){a.dialog.showPage("Thesaurus");a.dialog.showPage("GrammTab");l()},allowedTabCommands:{spell:!0,grammar:!0,thes:!0},defaultTabCommand:"spell"},usual:{onShow:function(){x();t();l()},allowedTabCommands:{spell:!0},defaultTabCommand:"spell"},rtl:{onShow:function(){x();t();l()},allowedTabCommands:{spell:!0},
33
+ defaultTabCommand:"spell"},spellgrammar:{onShow:function(){x();a.dialog.showPage("GrammTab");l()},allowedTabCommands:{spell:!0,grammar:!0},defaultTabCommand:"spell"},spellthes:{onShow:function(){a.dialog.showPage("Thesaurus");t();l()},allowedTabCommands:{spell:!0,thes:!0},defaultTabCommand:"spell"}},H=function(b){var c=(new function(a){var b={};return{getCmdByTab:function(c){for(var h in a)b[a[h]]=h;return b[c]}}}(a.cmd)).getCmdByTab(CKEDITOR.config.wsc_cmd);b.selectPage(c);a.sendData(b)},x=function(){a.dialog.hidePage("Thesaurus")},
34
+ t=function(){a.dialog.hidePage("GrammTab")},l=function(){a.dialog.showPage("SpellTab")},v=function(){var b=a.dialog.getContentElement(a.dialog._.currentTabId,"bottomGroup").getElement();b.removeStyle("display");b.removeStyle("position");b.removeStyle("left");b.show()},N=function(){var b=a.dialog.getContentElement(a.dialog._.currentTabId,"bottomGroup").getElement(),c=document.activeElement,e;b.setStyles({display:"block",position:"absolute",left:"-9999px"});setTimeout(function(){b.removeStyle("display");
35
+ b.removeStyle("position");b.removeStyle("left");b.hide();a.dialog._.editor.focusManager.currentActive.focusNext();e=g.misc.findFocusable(a.dialog.parts.contents);if(g.misc.hasClass(c,"cke_dialog_tab")||g.misc.hasClass(c,"cke_dialog_contents_body")||!g.misc.isVisible(c))for(var d=0,f;d<e.count();d++){if(f=e.getItem(d),g.misc.isVisible(f.$)){try{f.$.focus()}catch(h){}break}}else try{c.focus()}catch(k){}},0)},C=function(){var b=a.dialog.getContentElement(a.dialog._.currentTabId,"BlockFinishChecking").getElement(),
36
+ c=document.activeElement,e;b.setStyles({display:"block",position:"absolute",left:"-9999px"});setTimeout(function(){b.removeStyle("display");b.removeStyle("position");b.removeStyle("left");b.hide();a.dialog._.editor.focusManager.currentActive.focusNext();e=g.misc.findFocusable(a.dialog.parts.contents);if(g.misc.hasClass(c,"cke_dialog_tab")||g.misc.hasClass(c,"cke_dialog_contents_body")||!g.misc.isVisible(c))for(var d=0,f;d<e.count();d++){if(f=e.getItem(d),g.misc.isVisible(f.$)){try{f.$.focus()}catch(h){}break}}else try{c.focus()}catch(k){}},
37
+ 0)};CKEDITOR.dialog.add("checkspell",function(b){function c(a){var c=parseInt(b.config.wsc_left,10),d=parseInt(b.config.wsc_top,10),e=parseInt(b.config.wsc_width,10),g=parseInt(b.config.wsc_height,10),m=CKEDITOR.document.getWindow().getViewPaneSize();a.getPosition();var n=a.getSize(),q=0;if(!a._.resized){var q=n.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks)),D=n.width-a.parts.contents.getSize("width",1);if(e<f.minWidth||isNaN(e))e=
38
+ f.minWidth;e>m.width-D&&(e=m.width-D);if(g<f.minHeight||isNaN(g))g=f.minHeight;g>m.height-q&&(g=m.height-q);n.width=e+D;n.height=g+q;a._.fromResizeEvent=!1;a.resize(e,g);setTimeout(function(){a._.fromResizeEvent=!1;CKEDITOR.dialog.fire("resize",{dialog:a,width:e,height:g},b)},300)}a._.moved||(q=isNaN(c)&&isNaN(d)?0:1,isNaN(c)&&(c=(m.width-n.width)/2),0>c&&(c=0),c>m.width-n.width&&(c=m.width-n.width),isNaN(d)&&(d=(m.height-n.height)/2),0>d&&(d=0),d>m.height-n.height&&(d=m.height-n.height),a.move(c,
39
+ d,q))}function e(){b.wsc={};(function(a){var b={separator:"\x3c$\x3e",getDataType:function(a){return"undefined"===typeof a?"undefined":null===a?"null":Object.prototype.toString.call(a).slice(8,-1)},convertDataToString:function(a){return this.getDataType(a).toLowerCase()+this.separator+a},restoreDataFromString:function(a){var b=a,c;a=this.backCompatibility(a);if("string"===typeof a)switch(b=a.indexOf(this.separator),c=a.substring(0,b),b=a.substring(b+this.separator.length),c){case "boolean":b="true"===
40
+ b;break;case "number":b=parseFloat(b);break;case "array":b=""===b?[]:b.split(",");break;case "null":b=null;break;case "undefined":b=void 0}return b},backCompatibility:function(a){var b=a,c;"string"===typeof a&&(c=a.indexOf(this.separator),0>c&&(b=parseFloat(a),isNaN(b)&&("["===a[0]&&"]"===a[a.length-1]?(a=a.replace("[",""),a=a.replace("]",""),b=""===a?[]:a.split(",")):b="true"===a||"false"===a?"true"===a:a),b=this.convertDataToString(b)));return b}},c={get:function(a){return b.restoreDataFromString(window.localStorage.getItem(a))},
41
+ set:function(a,c){var d=b.convertDataToString(c);window.localStorage.setItem(a,d)},del:function(a){window.localStorage.removeItem(a)},clear:function(){window.localStorage.clear()}},d={expiration:31622400,get:function(a){return b.restoreDataFromString(this.getCookie(a))},set:function(a,c){var d=b.convertDataToString(c);this.setCookie(a,d,{expires:this.expiration})},del:function(a){this.deleteCookie(a)},getCookie:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
42
+ "\\$1")+"\x3d([^;]*)")))?decodeURIComponent(a[1]):void 0},setCookie:function(a,b,c){c=c||{};var d=c.expires;if("number"===typeof d&&d){var e=new Date;e.setTime(e.getTime()+1E3*d);d=c.expires=e}d&&d.toUTCString&&(c.expires=d.toUTCString());b=encodeURIComponent(b);a=a+"\x3d"+b;for(var h in c)b=c[h],a+="; "+h,!0!==b&&(a+="\x3d"+b);document.cookie=a},deleteCookie:function(a){this.setCookie(a,null,{expires:-1})},clear:function(){for(var a=document.cookie.split(";"),b=0;b<a.length;b++){var c=a[b],d=c.indexOf("\x3d"),
43
+ c=-1<d?c.substr(0,d):c;this.deleteCookie(c)}}},e=window.localStorage?c:d;a.DataStorage={getData:function(a){return e.get(a)},setData:function(a,b){e.set(a,b)},deleteData:function(a){e.del(a)},clear:function(){e.clear()}}})(b.wsc);b.wsc.operationWithUDN=function(b,c){g.postMessage.send({message:{udn:c,id:"operationWithUDN",udnCmd:b},target:a.targetFromFrame[a.iframeNumber+"_"+a.dialog._.currentTabId]})};b.wsc.getLocalStorageUDN=function(){var a=b.wsc.DataStorage.getData("scayt_user_dictionary_name");
44
+ if(a)return a};b.wsc.getLocalStorageUD=function(){var a=b.wsc.DataStorage.getData("scayt_user_dictionary");if(a)return a};b.wsc.addWords=function(a,c){var d=b.config.wsc.DefaultParams.serviceHost+b.config.wsc.DefaultParams.ssrvHost+"?cmd\x3ddictionary\x26format\x3djson\x26customerid\x3d1%3AncttD3-fIoSf2-huzwE4-Y5muI2-mD0Tt-kG9Wz-UEDFC-tYu243-1Uq474-d9Z2l3\x26action\x3daddword\x26word\x3d"+a+"\x26callback\x3dtoString\x26synchronization\x3dtrue",e=document.createElement("script");e.type="text/javascript";
45
+ e.src=d;document.getElementsByTagName("head")[0].appendChild(e);e.onload=c;e.onreadystatechange=function(){"loaded"===this.readyState&&c()}};b.wsc.cgiOrigin=function(){var a=b.config.wsc.DefaultParams.serviceHost.split("/");return a[0]+"//"+a[2]};b.wsc.isSsrvSame=!1}var d=function(c){this.getElement().focus();a.div_overlay.setEnable();c=a.dialog._.currentTabId;var d=a.iframeNumber+"_"+c,e=a.textNode[c].getValue(),f=this.getElement().getAttribute("title-cmd");g.postMessage.send({message:{cmd:f,tabId:c,
46
+ new_word:e},target:a.targetFromFrame[d],id:"cmd_outer__page"});"ChangeTo"!=f&&"ChangeAll"!=f||b.fire("saveSnapshot");"FinishChecking"==f&&b.config.wsc_onFinish.call(CKEDITOR.document.getWindow().getFrame())},f={minWidth:560,minHeight:444};return{title:b.config.wsc_dialogTitle||b.lang.wsc.title,minWidth:f.minWidth,minHeight:f.minHeight,buttons:[CKEDITOR.dialog.cancelButton],onLoad:function(){a.dialog=this;x();t();l();b.plugins.scayt&&e()},onShow:function(){a.dialog=this;b.lockSelection(b.getSelection());
47
+ a.TextAreaNumber="cke_textarea_"+b.name;g.postMessage.init(G);a.dataTemp=b.getData();a.OverlayPlace=a.dialog.parts.tabs.getParent().$;if(CKEDITOR&&CKEDITOR.config){a.wsc_customerId=b.config.wsc_customerId;a.cust_dic_ids=b.config.wsc_customDictionaryIds;a.userDictionaryName=b.config.wsc_userDictionaryName;a.defaultLanguage=CKEDITOR.config.defaultLanguage;var d="file:"==document.location.protocol?"http:":document.location.protocol,d=b.config.wsc_customLoaderScript||d+"//loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin\x3dfck2\x26customerid\x3d"+
48
+ a.wsc_customerId+"\x26cmd\x3dscript\x26doc\x3dwsc\x26schema\x3d22";c(this);CKEDITOR.scriptLoader.load(d,function(c){CKEDITOR.config&&CKEDITOR.config.wsc&&CKEDITOR.config.wsc.DefaultParams?(a.serverLocationHash=CKEDITOR.config.wsc.DefaultParams.serviceHost,a.logotype=CKEDITOR.config.wsc.DefaultParams.logoPath,a.loadIcon=CKEDITOR.config.wsc.DefaultParams.iconPath,a.loadIconEmptyEditor=CKEDITOR.config.wsc.DefaultParams.iconPathEmptyEditor,a.LangComparer=new CKEDITOR.config.wsc.DefaultParams._SP_FCK_LangCompare):
49
+ (a.serverLocationHash=DefaultParams.serviceHost,a.logotype=DefaultParams.logoPath,a.loadIcon=DefaultParams.iconPath,a.loadIconEmptyEditor=DefaultParams.iconPathEmptyEditor,a.LangComparer=new _SP_FCK_LangCompare);a.pluginPath=CKEDITOR.getUrl(b.plugins.wsc.path);a.iframeNumber=a.TextAreaNumber;a.templatePath=a.pluginPath+"dialogs/tmp.html";a.LangComparer.setDefaulLangCode(a.defaultLanguage);a.currentLang=b.config.wsc_lang||a.LangComparer.getSPLangCode(b.langCode)||"en_US";a.interfaceLang=b.config.wsc_interfaceLang;
50
+ a.selectingLang=a.currentLang;a.div_overlay=new B({opacity:"1",background:"#fff url("+a.loadIcon+") no-repeat 50% 50%",target:a.OverlayPlace});var d=a.dialog.parts.tabs.getId(),d=CKEDITOR.document.getById(d);d.setStyle("width","97%");d.getElementsByTag("DIV").count()||d.append(a.buildSelectLang(a.dialog.getParentEditor().name));a.div_overlay_no_check=new B({opacity:"1",id:"no_check_over",background:"#fff url("+a.loadIconEmptyEditor+") no-repeat 50% 50%",target:a.OverlayPlace});c&&(H(a.dialog),a.dialog.setupContent(a.dialog));
51
+ b.plugins.scayt&&(b.wsc.isSsrvSame=function(){var a=CKEDITOR.config.wsc.DefaultParams.serviceHost.replace("lf/22/js/../../../","").split("//")[1],c=CKEDITOR.config.wsc.DefaultParams.ssrvHost,d=b.config.scayt_srcUrl,e,h,f,g,p;window.SCAYT&&window.SCAYT.CKSCAYT&&(f=SCAYT.CKSCAYT.prototype.basePath,f.split("//"),g=f.split("//")[1].split("/")[0],p=f.split(g+"/")[1].replace("/lf/scayt3/ckscayt/","")+"/script/ssrv.cgi");!d||f||b.config.scayt_servicePath||(d.split("//"),e=d.split("//")[1].split("/")[0],
52
+ h=d.split(e+"/")[1].replace("/lf/scayt3/ckscayt/ckscayt.js","")+"/script/ssrv.cgi");return"//"+a+c==="//"+(b.config.scayt_serviceHost||g||e)+"/"+(b.config.scayt_servicePath||p||h)}());if(window.SCAYT&&b.wsc&&b.wsc.isSsrvSame){var e=b.wsc.cgiOrigin();b.wsc.syncIsDone=!1;c=function(a){a.origin===e&&(a=JSON.parse(a.data),a.ud&&"undefined"!==a.ud?b.wsc.ud=a.ud:"undefined"===a.ud&&(b.wsc.ud=void 0),a.udn&&"undefined"!==a.udn?b.wsc.udn=a.udn:"undefined"===a.udn&&(b.wsc.udn=void 0),b.wsc.syncIsDone||(h(b.wsc.ud),
53
+ b.wsc.syncIsDone=!0))};var h=function(c){c=b.wsc.getLocalStorageUD();var d;c instanceof Array&&(d=c.toString());void 0!==d&&""!==d&&setTimeout(function(){b.wsc.addWords(d,function(){H(a.dialog);a.dialog.setupContent(a.dialog)})},400)};window.addEventListener?addEventListener("message",c,!1):window.attachEvent("onmessage",c);setTimeout(function(){var a=b.wsc.getLocalStorageUDN();void 0!==a&&b.wsc.operationWithUDN("restore",a)},500)}})}else a.dialog.hide()},onHide:function(){var c=CKEDITOR.plugins.scayt,
54
+ d=b.scayt;b.unlockSelection();c&&d&&c.state[b.name]&&d.setMarkupPaused(!1);a.dataTemp="";a.sessionid="";g.postMessage.unbindHandler(G);if(b.plugins.scayt&&b.wsc&&b.wsc.isSsrvSame){var c=b.wsc.udn,e=b.wsc.ud,f,l;b.scayt?(c?(b.wsc.DataStorage.setData("scayt_user_dictionary_name",c),b.scayt.restoreUserDictionary(c)):(b.wsc.DataStorage.setData("scayt_user_dictionary_name",""),b.scayt.removeUserDictionary()),e&&setTimeout(function(){f=e.split(",");for(l=0;l<f.length;l+=1)b.scayt.addWordToUserDictionary(f[l])},
55
+ 200),e||b.wsc.DataStorage.setData("scayt_user_dictionary",[])):(c?b.wsc.DataStorage.setData("scayt_user_dictionary_name",c):b.wsc.DataStorage.setData("scayt_user_dictionary_name",""),e&&(f=e.split(","),b.wsc.DataStorage.setData("scayt_user_dictionary",f)))}},contents:[{id:"SpellTab",label:"SpellChecker",accessKey:"S",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(b){b=a.iframeNumber+"_"+
56
+ b._.currentTabId;var c=document.getElementById(b);a.targetFromFrame[b]=c.contentWindow}},{type:"hbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",widths:["50%","50%"],className:"wsc-spelltab-bottom",children:[{type:"hbox",id:"leftCol",align:"left",width:"50%",children:[{type:"vbox",id:"rightCol1",widths:["50%","50%"],children:[{type:"text",id:"ChangeTo_label",label:a.LocalizationLabel.ChangeTo_label.text+":",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",width:"140px",
57
+ "default":"",onShow:function(){a.textNode.SpellTab=this;a.LocalizationLabel.ChangeTo_label.instance=this},onHide:function(){this.reset()}},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"text",id:"labelSuggestions",label:a.LocalizationLabel.Suggestions.text+":",onShow:function(){a.LocalizationLabel.Suggestions.instance=this;this.getInputElement().setStyles({display:"none"})}},{type:"html",id:"logo",html:'\x3cimg width\x3d"99" height\x3d"68" border\x3d"0" src\x3d"" title\x3d"WebSpellChecker.net" alt\x3d"WebSpellChecker.net" style\x3d"display: inline-block;"\x3e',
58
+ setup:function(b){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"left"})}}]},{type:"select",id:"list_of_suggestions",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 140px; height: auto;",items:[["loading..."]],onShow:function(){A=this},onChange:function(){a.textNode.SpellTab.setValue(this.getValue())}}]}]}]},{type:"hbox",id:"rightCol",align:"right",width:"50%",children:[{type:"vbox",id:"rightCol_col__left",widths:["50%","50%",
59
+ "50%","50%"],children:[{type:"button",id:"ChangeTo_button",label:a.LocalizationButton.ChangeTo_button.text,title:"Change to",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","ChangeTo");a.LocalizationButton.ChangeTo_button.instance=this},onClick:d},{type:"button",id:"ChangeAll",label:a.LocalizationButton.ChangeAll.text,title:"Change All",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.ChangeAll.instance=
60
+ this},onClick:d},{type:"button",id:"AddWord",label:a.LocalizationButton.AddWord.text,title:"Add word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.AddWord.instance=this},onClick:d},{type:"button",id:"FinishChecking_button",label:a.LocalizationButton.FinishChecking_button.text,title:"Finish Checking",style:"width: 100%;margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking");a.LocalizationButton.FinishChecking_button.instance=
61
+ this},onClick:d}]},{type:"vbox",id:"rightCol_col__right",widths:["50%","50%","50%"],children:[{type:"button",id:"IgnoreWord",label:a.LocalizationButton.IgnoreWord.text,title:"Ignore word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);a.LocalizationButton.IgnoreWord.instance=this},onClick:d},{type:"button",id:"IgnoreAllWords",label:a.LocalizationButton.IgnoreAllWords.text,title:"Ignore all words",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",
62
+ this.id);a.LocalizationButton.IgnoreAllWords.instance=this},onClick:d},{type:"button",id:"Options",label:a.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){a.LocalizationButton.Options.instance=this;"file:"==document.location.protocol&&this.disable()},onClick:function(){this.getElement().focus();"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):(y=document.activeElement,b.openDialog("options"))}}]}]}]},
63
+ {type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().setStyles({display:"block",position:"absolute",left:"-9999px"})},onHide:v,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",setup:function(){this.getChild()[0].getElement().$.src=a.logotype;this.getChild()[0].getElement().getParent().setStyles({"text-align":"center"})},children:[{type:"html",id:"logo",html:'\x3cimg width\x3d"99" height\x3d"68" border\x3d"0" src\x3d"" title\x3d"WebSpellChecker.net" alt\x3d"WebSpellChecker.net" style\x3d"display: inline-block;"\x3e'}]}]},
64
+ {type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"Option_button",label:a.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id);"file:"==document.location.protocol&&this.disable()},onClick:function(){this.getElement().focus();"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):
65
+ (y=document.activeElement,b.openDialog("options"))}},{type:"button",id:"FinishChecking_button_block",label:a.LocalizationButton.FinishChecking_button_block.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:d}]}]}]}]},{id:"GrammTab",label:"Grammar",accessKey:"G",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"Content",label:"GrammarContent",html:"",setup:function(){var b=
66
+ a.iframeNumber+"_"+a.dialog._.currentTabId,c=document.getElementById(b);a.targetFromFrame[b]=c.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",children:[{type:"hbox",id:"leftCol",widths:["66%","34%"],children:[{type:"vbox",children:[{type:"text",id:"text",label:"Change to:",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",inputStyle:"float: right; width: 200px;","default":"",onShow:function(){a.textNode.GrammTab=this},onHide:function(){this.reset()}},
67
+ {type:"html",id:"html_text",html:"\x3cdiv style\x3d'min-height: 17px; line-height: 17px; padding: 5px; text-align: left;background: #F1F1F1;color: #595959; white-space: normal!important;'\x3e\x3c/div\x3e",onShow:function(b){a.textNodeInfo.GrammTab=this}},{type:"html",id:"radio",html:"",onShow:function(){a.grammerSuggest=this}}]},{type:"vbox",children:[{type:"button",id:"ChangeTo_button",label:"Change to",title:"Change to",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",
68
+ "ChangeTo")},onClick:d},{type:"button",id:"IgnoreWord",label:"Ignore word",title:"Ignore word",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:d},{type:"button",id:"IgnoreAllWords",label:"Ignore Problem",title:"Ignore Problem",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:d},{type:"button",id:"FinishChecking_button",label:a.LocalizationButton.FinishChecking_button.text,
69
+ title:"Finish Checking",style:"width: 133px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:d}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().setStyles({display:"block",position:"absolute",left:"-9999px"})},onHide:v,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",
70
+ id:"logo",html:'\x3cimg width\x3d"99" height\x3d"68" border\x3d"0" src\x3d"" title\x3d"WebSpellChecker.net" alt\x3d"WebSpellChecker.net" style\x3d"display: inline-block;"\x3e',setup:function(){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking_button_block",label:a.LocalizationButton.FinishChecking_button_block.text,
71
+ title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:d}]}]}]}]},{id:"Thesaurus",label:"Thesaurus",accessKey:"T",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(){var b=a.iframeNumber+"_"+a.dialog._.currentTabId,c=document.getElementById(b);a.targetFromFrame[b]=c.contentWindow}},{type:"vbox",id:"bottomGroup",
72
+ style:"width:560px; margin: -10px auto; overflow: hidden;",children:[{type:"hbox",widths:["75%","25%"],children:[{type:"vbox",children:[{type:"hbox",widths:["65%","35%"],children:[{type:"text",id:"ChangeTo_label",label:a.LocalizationLabel.ChangeTo_label.text+":",labelLayout:"horizontal",inputStyle:"width: 160px;",labelStyle:"font: 12px/25px arial, sans-serif;","default":"",onShow:function(b){a.textNode.Thesaurus=this;a.LocalizationLabel.ChangeTo_label.instance=this},onHide:function(){this.reset()}},
73
+ {type:"button",id:"ChangeTo_button",label:a.LocalizationButton.ChangeTo_button.text,title:"Change to",style:"width: 121px; margin-top: 1px;",onLoad:function(){this.getElement().setAttribute("title-cmd","ChangeTo");a.LocalizationButton.ChangeTo_button.instance=this},onClick:d}]},{type:"hbox",children:[{type:"select",id:"Categories",label:a.LocalizationLabel.Categories.text+":",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){a.selectNode.Categories=
74
+ this;a.LocalizationLabel.Categories.instance=this},onChange:function(){a.buildOptionSynonyms(this.getValue())}},{type:"select",id:"Synonyms",label:a.LocalizationLabel.Synonyms.text+":",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){a.selectNode.Synonyms=this;a.textNode.Thesaurus.setValue(this.getValue());a.LocalizationLabel.Synonyms.instance=this},onChange:function(b){a.textNode.Thesaurus.setValue(this.getValue())}}]}]},
75
+ {type:"vbox",width:"120px",style:"margin-top:46px;",children:[{type:"html",id:"logotype",label:"WebSpellChecker.net",html:'\x3cimg width\x3d"99" height\x3d"68" border\x3d"0" src\x3d"" title\x3d"WebSpellChecker.net" alt\x3d"WebSpellChecker.net" style\x3d"display: inline-block;"\x3e',setup:function(){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}},{type:"button",id:"FinishChecking_button",label:a.LocalizationButton.FinishChecking_button.text,title:"Finish Checking",
76
+ style:"width: 100%; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:d}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().setStyles({display:"block",position:"absolute",left:"-9999px"})},children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'\x3cimg width\x3d"99" height\x3d"68" border\x3d"0" src\x3d"" title\x3d"WebSpellChecker.net" alt\x3d"WebSpellChecker.net" style\x3d"display: inline-block;"\x3e',
77
+ setup:function(){this.getElement().$.src=a.logotype;this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking_button_block",label:a.LocalizationButton.FinishChecking_button_block.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd","FinishChecking")},onClick:d}]}]}]}]}]}});var y=null;CKEDITOR.dialog.add("options",
78
+ function(b){var c=null,e={},d={},f=null,h=null;g.cookie.get("udn");g.cookie.get("osp");b=function(a){h=this.getElement().getAttribute("title-cmd");a=[];a[0]=d.IgnoreAllCapsWords;a[1]=d.IgnoreWordsNumbers;a[2]=d.IgnoreMixedCaseWords;a[3]=d.IgnoreDomainNames;a=a.toString().replace(/,/g,"");g.cookie.set("osp",a);g.cookie.set("udnCmd",h?h:"ignore");"delete"!=h&&(a="",""!==r.getValue()&&(a=r.getValue()),g.cookie.set("udn",a));g.postMessage.send({id:"options_dic_send"})};var k=function(){f.getElement().setHtml(a.LocalizationComing.error);
79
+ f.getElement().show()};return{title:a.LocalizationComing.Options,minWidth:430,minHeight:130,resizable:CKEDITOR.DIALOG_RESIZE_NONE,contents:[{id:"OptionsTab",label:"Options",accessKey:"O",elements:[{type:"hbox",id:"options_error",children:[{type:"html",style:"display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red",html:"\x3cdiv\x3e\x3c/div\x3e",onShow:function(){f=this}}]},{type:"vbox",id:"Options_content",children:[{type:"hbox",id:"Options_manager",widths:["52%",
80
+ "48%"],children:[{type:"fieldset",label:"Spell Checking Options",style:"border: none;margin-top: 13px;padding: 10px 0 10px 10px",onShow:function(){this.getInputElement().$.children[0].innerHTML=a.LocalizationComing.SpellCheckingOptions},children:[{type:"vbox",id:"Options_checkbox",children:[{type:"checkbox",id:"IgnoreAllCapsWords",label:"Ignore All-Caps Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",
81
+ "default":"",onClick:function(){d[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreWordsNumbers",label:"Ignore Words with Numbers",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreMixedCaseWords",label:"Ignore Mixed-Case Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",
82
+ style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreDomainNames",label:"Ignore Domain Names",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;","default":"",onClick:function(){d[this.id]=this.getValue()?1:0}}]}]},{type:"vbox",id:"Options_DictionaryName",children:[{type:"text",id:"DictionaryName",style:"margin-bottom: 10px",label:"Dictionary Name:",
83
+ labelLayout:"vertical",labelStyle:"font: 12px/25px arial, sans-serif;","default":"",onLoad:function(){r=this;var b=a.userDictionaryName?a.userDictionaryName:(g.cookie.get("udn"),this.getValue());this.setValue(b)},onShow:function(){r=this;var b=g.cookie.get("udn")?g.cookie.get("udn"):this.getValue();this.setValue(b);this.setLabel(a.LocalizationComing.DictionaryName)},onHide:function(){this.reset()}},{type:"hbox",id:"Options_buttons",children:[{type:"vbox",id:"Options_leftCol_col",widths:["50%","50%"],
84
+ children:[{type:"button",id:"create",label:"Create",title:"Create",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Create)},onClick:b},{type:"button",id:"restore",label:"Restore",title:"Restore",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Restore)},
85
+ onClick:b}]},{type:"vbox",id:"Options_rightCol_col",widths:["50%","50%"],children:[{type:"button",id:"rename",label:"Rename",title:"Rename",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||this.getElement()).setText(a.LocalizationComing.Rename)},onClick:b},{type:"button",id:"delete",label:"Remove",title:"Remove",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){(this.getElement().getFirst()||
86
+ this.getElement()).setText(a.LocalizationComing.Remove)},onClick:b}]}]}]}]},{type:"hbox",id:"Options_text",children:[{type:"html",style:"text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;",html:"\x3cdiv\x3e"+a.LocalizationComing.OptionsTextIntro+"\x3c/div\x3e",onShow:function(){this.getElement().setText(a.LocalizationComing.OptionsTextIntro)}}]}]}]}],buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton],onOk:function(){var a=[];a[0]=d.IgnoreAllCapsWords;
87
+ a[1]=d.IgnoreWordsNumbers;a[2]=d.IgnoreMixedCaseWords;a[3]=d.IgnoreDomainNames;a=a.toString().replace(/,/g,"");g.cookie.set("osp",a);g.postMessage.send({id:"options_checkbox_send"});f.getElement().hide();f.getElement().setHtml(" ")},onLoad:function(){c=this;e.IgnoreAllCapsWords=c.getContentElement("OptionsTab","IgnoreAllCapsWords");e.IgnoreWordsNumbers=c.getContentElement("OptionsTab","IgnoreWordsNumbers");e.IgnoreMixedCaseWords=c.getContentElement("OptionsTab","IgnoreMixedCaseWords");e.IgnoreDomainNames=
88
+ c.getContentElement("OptionsTab","IgnoreDomainNames")},onShow:function(){g.postMessage.init(k);var b=g.cookie.get("osp").split("");d.IgnoreAllCapsWords=b[0];d.IgnoreWordsNumbers=b[1];d.IgnoreMixedCaseWords=b[2];d.IgnoreDomainNames=b[3];parseInt(d.IgnoreAllCapsWords,10)?e.IgnoreAllCapsWords.setValue("checked",!1):e.IgnoreAllCapsWords.setValue("",!1);parseInt(d.IgnoreWordsNumbers,10)?e.IgnoreWordsNumbers.setValue("checked",!1):e.IgnoreWordsNumbers.setValue("",!1);parseInt(d.IgnoreMixedCaseWords,10)?
89
+ e.IgnoreMixedCaseWords.setValue("checked",!1):e.IgnoreMixedCaseWords.setValue("",!1);parseInt(d.IgnoreDomainNames,10)?e.IgnoreDomainNames.setValue("checked",!1):e.IgnoreDomainNames.setValue("",!1);d.IgnoreAllCapsWords=e.IgnoreAllCapsWords.getValue()?1:0;d.IgnoreWordsNumbers=e.IgnoreWordsNumbers.getValue()?1:0;d.IgnoreMixedCaseWords=e.IgnoreMixedCaseWords.getValue()?1:0;d.IgnoreDomainNames=e.IgnoreDomainNames.getValue()?1:0;e.IgnoreAllCapsWords.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreAllCapsWords;
90
+ e.IgnoreWordsNumbers.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreWordsWithNumbers;e.IgnoreMixedCaseWords.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreMixedCaseWords;e.IgnoreDomainNames.getElement().$.lastChild.innerHTML=a.LocalizationComing.IgnoreDomainNames},onHide:function(){g.postMessage.unbindHandler(k);if(y)try{y.focus()}catch(a){}}}});CKEDITOR.dialog.on("resize",function(b){b=b.data;var c=b.dialog,e=CKEDITOR.document.getById(a.iframeNumber+"_"+c._.currentTabId);
91
+ "checkspell"==c._.name&&(a.bnr?e&&e.setSize("height",b.height-310):e&&e.setSize("height",b.height-220),c._.fromResizeEvent&&!c._.resized&&(c._.resized=!0),c._.fromResizeEvent=!0)});CKEDITOR.on("dialogDefinition",function(b){if("checkspell"===b.data.name){var c=b.data.definition;a.onLoadOverlay=new B({opacity:"1",background:"#fff",target:c.dialog.parts.tabs.getParent().$});a.onLoadOverlay.setEnable();c.dialog.on("cancel",function(b){c.dialog.getParentEditor().config.wsc_onClose.call(this.document.getWindow().getFrame());
92
+ a.div_overlay.setDisable();a.onLoadOverlay.setDisable();return!1},this,null,-1)}})})();