inline_forms 0.9.17 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (712) hide show
  1. data/VERSION +1 -1
  2. data/app/helpers/form_elements/text_area.rb +4 -1
  3. data/inline_forms.gemspec +709 -2
  4. data/lib/otherstuff/Gemfile +58 -0
  5. data/lib/otherstuff/add_roles.sql +54 -0
  6. data/lib/otherstuff/database.yml +32 -0
  7. data/lib/otherstuff/diffie +2 -0
  8. data/lib/otherstuff/mk-ice-ts +26 -0
  9. data/lib/otherstuff/mk-new-app +24 -0
  10. data/lib/otherstuff/mkrole +7 -0
  11. data/lib/otherstuff/roles_users.sql +40 -0
  12. data/public/images/glass_plate.gif +0 -0
  13. data/public/images/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  14. data/public/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  15. data/public/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  16. data/public/images/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  17. data/public/images/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  18. data/public/images/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  19. data/public/images/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  20. data/public/images/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  21. data/public/images/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  22. data/public/images/ui-icons_3d3d3d_256x240.png +0 -0
  23. data/public/images/ui-icons_bd7b00_256x240.png +0 -0
  24. data/public/images/ui-icons_d19405_256x240.png +0 -0
  25. data/public/images/ui-icons_eb990f_256x240.png +0 -0
  26. data/public/images/ui-icons_ed9f26_256x240.png +0 -0
  27. data/public/images/ui-icons_fadc7a_256x240.png +0 -0
  28. data/public/images/ui-icons_ffe180_256x240.png +0 -0
  29. data/public/javascripts/application.js +2 -0
  30. data/public/javascripts/ckeditor/.htaccess +24 -0
  31. data/public/javascripts/ckeditor/CHANGES.html +1295 -0
  32. data/public/javascripts/ckeditor/INSTALL.html +92 -0
  33. data/public/javascripts/ckeditor/LICENSE.html +1334 -0
  34. data/public/javascripts/ckeditor/_samples/adobeair/application.xml +32 -0
  35. data/public/javascripts/ckeditor/_samples/adobeair/run.bat +9 -0
  36. data/public/javascripts/ckeditor/_samples/adobeair/run.sh +8 -0
  37. data/public/javascripts/ckeditor/_samples/adobeair/sample.html +45 -0
  38. data/public/javascripts/ckeditor/_samples/ajax.html +98 -0
  39. data/public/javascripts/ckeditor/_samples/api.html +192 -0
  40. data/public/javascripts/ckeditor/_samples/api_dialog.html +198 -0
  41. data/public/javascripts/ckeditor/_samples/api_dialog/my_dialog.js +28 -0
  42. data/public/javascripts/ckeditor/_samples/asp/index.html +103 -0
  43. data/public/javascripts/ckeditor/_samples/assets/output_for_flash.fla +0 -0
  44. data/public/javascripts/ckeditor/_samples/assets/output_for_flash.swf +0 -0
  45. data/public/javascripts/ckeditor/_samples/assets/output_xhtml.css +204 -0
  46. data/public/javascripts/ckeditor/_samples/assets/parsesample.css +70 -0
  47. data/public/javascripts/ckeditor/_samples/assets/swfobject.js +18 -0
  48. data/public/javascripts/ckeditor/_samples/autogrow.html +103 -0
  49. data/public/javascripts/ckeditor/_samples/bbcode.html +136 -0
  50. data/public/javascripts/ckeditor/_samples/devtools.html +94 -0
  51. data/public/javascripts/ckeditor/_samples/divreplace.html +154 -0
  52. data/public/javascripts/ckeditor/_samples/enterkey.html +115 -0
  53. data/public/javascripts/ckeditor/_samples/fullpage.html +82 -0
  54. data/public/javascripts/ckeditor/_samples/index.html +116 -0
  55. data/public/javascripts/ckeditor/_samples/jqueryadapter.html +99 -0
  56. data/public/javascripts/ckeditor/_samples/output_for_flash.html +275 -0
  57. data/public/javascripts/ckeditor/_samples/output_html.html +285 -0
  58. data/public/javascripts/ckeditor/_samples/output_xhtml.html +181 -0
  59. data/public/javascripts/ckeditor/_samples/php/index.html +47 -0
  60. data/public/javascripts/ckeditor/_samples/placeholder.html +81 -0
  61. data/public/javascripts/ckeditor/_samples/readonly.html +91 -0
  62. data/public/javascripts/ckeditor/_samples/replacebyclass.html +64 -0
  63. data/public/javascripts/ckeditor/_samples/replacebycode.html +97 -0
  64. data/public/javascripts/ckeditor/_samples/sample.css +163 -0
  65. data/public/javascripts/ckeditor/_samples/sample.js +65 -0
  66. data/public/javascripts/ckeditor/_samples/sharedspaces.html +153 -0
  67. data/public/javascripts/ckeditor/_samples/skins.html +110 -0
  68. data/public/javascripts/ckeditor/_samples/stylesheetparser.html +93 -0
  69. data/public/javascripts/ckeditor/_samples/tableresize.html +115 -0
  70. data/public/javascripts/ckeditor/_samples/ui_color.html +129 -0
  71. data/public/javascripts/ckeditor/_samples/ui_languages.html +134 -0
  72. data/public/javascripts/ckeditor/_source/adapters/jquery.js +306 -0
  73. data/public/javascripts/ckeditor/_source/core/_bootstrap.js +87 -0
  74. data/public/javascripts/ckeditor/_source/core/ckeditor.js +141 -0
  75. data/public/javascripts/ckeditor/_source/core/ckeditor_base.js +227 -0
  76. data/public/javascripts/ckeditor/_source/core/ckeditor_basic.js +238 -0
  77. data/public/javascripts/ckeditor/_source/core/command.js +209 -0
  78. data/public/javascripts/ckeditor/_source/core/commanddefinition.js +129 -0
  79. data/public/javascripts/ckeditor/_source/core/config.js +431 -0
  80. data/public/javascripts/ckeditor/_source/core/dataprocessor.js +65 -0
  81. data/public/javascripts/ckeditor/_source/core/dom.js +20 -0
  82. data/public/javascripts/ckeditor/_source/core/dom/comment.js +32 -0
  83. data/public/javascripts/ckeditor/_source/core/dom/document.js +251 -0
  84. data/public/javascripts/ckeditor/_source/core/dom/documentfragment.js +49 -0
  85. data/public/javascripts/ckeditor/_source/core/dom/domobject.js +258 -0
  86. data/public/javascripts/ckeditor/_source/core/dom/element.js +1663 -0
  87. data/public/javascripts/ckeditor/_source/core/dom/elementpath.js +119 -0
  88. data/public/javascripts/ckeditor/_source/core/dom/event.js +142 -0
  89. data/public/javascripts/ckeditor/_source/core/dom/node.js +690 -0
  90. data/public/javascripts/ckeditor/_source/core/dom/nodelist.js +26 -0
  91. data/public/javascripts/ckeditor/_source/core/dom/range.js +2032 -0
  92. data/public/javascripts/ckeditor/_source/core/dom/rangelist.js +213 -0
  93. data/public/javascripts/ckeditor/_source/core/dom/text.js +128 -0
  94. data/public/javascripts/ckeditor/_source/core/dom/walker.js +462 -0
  95. data/public/javascripts/ckeditor/_source/core/dom/window.js +96 -0
  96. data/public/javascripts/ckeditor/_source/core/dtd.js +237 -0
  97. data/public/javascripts/ckeditor/_source/core/editor.js +1041 -0
  98. data/public/javascripts/ckeditor/_source/core/editor_basic.js +186 -0
  99. data/public/javascripts/ckeditor/_source/core/env.js +282 -0
  100. data/public/javascripts/ckeditor/_source/core/event.js +342 -0
  101. data/public/javascripts/ckeditor/_source/core/eventInfo.js +120 -0
  102. data/public/javascripts/ckeditor/_source/core/focusmanager.js +152 -0
  103. data/public/javascripts/ckeditor/_source/core/htmlparser.js +224 -0
  104. data/public/javascripts/ckeditor/_source/core/htmlparser/basicwriter.js +145 -0
  105. data/public/javascripts/ckeditor/_source/core/htmlparser/cdata.js +43 -0
  106. data/public/javascripts/ckeditor/_source/core/htmlparser/comment.js +60 -0
  107. data/public/javascripts/ckeditor/_source/core/htmlparser/element.js +249 -0
  108. data/public/javascripts/ckeditor/_source/core/htmlparser/filter.js +288 -0
  109. data/public/javascripts/ckeditor/_source/core/htmlparser/fragment.js +492 -0
  110. data/public/javascripts/ckeditor/_source/core/htmlparser/text.js +55 -0
  111. data/public/javascripts/ckeditor/_source/core/lang.js +157 -0
  112. data/public/javascripts/ckeditor/_source/core/loader.js +240 -0
  113. data/public/javascripts/ckeditor/_source/core/plugindefinition.js +83 -0
  114. data/public/javascripts/ckeditor/_source/core/plugins.js +103 -0
  115. data/public/javascripts/ckeditor/_source/core/resourcemanager.js +238 -0
  116. data/public/javascripts/ckeditor/_source/core/scriptloader.js +180 -0
  117. data/public/javascripts/ckeditor/_source/core/skins.js +184 -0
  118. data/public/javascripts/ckeditor/_source/core/themes.js +19 -0
  119. data/public/javascripts/ckeditor/_source/core/tools.js +734 -0
  120. data/public/javascripts/ckeditor/_source/core/ui.js +128 -0
  121. data/public/javascripts/ckeditor/_source/lang/_languages.js +84 -0
  122. data/public/javascripts/ckeditor/_source/lang/_translationstatus.txt +61 -0
  123. data/public/javascripts/ckeditor/_source/lang/af.js +810 -0
  124. data/public/javascripts/ckeditor/_source/lang/ar.js +810 -0
  125. data/public/javascripts/ckeditor/_source/lang/bg.js +810 -0
  126. data/public/javascripts/ckeditor/_source/lang/bn.js +810 -0
  127. data/public/javascripts/ckeditor/_source/lang/bs.js +810 -0
  128. data/public/javascripts/ckeditor/_source/lang/ca.js +810 -0
  129. data/public/javascripts/ckeditor/_source/lang/cs.js +810 -0
  130. data/public/javascripts/ckeditor/_source/lang/cy.js +810 -0
  131. data/public/javascripts/ckeditor/_source/lang/da.js +810 -0
  132. data/public/javascripts/ckeditor/_source/lang/de.js +810 -0
  133. data/public/javascripts/ckeditor/_source/lang/el.js +810 -0
  134. data/public/javascripts/ckeditor/_source/lang/en-au.js +810 -0
  135. data/public/javascripts/ckeditor/_source/lang/en-ca.js +810 -0
  136. data/public/javascripts/ckeditor/_source/lang/en-gb.js +810 -0
  137. data/public/javascripts/ckeditor/_source/lang/en.js +810 -0
  138. data/public/javascripts/ckeditor/_source/lang/eo.js +810 -0
  139. data/public/javascripts/ckeditor/_source/lang/es.js +810 -0
  140. data/public/javascripts/ckeditor/_source/lang/et.js +810 -0
  141. data/public/javascripts/ckeditor/_source/lang/eu.js +810 -0
  142. data/public/javascripts/ckeditor/_source/lang/fa.js +810 -0
  143. data/public/javascripts/ckeditor/_source/lang/fi.js +810 -0
  144. data/public/javascripts/ckeditor/_source/lang/fo.js +810 -0
  145. data/public/javascripts/ckeditor/_source/lang/fr-ca.js +810 -0
  146. data/public/javascripts/ckeditor/_source/lang/fr.js +810 -0
  147. data/public/javascripts/ckeditor/_source/lang/gl.js +810 -0
  148. data/public/javascripts/ckeditor/_source/lang/gu.js +810 -0
  149. data/public/javascripts/ckeditor/_source/lang/he.js +810 -0
  150. data/public/javascripts/ckeditor/_source/lang/hi.js +810 -0
  151. data/public/javascripts/ckeditor/_source/lang/hr.js +810 -0
  152. data/public/javascripts/ckeditor/_source/lang/hu.js +810 -0
  153. data/public/javascripts/ckeditor/_source/lang/is.js +810 -0
  154. data/public/javascripts/ckeditor/_source/lang/it.js +810 -0
  155. data/public/javascripts/ckeditor/_source/lang/ja.js +810 -0
  156. data/public/javascripts/ckeditor/_source/lang/ka.js +810 -0
  157. data/public/javascripts/ckeditor/_source/lang/km.js +810 -0
  158. data/public/javascripts/ckeditor/_source/lang/ko.js +810 -0
  159. data/public/javascripts/ckeditor/_source/lang/lt.js +810 -0
  160. data/public/javascripts/ckeditor/_source/lang/lv.js +810 -0
  161. data/public/javascripts/ckeditor/_source/lang/mn.js +810 -0
  162. data/public/javascripts/ckeditor/_source/lang/ms.js +810 -0
  163. data/public/javascripts/ckeditor/_source/lang/nb.js +810 -0
  164. data/public/javascripts/ckeditor/_source/lang/nl.js +810 -0
  165. data/public/javascripts/ckeditor/_source/lang/no.js +810 -0
  166. data/public/javascripts/ckeditor/_source/lang/pl.js +810 -0
  167. data/public/javascripts/ckeditor/_source/lang/pt-br.js +809 -0
  168. data/public/javascripts/ckeditor/_source/lang/pt.js +810 -0
  169. data/public/javascripts/ckeditor/_source/lang/ro.js +810 -0
  170. data/public/javascripts/ckeditor/_source/lang/ru.js +810 -0
  171. data/public/javascripts/ckeditor/_source/lang/sk.js +810 -0
  172. data/public/javascripts/ckeditor/_source/lang/sl.js +810 -0
  173. data/public/javascripts/ckeditor/_source/lang/sr-latn.js +810 -0
  174. data/public/javascripts/ckeditor/_source/lang/sr.js +810 -0
  175. data/public/javascripts/ckeditor/_source/lang/sv.js +809 -0
  176. data/public/javascripts/ckeditor/_source/lang/th.js +810 -0
  177. data/public/javascripts/ckeditor/_source/lang/tr.js +809 -0
  178. data/public/javascripts/ckeditor/_source/lang/uk.js +810 -0
  179. data/public/javascripts/ckeditor/_source/lang/vi.js +810 -0
  180. data/public/javascripts/ckeditor/_source/lang/zh-cn.js +810 -0
  181. data/public/javascripts/ckeditor/_source/lang/zh.js +810 -0
  182. data/public/javascripts/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +222 -0
  183. data/public/javascripts/ckeditor/_source/plugins/a11yhelp/lang/en.js +108 -0
  184. data/public/javascripts/ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
  185. data/public/javascripts/ckeditor/_source/plugins/a11yhelp/plugin.js +47 -0
  186. data/public/javascripts/ckeditor/_source/plugins/about/dialogs/about.js +76 -0
  187. data/public/javascripts/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
  188. data/public/javascripts/ckeditor/_source/plugins/about/plugin.js +24 -0
  189. data/public/javascripts/ckeditor/_source/plugins/adobeair/plugin.js +228 -0
  190. data/public/javascripts/ckeditor/_source/plugins/ajax/plugin.js +152 -0
  191. data/public/javascripts/ckeditor/_source/plugins/attachment/dialogs/attachment.js +384 -0
  192. data/public/javascripts/ckeditor/_source/plugins/attachment/images/attachment.png +0 -0
  193. data/public/javascripts/ckeditor/_source/plugins/attachment/lang/en.js +10 -0
  194. data/public/javascripts/ckeditor/_source/plugins/attachment/lang/ru.js +10 -0
  195. data/public/javascripts/ckeditor/_source/plugins/attachment/lang/uk.js +10 -0
  196. data/public/javascripts/ckeditor/_source/plugins/attachment/plugin.js +44 -0
  197. data/public/javascripts/ckeditor/_source/plugins/autogrow/plugin.js +88 -0
  198. data/public/javascripts/ckeditor/_source/plugins/basicstyles/plugin.js +101 -0
  199. data/public/javascripts/ckeditor/_source/plugins/bbcode/plugin.js +924 -0
  200. data/public/javascripts/ckeditor/_source/plugins/bidi/plugin.js +331 -0
  201. data/public/javascripts/ckeditor/_source/plugins/blockquote/plugin.js +305 -0
  202. data/public/javascripts/ckeditor/_source/plugins/button/plugin.js +285 -0
  203. data/public/javascripts/ckeditor/_source/plugins/clipboard/dialogs/paste.js +223 -0
  204. data/public/javascripts/ckeditor/_source/plugins/clipboard/plugin.js +446 -0
  205. data/public/javascripts/ckeditor/_source/plugins/colorbutton/plugin.js +295 -0
  206. data/public/javascripts/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +340 -0
  207. data/public/javascripts/ckeditor/_source/plugins/colordialog/plugin.js +15 -0
  208. data/public/javascripts/ckeditor/_source/plugins/contextmenu/plugin.js +177 -0
  209. data/public/javascripts/ckeditor/_source/plugins/devtools/lang/en.js +16 -0
  210. data/public/javascripts/ckeditor/_source/plugins/devtools/plugin.js +173 -0
  211. data/public/javascripts/ckeditor/_source/plugins/dialog/dialogDefinition.js +1099 -0
  212. data/public/javascripts/ckeditor/_source/plugins/dialog/plugin.js +3235 -0
  213. data/public/javascripts/ckeditor/_source/plugins/dialogadvtab/plugin.js +205 -0
  214. data/public/javascripts/ckeditor/_source/plugins/dialogui/plugin.js +1537 -0
  215. data/public/javascripts/ckeditor/_source/plugins/div/dialogs/div.js +535 -0
  216. data/public/javascripts/ckeditor/_source/plugins/div/plugin.js +121 -0
  217. data/public/javascripts/ckeditor/_source/plugins/docprops/dialogs/docprops.js +686 -0
  218. data/public/javascripts/ckeditor/_source/plugins/docprops/plugin.js +22 -0
  219. data/public/javascripts/ckeditor/_source/plugins/domiterator/plugin.js +361 -0
  220. data/public/javascripts/ckeditor/_source/plugins/editingblock/plugin.js +269 -0
  221. data/public/javascripts/ckeditor/_source/plugins/elementspath/plugin.js +218 -0
  222. data/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js +65 -0
  223. data/public/javascripts/ckeditor/_source/plugins/embed/images/embed.png +0 -0
  224. data/public/javascripts/ckeditor/_source/plugins/embed/lang/en.js +9 -0
  225. data/public/javascripts/ckeditor/_source/plugins/embed/lang/ru.js +9 -0
  226. data/public/javascripts/ckeditor/_source/plugins/embed/lang/uk.js +9 -0
  227. data/public/javascripts/ckeditor/_source/plugins/embed/plugin.js +43 -0
  228. data/public/javascripts/ckeditor/_source/plugins/enterkey/plugin.js +399 -0
  229. data/public/javascripts/ckeditor/_source/plugins/entities/plugin.js +250 -0
  230. data/public/javascripts/ckeditor/_source/plugins/fakeobjects/plugin.js +126 -0
  231. data/public/javascripts/ckeditor/_source/plugins/filebrowser/plugin.js +524 -0
  232. data/public/javascripts/ckeditor/_source/plugins/find/dialogs/find.js +895 -0
  233. data/public/javascripts/ckeditor/_source/plugins/find/plugin.js +47 -0
  234. data/public/javascripts/ckeditor/_source/plugins/flash/dialogs/flash.js +698 -0
  235. data/public/javascripts/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
  236. data/public/javascripts/ckeditor/_source/plugins/flash/plugin.js +168 -0
  237. data/public/javascripts/ckeditor/_source/plugins/floatpanel/plugin.js +405 -0
  238. data/public/javascripts/ckeditor/_source/plugins/font/plugin.js +234 -0
  239. data/public/javascripts/ckeditor/_source/plugins/format/plugin.js +197 -0
  240. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/button.js +118 -0
  241. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/checkbox.js +153 -0
  242. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/form.js +177 -0
  243. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +100 -0
  244. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/radio.js +135 -0
  245. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/select.js +562 -0
  246. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/textarea.js +114 -0
  247. data/public/javascripts/ckeditor/_source/plugins/forms/dialogs/textfield.js +199 -0
  248. data/public/javascripts/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
  249. data/public/javascripts/ckeditor/_source/plugins/forms/plugin.js +288 -0
  250. data/public/javascripts/ckeditor/_source/plugins/horizontalrule/plugin.js +36 -0
  251. data/public/javascripts/ckeditor/_source/plugins/htmldataprocessor/plugin.js +595 -0
  252. data/public/javascripts/ckeditor/_source/plugins/htmlwriter/plugin.js +319 -0
  253. data/public/javascripts/ckeditor/_source/plugins/iframe/dialogs/iframe.js +257 -0
  254. data/public/javascripts/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
  255. data/public/javascripts/ckeditor/_source/plugins/iframe/plugin.js +106 -0
  256. data/public/javascripts/ckeditor/_source/plugins/iframedialog/plugin.js +188 -0
  257. data/public/javascripts/ckeditor/_source/plugins/image/dialogs/image.js +1403 -0
  258. data/public/javascripts/ckeditor/_source/plugins/image/plugin.js +81 -0
  259. data/public/javascripts/ckeditor/_source/plugins/indent/plugin.js +461 -0
  260. data/public/javascripts/ckeditor/_source/plugins/justify/plugin.js +253 -0
  261. data/public/javascripts/ckeditor/_source/plugins/keystrokes/plugin.js +225 -0
  262. data/public/javascripts/ckeditor/_source/plugins/link/dialogs/anchor.js +144 -0
  263. data/public/javascripts/ckeditor/_source/plugins/link/dialogs/link.js +1400 -0
  264. data/public/javascripts/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
  265. data/public/javascripts/ckeditor/_source/plugins/link/plugin.js +336 -0
  266. data/public/javascripts/ckeditor/_source/plugins/list/plugin.js +727 -0
  267. data/public/javascripts/ckeditor/_source/plugins/listblock/plugin.js +257 -0
  268. data/public/javascripts/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +204 -0
  269. data/public/javascripts/ckeditor/_source/plugins/liststyle/plugin.js +66 -0
  270. data/public/javascripts/ckeditor/_source/plugins/maximize/plugin.js +352 -0
  271. data/public/javascripts/ckeditor/_source/plugins/menu/plugin.js +505 -0
  272. data/public/javascripts/ckeditor/_source/plugins/menubutton/plugin.js +98 -0
  273. data/public/javascripts/ckeditor/_source/plugins/newpage/plugin.js +54 -0
  274. data/public/javascripts/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
  275. data/public/javascripts/ckeditor/_source/plugins/pagebreak/plugin.js +164 -0
  276. data/public/javascripts/ckeditor/_source/plugins/panel/plugin.js +402 -0
  277. data/public/javascripts/ckeditor/_source/plugins/panelbutton/plugin.js +146 -0
  278. data/public/javascripts/ckeditor/_source/plugins/pastefromword/filter/default.js +1376 -0
  279. data/public/javascripts/ckeditor/_source/plugins/pastefromword/plugin.js +141 -0
  280. data/public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +67 -0
  281. data/public/javascripts/ckeditor/_source/plugins/pastetext/plugin.js +98 -0
  282. data/public/javascripts/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +71 -0
  283. data/public/javascripts/ckeditor/_source/plugins/placeholder/lang/en.js +16 -0
  284. data/public/javascripts/ckeditor/_source/plugins/placeholder/lang/he.js +16 -0
  285. data/public/javascripts/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
  286. data/public/javascripts/ckeditor/_source/plugins/placeholder/plugin.js +171 -0
  287. data/public/javascripts/ckeditor/_source/plugins/popup/plugin.js +64 -0
  288. data/public/javascripts/ckeditor/_source/plugins/preview/plugin.js +109 -0
  289. data/public/javascripts/ckeditor/_source/plugins/print/plugin.js +42 -0
  290. data/public/javascripts/ckeditor/_source/plugins/removeformat/plugin.js +185 -0
  291. data/public/javascripts/ckeditor/_source/plugins/resize/plugin.js +168 -0
  292. data/public/javascripts/ckeditor/_source/plugins/richcombo/plugin.js +378 -0
  293. data/public/javascripts/ckeditor/_source/plugins/save/plugin.js +56 -0
  294. data/public/javascripts/ckeditor/_source/plugins/scayt/dialogs/options.js +537 -0
  295. data/public/javascripts/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +71 -0
  296. data/public/javascripts/ckeditor/_source/plugins/scayt/plugin.js +964 -0
  297. data/public/javascripts/ckeditor/_source/plugins/selection/plugin.js +1563 -0
  298. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
  299. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
  300. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
  301. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
  302. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
  303. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
  304. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
  305. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
  306. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
  307. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
  308. data/public/javascripts/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
  309. data/public/javascripts/ckeditor/_source/plugins/showblocks/plugin.js +160 -0
  310. data/public/javascripts/ckeditor/_source/plugins/showborders/plugin.js +207 -0
  311. data/public/javascripts/ckeditor/_source/plugins/smiley/dialogs/smiley.js +224 -0
  312. data/public/javascripts/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
  313. data/public/javascripts/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
  314. data/public/javascripts/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
  315. data/public/javascripts/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
  316. data/public/javascripts/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
  317. data/public/javascripts/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
  318. data/public/javascripts/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
  319. data/public/javascripts/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
  320. data/public/javascripts/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
  321. data/public/javascripts/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
  322. data/public/javascripts/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
  323. data/public/javascripts/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
  324. data/public/javascripts/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
  325. data/public/javascripts/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
  326. data/public/javascripts/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
  327. data/public/javascripts/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
  328. data/public/javascripts/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
  329. data/public/javascripts/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
  330. data/public/javascripts/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
  331. data/public/javascripts/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  332. data/public/javascripts/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
  333. data/public/javascripts/ckeditor/_source/plugins/smiley/plugin.js +94 -0
  334. data/public/javascripts/ckeditor/_source/plugins/sourcearea/plugin.js +209 -0
  335. data/public/javascripts/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +350 -0
  336. data/public/javascripts/ckeditor/_source/plugins/specialchar/lang/en.js +89 -0
  337. data/public/javascripts/ckeditor/_source/plugins/specialchar/plugin.js +70 -0
  338. data/public/javascripts/ckeditor/_source/plugins/styles/plugin.js +1678 -0
  339. data/public/javascripts/ckeditor/_source/plugins/styles/styles/default.js +88 -0
  340. data/public/javascripts/ckeditor/_source/plugins/stylescombo/plugin.js +219 -0
  341. data/public/javascripts/ckeditor/_source/plugins/stylesheetparser/plugin.js +143 -0
  342. data/public/javascripts/ckeditor/_source/plugins/tab/plugin.js +367 -0
  343. data/public/javascripts/ckeditor/_source/plugins/table/dialogs/table.js +672 -0
  344. data/public/javascripts/ckeditor/_source/plugins/table/plugin.js +78 -0
  345. data/public/javascripts/ckeditor/_source/plugins/tableresize/plugin.js +450 -0
  346. data/public/javascripts/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +525 -0
  347. data/public/javascripts/ckeditor/_source/plugins/tabletools/plugin.js +1191 -0
  348. data/public/javascripts/ckeditor/_source/plugins/templates/dialogs/templates.js +234 -0
  349. data/public/javascripts/ckeditor/_source/plugins/templates/plugin.js +99 -0
  350. data/public/javascripts/ckeditor/_source/plugins/templates/templates/default.js +94 -0
  351. data/public/javascripts/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
  352. data/public/javascripts/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
  353. data/public/javascripts/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
  354. data/public/javascripts/ckeditor/_source/plugins/toolbar/plugin.js +545 -0
  355. data/public/javascripts/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +205 -0
  356. data/public/javascripts/ckeditor/_source/plugins/uicolor/lang/en.js +15 -0
  357. data/public/javascripts/ckeditor/_source/plugins/uicolor/lang/he.js +15 -0
  358. data/public/javascripts/ckeditor/_source/plugins/uicolor/plugin.js +37 -0
  359. data/public/javascripts/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
  360. data/public/javascripts/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  361. data/public/javascripts/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  362. data/public/javascripts/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  363. data/public/javascripts/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  364. data/public/javascripts/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +15 -0
  365. data/public/javascripts/ckeditor/_source/plugins/uicolor/yui/yui.js +71 -0
  366. data/public/javascripts/ckeditor/_source/plugins/undo/plugin.js +580 -0
  367. data/public/javascripts/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +49 -0
  368. data/public/javascripts/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  369. data/public/javascripts/ckeditor/_source/plugins/wsc/dialogs/wsc.css +82 -0
  370. data/public/javascripts/ckeditor/_source/plugins/wsc/dialogs/wsc.js +192 -0
  371. data/public/javascripts/ckeditor/_source/plugins/wsc/plugin.js +33 -0
  372. data/public/javascripts/ckeditor/_source/plugins/wysiwygarea/plugin.js +1351 -0
  373. data/public/javascripts/ckeditor/_source/plugins/xml/plugin.js +170 -0
  374. data/public/javascripts/ckeditor/_source/skins/kama/dialog.css +920 -0
  375. data/public/javascripts/ckeditor/_source/skins/kama/editor.css +25 -0
  376. data/public/javascripts/ckeditor/_source/skins/kama/elementspath.css +73 -0
  377. data/public/javascripts/ckeditor/_source/skins/kama/icons.css +366 -0
  378. data/public/javascripts/ckeditor/_source/skins/kama/icons.png +0 -0
  379. data/public/javascripts/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  380. data/public/javascripts/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
  381. data/public/javascripts/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
  382. data/public/javascripts/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
  383. data/public/javascripts/ckeditor/_source/skins/kama/images/mini.gif +0 -0
  384. data/public/javascripts/ckeditor/_source/skins/kama/images/noimage.png +0 -0
  385. data/public/javascripts/ckeditor/_source/skins/kama/images/sprites.png +0 -0
  386. data/public/javascripts/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
  387. data/public/javascripts/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
  388. data/public/javascripts/ckeditor/_source/skins/kama/mainui.css +203 -0
  389. data/public/javascripts/ckeditor/_source/skins/kama/menu.css +232 -0
  390. data/public/javascripts/ckeditor/_source/skins/kama/panel.css +217 -0
  391. data/public/javascripts/ckeditor/_source/skins/kama/presets.css +49 -0
  392. data/public/javascripts/ckeditor/_source/skins/kama/reset.css +84 -0
  393. data/public/javascripts/ckeditor/_source/skins/kama/richcombo.css +287 -0
  394. data/public/javascripts/ckeditor/_source/skins/kama/skin.js +236 -0
  395. data/public/javascripts/ckeditor/_source/skins/kama/templates.css +88 -0
  396. data/public/javascripts/ckeditor/_source/skins/kama/toolbar.css +407 -0
  397. data/public/javascripts/ckeditor/_source/skins/office2003/dialog.css +826 -0
  398. data/public/javascripts/ckeditor/_source/skins/office2003/editor.css +25 -0
  399. data/public/javascripts/ckeditor/_source/skins/office2003/elementspath.css +74 -0
  400. data/public/javascripts/ckeditor/_source/skins/office2003/icons.css +363 -0
  401. data/public/javascripts/ckeditor/_source/skins/office2003/icons.png +0 -0
  402. data/public/javascripts/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  403. data/public/javascripts/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
  404. data/public/javascripts/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
  405. data/public/javascripts/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
  406. data/public/javascripts/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
  407. data/public/javascripts/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
  408. data/public/javascripts/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
  409. data/public/javascripts/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
  410. data/public/javascripts/ckeditor/_source/skins/office2003/mainui.css +153 -0
  411. data/public/javascripts/ckeditor/_source/skins/office2003/menu.css +229 -0
  412. data/public/javascripts/ckeditor/_source/skins/office2003/panel.css +212 -0
  413. data/public/javascripts/ckeditor/_source/skins/office2003/presets.css +49 -0
  414. data/public/javascripts/ckeditor/_source/skins/office2003/reset.css +84 -0
  415. data/public/javascripts/ckeditor/_source/skins/office2003/richcombo.css +309 -0
  416. data/public/javascripts/ckeditor/_source/skins/office2003/skin.js +74 -0
  417. data/public/javascripts/ckeditor/_source/skins/office2003/templates.css +87 -0
  418. data/public/javascripts/ckeditor/_source/skins/office2003/toolbar.css +522 -0
  419. data/public/javascripts/ckeditor/_source/skins/v2/dialog.css +842 -0
  420. data/public/javascripts/ckeditor/_source/skins/v2/editor.css +25 -0
  421. data/public/javascripts/ckeditor/_source/skins/v2/elementspath.css +74 -0
  422. data/public/javascripts/ckeditor/_source/skins/v2/icons.css +363 -0
  423. data/public/javascripts/ckeditor/_source/skins/v2/icons.png +0 -0
  424. data/public/javascripts/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  425. data/public/javascripts/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
  426. data/public/javascripts/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
  427. data/public/javascripts/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
  428. data/public/javascripts/ckeditor/_source/skins/v2/images/mini.gif +0 -0
  429. data/public/javascripts/ckeditor/_source/skins/v2/images/noimage.png +0 -0
  430. data/public/javascripts/ckeditor/_source/skins/v2/images/sprites.png +0 -0
  431. data/public/javascripts/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
  432. data/public/javascripts/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
  433. data/public/javascripts/ckeditor/_source/skins/v2/mainui.css +162 -0
  434. data/public/javascripts/ckeditor/_source/skins/v2/menu.css +232 -0
  435. data/public/javascripts/ckeditor/_source/skins/v2/panel.css +212 -0
  436. data/public/javascripts/ckeditor/_source/skins/v2/presets.css +50 -0
  437. data/public/javascripts/ckeditor/_source/skins/v2/reset.css +84 -0
  438. data/public/javascripts/ckeditor/_source/skins/v2/richcombo.css +302 -0
  439. data/public/javascripts/ckeditor/_source/skins/v2/skin.js +70 -0
  440. data/public/javascripts/ckeditor/_source/skins/v2/templates.css +87 -0
  441. data/public/javascripts/ckeditor/_source/skins/v2/toolbar.css +465 -0
  442. data/public/javascripts/ckeditor/_source/themes/default/theme.js +394 -0
  443. data/public/javascripts/ckeditor/adapters/jquery.js +6 -0
  444. data/public/javascripts/ckeditor/ckeditor.js +145 -0
  445. data/public/javascripts/ckeditor/ckeditor.pack +211 -0
  446. data/public/javascripts/ckeditor/ckeditor_basic.js +8 -0
  447. data/public/javascripts/ckeditor/ckeditor_basic_source.js +20 -0
  448. data/public/javascripts/ckeditor/ckeditor_source.js +25 -0
  449. data/public/javascripts/ckeditor/config.js +28 -0
  450. data/public/javascripts/ckeditor/contents.css +23 -0
  451. data/public/javascripts/ckeditor/css/ckfinder.css +316 -0
  452. data/public/javascripts/ckeditor/css/fck_dialog.css +119 -0
  453. data/public/javascripts/ckeditor/css/fck_editor.css +448 -0
  454. data/public/javascripts/ckeditor/css/swfupload.css +94 -0
  455. data/public/javascripts/ckeditor/images/add.gif +0 -0
  456. data/public/javascripts/ckeditor/images/cancelbutton.gif +0 -0
  457. data/public/javascripts/ckeditor/images/ckfnothumb.gif +0 -0
  458. data/public/javascripts/ckeditor/images/doc.gif +0 -0
  459. data/public/javascripts/ckeditor/images/mp3.gif +0 -0
  460. data/public/javascripts/ckeditor/images/pdf.gif +0 -0
  461. data/public/javascripts/ckeditor/images/rar.gif +0 -0
  462. data/public/javascripts/ckeditor/images/refresh.gif +0 -0
  463. data/public/javascripts/ckeditor/images/select_files.png +0 -0
  464. data/public/javascripts/ckeditor/images/spacer.gif +0 -0
  465. data/public/javascripts/ckeditor/images/swf.gif +0 -0
  466. data/public/javascripts/ckeditor/images/toolbar.start.gif +0 -0
  467. data/public/javascripts/ckeditor/images/xls.gif +0 -0
  468. data/public/javascripts/ckeditor/lang/_languages.js +6 -0
  469. data/public/javascripts/ckeditor/lang/_translationstatus.txt +61 -0
  470. data/public/javascripts/ckeditor/lang/af.js +6 -0
  471. data/public/javascripts/ckeditor/lang/ar.js +6 -0
  472. data/public/javascripts/ckeditor/lang/bg.js +6 -0
  473. data/public/javascripts/ckeditor/lang/bn.js +6 -0
  474. data/public/javascripts/ckeditor/lang/bs.js +6 -0
  475. data/public/javascripts/ckeditor/lang/ca.js +6 -0
  476. data/public/javascripts/ckeditor/lang/cs.js +6 -0
  477. data/public/javascripts/ckeditor/lang/cy.js +6 -0
  478. data/public/javascripts/ckeditor/lang/da.js +6 -0
  479. data/public/javascripts/ckeditor/lang/de.js +6 -0
  480. data/public/javascripts/ckeditor/lang/el.js +6 -0
  481. data/public/javascripts/ckeditor/lang/en-au.js +6 -0
  482. data/public/javascripts/ckeditor/lang/en-ca.js +6 -0
  483. data/public/javascripts/ckeditor/lang/en-gb.js +6 -0
  484. data/public/javascripts/ckeditor/lang/en.js +6 -0
  485. data/public/javascripts/ckeditor/lang/eo.js +6 -0
  486. data/public/javascripts/ckeditor/lang/es.js +6 -0
  487. data/public/javascripts/ckeditor/lang/et.js +6 -0
  488. data/public/javascripts/ckeditor/lang/eu.js +6 -0
  489. data/public/javascripts/ckeditor/lang/fa.js +6 -0
  490. data/public/javascripts/ckeditor/lang/fi.js +6 -0
  491. data/public/javascripts/ckeditor/lang/fo.js +6 -0
  492. data/public/javascripts/ckeditor/lang/fr-ca.js +6 -0
  493. data/public/javascripts/ckeditor/lang/fr.js +6 -0
  494. data/public/javascripts/ckeditor/lang/gl.js +6 -0
  495. data/public/javascripts/ckeditor/lang/gu.js +6 -0
  496. data/public/javascripts/ckeditor/lang/he.js +6 -0
  497. data/public/javascripts/ckeditor/lang/hi.js +6 -0
  498. data/public/javascripts/ckeditor/lang/hr.js +6 -0
  499. data/public/javascripts/ckeditor/lang/hu.js +6 -0
  500. data/public/javascripts/ckeditor/lang/is.js +6 -0
  501. data/public/javascripts/ckeditor/lang/it.js +6 -0
  502. data/public/javascripts/ckeditor/lang/ja.js +6 -0
  503. data/public/javascripts/ckeditor/lang/ka.js +6 -0
  504. data/public/javascripts/ckeditor/lang/km.js +6 -0
  505. data/public/javascripts/ckeditor/lang/ko.js +6 -0
  506. data/public/javascripts/ckeditor/lang/lt.js +6 -0
  507. data/public/javascripts/ckeditor/lang/lv.js +6 -0
  508. data/public/javascripts/ckeditor/lang/mn.js +6 -0
  509. data/public/javascripts/ckeditor/lang/ms.js +6 -0
  510. data/public/javascripts/ckeditor/lang/nb.js +6 -0
  511. data/public/javascripts/ckeditor/lang/nl.js +6 -0
  512. data/public/javascripts/ckeditor/lang/no.js +6 -0
  513. data/public/javascripts/ckeditor/lang/pl.js +6 -0
  514. data/public/javascripts/ckeditor/lang/pt-br.js +6 -0
  515. data/public/javascripts/ckeditor/lang/pt.js +6 -0
  516. data/public/javascripts/ckeditor/lang/ro.js +6 -0
  517. data/public/javascripts/ckeditor/lang/ru.js +6 -0
  518. data/public/javascripts/ckeditor/lang/sk.js +6 -0
  519. data/public/javascripts/ckeditor/lang/sl.js +6 -0
  520. data/public/javascripts/ckeditor/lang/sr-latn.js +6 -0
  521. data/public/javascripts/ckeditor/lang/sr.js +6 -0
  522. data/public/javascripts/ckeditor/lang/sv.js +6 -0
  523. data/public/javascripts/ckeditor/lang/th.js +6 -0
  524. data/public/javascripts/ckeditor/lang/tr.js +6 -0
  525. data/public/javascripts/ckeditor/lang/uk.js +6 -0
  526. data/public/javascripts/ckeditor/lang/vi.js +6 -0
  527. data/public/javascripts/ckeditor/lang/zh-cn.js +6 -0
  528. data/public/javascripts/ckeditor/lang/zh.js +6 -0
  529. data/public/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -0
  530. data/public/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +6 -0
  531. data/public/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
  532. data/public/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
  533. data/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  534. data/public/javascripts/ckeditor/plugins/adobeair/plugin.js +6 -0
  535. data/public/javascripts/ckeditor/plugins/ajax/plugin.js +6 -0
  536. data/public/javascripts/ckeditor/plugins/attachment/dialogs/attachment.js +1 -0
  537. data/public/javascripts/ckeditor/plugins/attachment/images/attachment.png +0 -0
  538. data/public/javascripts/ckeditor/plugins/attachment/lang/en.js +10 -0
  539. data/public/javascripts/ckeditor/plugins/attachment/lang/ru.js +10 -0
  540. data/public/javascripts/ckeditor/plugins/attachment/lang/uk.js +10 -0
  541. data/public/javascripts/ckeditor/plugins/attachment/plugin.js +1 -0
  542. data/public/javascripts/ckeditor/plugins/autogrow/plugin.js +6 -0
  543. data/public/javascripts/ckeditor/plugins/bbcode/plugin.js +9 -0
  544. data/public/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
  545. data/public/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
  546. data/public/javascripts/ckeditor/plugins/devtools/lang/en.js +6 -0
  547. data/public/javascripts/ckeditor/plugins/devtools/plugin.js +6 -0
  548. data/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  549. data/public/javascripts/ckeditor/plugins/div/dialogs/div.js +8 -0
  550. data/public/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +10 -0
  551. data/public/javascripts/ckeditor/plugins/docprops/plugin.js +6 -0
  552. data/public/javascripts/ckeditor/plugins/embed/dialogs/embed.js +1 -0
  553. data/public/javascripts/ckeditor/plugins/embed/images/embed.png +0 -0
  554. data/public/javascripts/ckeditor/plugins/embed/lang/en.js +9 -0
  555. data/public/javascripts/ckeditor/plugins/embed/lang/ru.js +9 -0
  556. data/public/javascripts/ckeditor/plugins/embed/lang/uk.js +9 -0
  557. data/public/javascripts/ckeditor/plugins/embed/plugin.js +1 -0
  558. data/public/javascripts/ckeditor/plugins/find/dialogs/find.js +9 -0
  559. data/public/javascripts/ckeditor/plugins/flash/dialogs/flash.js +9 -0
  560. data/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  561. data/public/javascripts/ckeditor/plugins/forms/dialogs/button.js +6 -0
  562. data/public/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
  563. data/public/javascripts/ckeditor/plugins/forms/dialogs/form.js +6 -0
  564. data/public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
  565. data/public/javascripts/ckeditor/plugins/forms/dialogs/radio.js +6 -0
  566. data/public/javascripts/ckeditor/plugins/forms/dialogs/select.js +9 -0
  567. data/public/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
  568. data/public/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
  569. data/public/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  570. data/public/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
  571. data/public/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  572. data/public/javascripts/ckeditor/plugins/iframedialog/plugin.js +6 -0
  573. data/public/javascripts/ckeditor/plugins/image/dialogs/image.js +13 -0
  574. data/public/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -0
  575. data/public/javascripts/ckeditor/plugins/link/dialogs/link.js +11 -0
  576. data/public/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
  577. data/public/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +6 -0
  578. data/public/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  579. data/public/javascripts/ckeditor/plugins/pastefromword/filter/default.js +11 -0
  580. data/public/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
  581. data/public/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
  582. data/public/javascripts/ckeditor/plugins/placeholder/lang/en.js +6 -0
  583. data/public/javascripts/ckeditor/plugins/placeholder/lang/he.js +6 -0
  584. data/public/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  585. data/public/javascripts/ckeditor/plugins/placeholder/plugin.js +6 -0
  586. data/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +8 -0
  587. data/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
  588. data/public/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  589. data/public/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  590. data/public/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  591. data/public/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  592. data/public/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  593. data/public/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  594. data/public/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  595. data/public/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  596. data/public/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  597. data/public/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  598. data/public/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  599. data/public/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
  600. data/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  601. data/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  602. data/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  603. data/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  604. data/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  605. data/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  606. data/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  607. data/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  608. data/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  609. data/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  610. data/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  611. data/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  612. data/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  613. data/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  614. data/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  615. data/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  616. data/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  617. data/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  618. data/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  619. data/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  620. data/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  621. data/public/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
  622. data/public/javascripts/ckeditor/plugins/specialchar/lang/en.js +6 -0
  623. data/public/javascripts/ckeditor/plugins/styles/styles/default.js +6 -0
  624. data/public/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +6 -0
  625. data/public/javascripts/ckeditor/plugins/table/dialogs/table.js +9 -0
  626. data/public/javascripts/ckeditor/plugins/tableresize/plugin.js +7 -0
  627. data/public/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
  628. data/public/javascripts/ckeditor/plugins/templates/dialogs/templates.js +7 -0
  629. data/public/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
  630. data/public/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  631. data/public/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  632. data/public/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  633. data/public/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
  634. data/public/javascripts/ckeditor/plugins/uicolor/lang/en.js +6 -0
  635. data/public/javascripts/ckeditor/plugins/uicolor/lang/he.js +6 -0
  636. data/public/javascripts/ckeditor/plugins/uicolor/plugin.js +6 -0
  637. data/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  638. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  639. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  640. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  641. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  642. data/public/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
  643. data/public/javascripts/ckeditor/plugins/uicolor/yui/yui.js +76 -0
  644. data/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  645. data/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  646. data/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
  647. data/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
  648. data/public/javascripts/ckeditor/plugins/xml/plugin.js +6 -0
  649. data/public/javascripts/ckeditor/skins/kama/dialog.css +9 -0
  650. data/public/javascripts/ckeditor/skins/kama/editor.css +13 -0
  651. data/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
  652. data/public/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
  653. data/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  654. data/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  655. data/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  656. data/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
  657. data/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
  658. data/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
  659. data/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  660. data/public/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  661. data/public/javascripts/ckeditor/skins/kama/skin.js +7 -0
  662. data/public/javascripts/ckeditor/skins/kama/templates.css +6 -0
  663. data/public/javascripts/ckeditor/skins/office2003/dialog.css +9 -0
  664. data/public/javascripts/ckeditor/skins/office2003/editor.css +14 -0
  665. data/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
  666. data/public/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
  667. data/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  668. data/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  669. data/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  670. data/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
  671. data/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
  672. data/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
  673. data/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  674. data/public/javascripts/ckeditor/skins/office2003/skin.js +6 -0
  675. data/public/javascripts/ckeditor/skins/office2003/templates.css +6 -0
  676. data/public/javascripts/ckeditor/skins/v2/dialog.css +9 -0
  677. data/public/javascripts/ckeditor/skins/v2/editor.css +13 -0
  678. data/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
  679. data/public/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
  680. data/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  681. data/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  682. data/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  683. data/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
  684. data/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
  685. data/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
  686. data/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  687. data/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  688. data/public/javascripts/ckeditor/skins/v2/skin.js +6 -0
  689. data/public/javascripts/ckeditor/skins/v2/templates.css +6 -0
  690. data/public/javascripts/ckeditor/swfupload/fileprogress.js +266 -0
  691. data/public/javascripts/ckeditor/swfupload/handlers.js +181 -0
  692. data/public/javascripts/ckeditor/swfupload/jquery-1.5.1.min.js +16 -0
  693. data/public/javascripts/ckeditor/swfupload/querystring.js +40 -0
  694. data/public/javascripts/ckeditor/swfupload/rails.js +158 -0
  695. data/public/javascripts/ckeditor/swfupload/swfupload.js +1 -0
  696. data/public/javascripts/ckeditor/swfupload/swfupload.queue.js +1 -0
  697. data/public/javascripts/ckeditor/swfupload/swfupload.swf +0 -0
  698. data/public/javascripts/ckeditor/swfupload/swfupload.swfobject.js +111 -0
  699. data/public/javascripts/ckeditor/themes/default/theme.js +8 -0
  700. data/public/javascripts/jquery-ui.js +11603 -0
  701. data/public/javascripts/jquery-ui.min.js +406 -0
  702. data/public/javascripts/jquery.form.js +899 -0
  703. data/public/javascripts/jquery.js +8936 -0
  704. data/public/javascripts/jquery.min.js +18 -0
  705. data/public/javascripts/jquery.remotipart.js +79 -0
  706. data/public/javascripts/jquery_ujs.js +315 -0
  707. data/public/javascripts/rails.js +175 -0
  708. data/public/javascripts/slider.js +275 -0
  709. data/public/stylesheets/devise.css +94 -0
  710. data/public/stylesheets/inline_forms.css +16 -0
  711. data/public/stylesheets/jquery-ui-sunny.css +578 -0
  712. metadata +711 -4
@@ -0,0 +1,16 @@
1
+ /*
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.setLang( 'devtools', 'en',
7
+ {
8
+ devTools :
9
+ {
10
+ title : 'Element Information',
11
+ dialogName : 'Dialog window name',
12
+ tabName : 'Tab name',
13
+ elementId : 'Element ID',
14
+ elementType : 'Element type'
15
+ }
16
+ });
@@ -0,0 +1,173 @@
1
+ /*
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.plugins.add( 'devtools',
7
+ {
8
+ lang : [ 'en' ],
9
+
10
+ init : function( editor )
11
+ {
12
+ editor._.showDialogDefinitionTooltips = 1;
13
+ },
14
+ onLoad : function()
15
+ {
16
+ CKEDITOR.document.appendStyleText( CKEDITOR.config.devtools_styles ||
17
+ '#cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }' +
18
+ '#cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }' +
19
+ '#cke_tooltip ul { padding: 0pt; list-style-type: none; }' );
20
+ }
21
+ });
22
+
23
+ (function()
24
+ {
25
+ function defaultCallback( editor, dialog, element, tabName )
26
+ {
27
+ var lang = editor.lang.devTools,
28
+ link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' +
29
+ ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) +
30
+ '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>',
31
+ str =
32
+ '<h2>' + lang.title + '</h2>' +
33
+ '<ul>' +
34
+ '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' +
35
+ '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>';
36
+
37
+ if ( element )
38
+ str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>';
39
+
40
+ str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>';
41
+
42
+ return str + '</ul>';
43
+ }
44
+
45
+ function showTooltip( callback, el, editor, dialog, obj, tabName )
46
+ {
47
+ var pos = el.getDocumentPosition(),
48
+ styles = { 'z-index' : CKEDITOR.dialog._.currentZIndex + 10, top : ( pos.y + el.getSize( 'height' ) ) + 'px' };
49
+
50
+ tooltip.setHtml( callback( editor, dialog, obj, tabName ) );
51
+ tooltip.show();
52
+
53
+ // Translate coordinate for RTL.
54
+ if ( editor.lang.dir == 'rtl' )
55
+ {
56
+ var viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize();
57
+ styles.right = ( viewPaneSize.width - pos.x - el.getSize( 'width' ) ) + 'px';
58
+ }
59
+ else
60
+ styles.left = pos.x + 'px';
61
+
62
+ tooltip.setStyles( styles );
63
+ }
64
+
65
+ var tooltip;
66
+ CKEDITOR.on( 'reset', function()
67
+ {
68
+ tooltip && tooltip.remove();
69
+ tooltip = null;
70
+ });
71
+
72
+ CKEDITOR.on( 'dialogDefinition', function( evt )
73
+ {
74
+ var editor = evt.editor;
75
+ if ( editor._.showDialogDefinitionTooltips )
76
+ {
77
+ if ( !tooltip )
78
+ {
79
+ tooltip = CKEDITOR.dom.element.createFromHtml( '<div id="cke_tooltip" tabindex="-1" style="position: absolute"></div>', CKEDITOR.document );
80
+ tooltip.hide();
81
+ tooltip.on( 'mouseover', function(){ this.show(); } );
82
+ tooltip.on( 'mouseout', function(){ this.hide(); } );
83
+ tooltip.appendTo( CKEDITOR.document.getBody() );
84
+ }
85
+
86
+ var dialog = evt.data.definition.dialog,
87
+ callback = editor.config.devtools_textCallback || defaultCallback;
88
+
89
+ dialog.on( 'load', function()
90
+ {
91
+ var tabs = dialog.parts.tabs.getChildren(), tab;
92
+ for ( var i = 0, len = tabs.count(); i < len; i++ )
93
+ {
94
+ tab = tabs.getItem( i );
95
+ tab.on( 'mouseover', function()
96
+ {
97
+ var id = this.$.id;
98
+ showTooltip( callback, this, editor, dialog, null, id.substring( 4, id.lastIndexOf( '_' ) ) );
99
+ });
100
+ tab.on( 'mouseout', function()
101
+ {
102
+ tooltip.hide();
103
+ });
104
+ }
105
+
106
+ dialog.foreach( function( obj )
107
+ {
108
+ if ( obj.type in { hbox : 1, vbox : 1 } )
109
+ return;
110
+
111
+ var el = obj.getElement();
112
+ if ( el )
113
+ {
114
+ el.on( 'mouseover', function()
115
+ {
116
+ showTooltip( callback, this, editor, dialog, obj, dialog._.currentTabId );
117
+ });
118
+ el.on( 'mouseout', function()
119
+ {
120
+ tooltip.hide();
121
+ });
122
+ }
123
+ });
124
+ });
125
+ }
126
+ });
127
+ })();
128
+
129
+ /**
130
+ * A function that returns the text to be displayed inside the developer tooltip when hovering over a dialog UI element.
131
+ * There are 4 parameters that are being passed into the function: editor, dialog, element, tab name.
132
+ * @name editor.config.devtools_textCallback
133
+ * @since 3.6
134
+ * @type Function
135
+ * @default (see example)
136
+ * @example
137
+ * // This is actually the default value.
138
+ * // Show dialog name, tab id and element id.
139
+ * config.devtools_textCallback = function( editor, dialog, element, tabName )
140
+ * {
141
+ * var lang = editor.lang.devTools,
142
+ * link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' +
143
+ * ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) +
144
+ * '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>',
145
+ * str =
146
+ * '<h2>' + lang.title + '</h2>' +
147
+ * '<ul>' +
148
+ * '<li><strong>' + lang.dialogName + '</strong> : ' + dialog.getName() + '</li>' +
149
+ * '<li><strong>' + lang.tabName + '</strong> : ' + tabName + '</li>';
150
+ *
151
+ * if ( element )
152
+ * str += '<li><strong>' + lang.elementId + '</strong> : ' + element.id + '</li>';
153
+ *
154
+ * str += '<li><strong>' + lang.elementType + '</strong> : ' + link + '</li>';
155
+ *
156
+ * return str + '</ul>';
157
+ * }
158
+ */
159
+
160
+ /**
161
+ * A setting that holds CSS rules to be injected do page and contain styles to be applied to the tooltip element.
162
+ * @name CKEDITOR.config.devtools_styles
163
+ * @since 3.6
164
+ * @type String
165
+ * @default (see example)
166
+ * @example
167
+ * // This is actually the default value.
168
+ * CKEDITOR.config.devtools_styles = &quot;
169
+ * #cke_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }
170
+ * #cke_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }
171
+ * #cke_tooltip ul { padding: 0pt; list-style-type: none; }
172
+ * &quot;;
173
+ */
@@ -0,0 +1,1099 @@
1
+ /*
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ /**
7
+ * @fileOverview Defines the "virtual" dialog, dialog content and dialog button
8
+ * definition classes.
9
+ */
10
+
11
+ /**
12
+ * The definition of a dialog window.
13
+ * <div class="notapi">
14
+ * This class is not really part of the API. It just illustrates the properties
15
+ * that developers can use to define and create dialogs.
16
+ * </div>
17
+ * @name CKEDITOR.dialog.definition
18
+ * @constructor
19
+ * @example
20
+ * // There is no constructor for this class, the user just has to define an
21
+ * // object with the appropriate properties.
22
+ *
23
+ * CKEDITOR.dialog.add( 'testOnly', function( editor )
24
+ * {
25
+ * return {
26
+ * title : 'Test Dialog',
27
+ * resizable : CKEDITOR.DIALOG_RESIZE_BOTH,
28
+ * minWidth : 500,
29
+ * minHeight : 400,
30
+ * contents : [
31
+ * {
32
+ * id : 'tab1',
33
+ * label : 'First Tab',
34
+ * title : 'First Tab Title',
35
+ * accessKey : 'Q',
36
+ * elements : [
37
+ * {
38
+ * type : 'text',
39
+ * label : 'Test Text 1',
40
+ * id : 'testText1',
41
+ * 'default' : 'hello world!'
42
+ * }
43
+ * ]
44
+ * }
45
+ * ]
46
+ * };
47
+ * });
48
+ */
49
+
50
+ /**
51
+ * The dialog title, displayed in the dialog's header. Required.
52
+ * @name CKEDITOR.dialog.definition.prototype.title
53
+ * @field
54
+ * @type String
55
+ * @example
56
+ */
57
+
58
+ /**
59
+ * How the dialog can be resized, must be one of the four contents defined below.
60
+ * <br /><br />
61
+ * <strong>CKEDITOR.DIALOG_RESIZE_NONE</strong><br />
62
+ * <strong>CKEDITOR.DIALOG_RESIZE_WIDTH</strong><br />
63
+ * <strong>CKEDITOR.DIALOG_RESIZE_HEIGHT</strong><br />
64
+ * <strong>CKEDITOR.DIALOG_RESIZE_BOTH</strong><br />
65
+ * @name CKEDITOR.dialog.definition.prototype.resizable
66
+ * @field
67
+ * @type Number
68
+ * @default CKEDITOR.DIALOG_RESIZE_NONE
69
+ * @example
70
+ */
71
+
72
+ /**
73
+ * The minimum width of the dialog, in pixels.
74
+ * @name CKEDITOR.dialog.definition.prototype.minWidth
75
+ * @field
76
+ * @type Number
77
+ * @default 600
78
+ * @example
79
+ */
80
+
81
+ /**
82
+ * The minimum height of the dialog, in pixels.
83
+ * @name CKEDITOR.dialog.definition.prototype.minHeight
84
+ * @field
85
+ * @type Number
86
+ * @default 400
87
+ * @example
88
+ */
89
+
90
+
91
+ /**
92
+ * The initial width of the dialog, in pixels.
93
+ * @name CKEDITOR.dialog.definition.prototype.width
94
+ * @field
95
+ * @type Number
96
+ * @default @CKEDITOR.dialog.definition.prototype.minWidth
97
+ * @since 3.5.3
98
+ * @example
99
+ */
100
+
101
+ /**
102
+ * The initial height of the dialog, in pixels.
103
+ * @name CKEDITOR.dialog.definition.prototype.height
104
+ * @field
105
+ * @type Number
106
+ * @default @CKEDITOR.dialog.definition.prototype.minHeight
107
+ * @since 3.5.3
108
+ * @example
109
+ */
110
+
111
+ /**
112
+ * The buttons in the dialog, defined as an array of
113
+ * {@link CKEDITOR.dialog.definition.button} objects.
114
+ * @name CKEDITOR.dialog.definition.prototype.buttons
115
+ * @field
116
+ * @type Array
117
+ * @default [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ]
118
+ * @example
119
+ */
120
+
121
+ /**
122
+ * The contents in the dialog, defined as an array of
123
+ * {@link CKEDITOR.dialog.definition.content} objects. Required.
124
+ * @name CKEDITOR.dialog.definition.prototype.contents
125
+ * @field
126
+ * @type Array
127
+ * @example
128
+ */
129
+
130
+ /**
131
+ * The function to execute when OK is pressed.
132
+ * @name CKEDITOR.dialog.definition.prototype.onOk
133
+ * @field
134
+ * @type Function
135
+ * @example
136
+ */
137
+
138
+ /**
139
+ * The function to execute when Cancel is pressed.
140
+ * @name CKEDITOR.dialog.definition.prototype.onCancel
141
+ * @field
142
+ * @type Function
143
+ * @example
144
+ */
145
+
146
+ /**
147
+ * The function to execute when the dialog is displayed for the first time.
148
+ * @name CKEDITOR.dialog.definition.prototype.onLoad
149
+ * @field
150
+ * @type Function
151
+ * @example
152
+ */
153
+
154
+ /**
155
+ * The function to execute when the dialog is loaded (executed every time the dialog is opened).
156
+ * @name CKEDITOR.dialog.definition.prototype.onShow
157
+ * @field
158
+ * @type Function
159
+ * @example
160
+ */
161
+
162
+ /**
163
+ * <div class="notapi">This class is not really part of the API. It just illustrates the properties
164
+ * that developers can use to define and create dialog content pages.</div>
165
+ * @name CKEDITOR.dialog.definition.content
166
+ * @constructor
167
+ * @example
168
+ * // There is no constructor for this class, the user just has to define an
169
+ * // object with the appropriate properties.
170
+ */
171
+
172
+ /**
173
+ * The id of the content page.
174
+ * @name CKEDITOR.dialog.definition.content.prototype.id
175
+ * @field
176
+ * @type String
177
+ * @example
178
+ */
179
+
180
+ /**
181
+ * The tab label of the content page.
182
+ * @name CKEDITOR.dialog.definition.content.prototype.label
183
+ * @field
184
+ * @type String
185
+ * @example
186
+ */
187
+
188
+ /**
189
+ * The popup message of the tab label.
190
+ * @name CKEDITOR.dialog.definition.content.prototype.title
191
+ * @field
192
+ * @type String
193
+ * @example
194
+ */
195
+
196
+ /**
197
+ * The CTRL hotkey for switching to the tab.
198
+ * @name CKEDITOR.dialog.definition.content.prototype.accessKey
199
+ * @field
200
+ * @type String
201
+ * @example
202
+ * contentDefinition.accessKey = 'Q'; // Switch to this page when CTRL-Q is pressed.
203
+ */
204
+
205
+ /**
206
+ * The UI elements contained in this content page, defined as an array of
207
+ * {@link CKEDITOR.dialog.definition.uiElement} objects.
208
+ * @name CKEDITOR.dialog.definition.content.prototype.elements
209
+ * @field
210
+ * @type Array
211
+ * @example
212
+ */
213
+
214
+ /**
215
+ * The definition of user interface element (textarea, radio etc).
216
+ * <div class="notapi">This class is not really part of the API. It just illustrates the properties
217
+ * that developers can use to define and create dialog UI elements.</div>
218
+ * @name CKEDITOR.dialog.definition.uiElement
219
+ * @constructor
220
+ * @see CKEDITOR.ui.dialog.uiElement
221
+ * @example
222
+ * // There is no constructor for this class, the user just has to define an
223
+ * // object with the appropriate properties.
224
+ */
225
+
226
+ /**
227
+ * The id of the UI element.
228
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.id
229
+ * @field
230
+ * @type String
231
+ * @example
232
+ */
233
+
234
+ /**
235
+ * The type of the UI element. Required.
236
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.type
237
+ * @field
238
+ * @type String
239
+ * @example
240
+ */
241
+
242
+ /**
243
+ * The popup label of the UI element.
244
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.title
245
+ * @field
246
+ * @type String
247
+ * @example
248
+ */
249
+
250
+ /**
251
+ * CSS class names to append to the UI element.
252
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.className
253
+ * @field
254
+ * @type String
255
+ * @example
256
+ */
257
+
258
+ /**
259
+ * Inline CSS classes to append to the UI element.
260
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.style
261
+ * @field
262
+ * @type String
263
+ * @example
264
+ */
265
+
266
+ /**
267
+ * Function to execute the first time the UI element is displayed.
268
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.onLoad
269
+ * @field
270
+ * @type Function
271
+ * @example
272
+ */
273
+
274
+ /**
275
+ * Function to execute whenever the UI element's parent dialog is displayed.
276
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.onShow
277
+ * @field
278
+ * @type Function
279
+ * @example
280
+ */
281
+
282
+ /**
283
+ * Function to execute whenever the UI element's parent dialog is closed.
284
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.onHide
285
+ * @field
286
+ * @type Function
287
+ * @example
288
+ */
289
+
290
+ /**
291
+ * Function to execute whenever the UI element's parent dialog's {@link CKEDITOR.dialog.definition.setupContent} method is executed.
292
+ * It usually takes care of the respective UI element as a standalone element.
293
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.setup
294
+ * @field
295
+ * @type Function
296
+ * @example
297
+ */
298
+
299
+ /**
300
+ * Function to execute whenever the UI element's parent dialog's {@link CKEDITOR.dialog.definition.commitContent} method is executed.
301
+ * It usually takes care of the respective UI element as a standalone element.
302
+ * @name CKEDITOR.dialog.definition.uiElement.prototype.commit
303
+ * @field
304
+ * @type Function
305
+ * @example
306
+ */
307
+
308
+ // ----- hbox -----
309
+
310
+ /**
311
+ * Horizontal layout box for dialog UI elements, auto-expends to available width of container.
312
+ * <div class="notapi">
313
+ * This class is not really part of the API. It just illustrates the properties
314
+ * that developers can use to define and create horizontal layouts.
315
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.hbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
316
+ * </div>
317
+ * @name CKEDITOR.dialog.definition.hbox
318
+ * @extends CKEDITOR.dialog.definition.uiElement
319
+ * @constructor
320
+ * @example
321
+ * // There is no constructor for this class, the user just has to define an
322
+ * // object with the appropriate properties.
323
+ *
324
+ * // Example:
325
+ * {
326
+ * <b>type : 'hbox',</b>
327
+ * widths : [ '25%', '25%', '50%' ],
328
+ * children :
329
+ * [
330
+ * {
331
+ * type : 'text',
332
+ * id : 'id1',
333
+ * width : '40px',
334
+ * },
335
+ * {
336
+ * type : 'text',
337
+ * id : 'id2',
338
+ * width : '40px',
339
+ * },
340
+ * {
341
+ * type : 'text',
342
+ * id : 'id3'
343
+ * }
344
+ * ]
345
+ * }
346
+ */
347
+
348
+ /**
349
+ * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container.
350
+ * @name CKEDITOR.dialog.definition.hbox.prototype.children
351
+ * @field
352
+ * @type Array
353
+ * @example
354
+ */
355
+
356
+ /**
357
+ * (Optional) The widths of child cells.
358
+ * @name CKEDITOR.dialog.definition.hbox.prototype.widths
359
+ * @field
360
+ * @type Array
361
+ * @example
362
+ */
363
+
364
+ /**
365
+ * (Optional) The height of the layout.
366
+ * @name CKEDITOR.dialog.definition.hbox.prototype.height
367
+ * @field
368
+ * @type Number
369
+ * @example
370
+ */
371
+
372
+ /**
373
+ * The CSS styles to apply to this element.
374
+ * @name CKEDITOR.dialog.definition.hbox.prototype.styles
375
+ * @field
376
+ * @type String
377
+ * @example
378
+ */
379
+
380
+ /**
381
+ * (Optional) The padding width inside child cells. Example: 0, 1.
382
+ * @name CKEDITOR.dialog.definition.hbox.prototype.padding
383
+ * @field
384
+ * @type Number
385
+ * @example
386
+ */
387
+
388
+ /**
389
+ * (Optional) The alignment of the whole layout. Example: center, top.
390
+ * @name CKEDITOR.dialog.definition.hbox.prototype.align
391
+ * @field
392
+ * @type String
393
+ * @example
394
+ */
395
+
396
+ // ----- vbox -----
397
+
398
+ /**
399
+ * Vertical layout box for dialog UI elements.
400
+ * <div class="notapi">
401
+ * This class is not really part of the API. It just illustrates the properties
402
+ * that developers can use to define and create vertical layouts.
403
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.vbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
404
+ * </div>
405
+ * <style type="text/css">.details .detailList {display:none;} </style>
406
+ * @name CKEDITOR.dialog.definition.vbox
407
+ * @extends CKEDITOR.dialog.definition.uiElement
408
+ * @constructor
409
+ * @example
410
+ * // There is no constructor for this class, the user just has to define an
411
+ * // object with the appropriate properties.
412
+ *
413
+ * // Example:
414
+ * {
415
+ * <b>type : 'vbox',</b>
416
+ * align : 'right',
417
+ * width : '200px',
418
+ * children :
419
+ * [
420
+ * {
421
+ * type : 'text',
422
+ * id : 'age',
423
+ * label : 'Age'
424
+ * },
425
+ * {
426
+ * type : 'text',
427
+ * id : 'sex',
428
+ * label : 'Sex'
429
+ * },
430
+ * {
431
+ * type : 'text',
432
+ * id : 'nationality',
433
+ * label : 'Nationality'
434
+ * }
435
+ * ]
436
+ * }
437
+ */
438
+
439
+ /**
440
+ * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container.
441
+ * @name CKEDITOR.dialog.definition.vbox.prototype.children
442
+ * @field
443
+ * @type Array
444
+ * @example
445
+ */
446
+
447
+ /**
448
+ * (Optional) The width of the layout.
449
+ * @name CKEDITOR.dialog.definition.vbox.prototype.width
450
+ * @field
451
+ * @type Array
452
+ * @example
453
+ */
454
+
455
+ /**
456
+ * (Optional) The heights of individual cells.
457
+ * @name CKEDITOR.dialog.definition.vbox.prototype.heights
458
+ * @field
459
+ * @type Number
460
+ * @example
461
+ */
462
+
463
+ /**
464
+ * The CSS styles to apply to this element.
465
+ * @name CKEDITOR.dialog.definition.vbox.prototype.styles
466
+ * @field
467
+ * @type String
468
+ * @example
469
+ */
470
+
471
+ /**
472
+ * (Optional) The padding width inside child cells. Example: 0, 1.
473
+ * @name CKEDITOR.dialog.definition.vbox.prototype.padding
474
+ * @field
475
+ * @type Number
476
+ * @example
477
+ */
478
+
479
+ /**
480
+ * (Optional) The alignment of the whole layout. Example: center, top.
481
+ * @name CKEDITOR.dialog.definition.vbox.prototype.align
482
+ * @field
483
+ * @type String
484
+ * @example
485
+ */
486
+
487
+ /**
488
+ * (Optional) Whether the layout should expand vertically to fill its container.
489
+ * @name CKEDITOR.dialog.definition.vbox.prototype.expand
490
+ * @field
491
+ * @type Boolean
492
+ * @example
493
+ */
494
+
495
+ // ----- button ------
496
+
497
+ /**
498
+ * The definition of a button.
499
+ * <div class="notapi">
500
+ * This class is not really part of the API. It just illustrates the properties
501
+ * that developers can use to define and create buttons.
502
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.button} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
503
+ * </div>
504
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
505
+ * @name CKEDITOR.dialog.definition.button
506
+ * @extends CKEDITOR.dialog.definition.uiElement
507
+ * @constructor
508
+ * @example
509
+ * // There is no constructor for this class, the user just has to define an
510
+ * // object with the appropriate properties.
511
+ *
512
+ * // Example:
513
+ * {
514
+ * <b>type : 'button',</b>
515
+ * id : 'buttonId',
516
+ * label : 'Click me',
517
+ * title : 'My title',
518
+ * onClick : function() {
519
+ * // this = CKEDITOR.ui.dialog.button
520
+ * alert( 'Clicked: ' + this.id );
521
+ * }
522
+ * }
523
+ */
524
+
525
+ /**
526
+ * Whether the button is disabled.
527
+ * @name CKEDITOR.dialog.definition.button.prototype.disabled
528
+ * @type Boolean
529
+ * @field
530
+ * @example
531
+ */
532
+
533
+ /**
534
+ * The label of the UI element.
535
+ * @name CKEDITOR.dialog.definition.button.prototype.label
536
+ * @type String
537
+ * @field
538
+ * @example
539
+ */
540
+
541
+ // ----- checkbox ------
542
+
543
+ /**
544
+ * The definition of a checkbox element.
545
+ * <div class="notapi">
546
+ * This class is not really part of the API. It just illustrates the properties
547
+ * that developers can use to define and create groups of checkbox buttons.
548
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.checkbox} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
549
+ * </div>
550
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
551
+ * @name CKEDITOR.dialog.definition.checkbox
552
+ * @extends CKEDITOR.dialog.definition.uiElement
553
+ * @constructor
554
+ * @example
555
+ * // There is no constructor for this class, the user just has to define an
556
+ * // object with the appropriate properties.
557
+ *
558
+ * // Example:
559
+ * {
560
+ * <b>type : 'checkbox',</b>
561
+ * id : 'agree',
562
+ * label : 'I agree',
563
+ * 'default' : 'checked',
564
+ * onClick : function() {
565
+ * // this = CKEDITOR.ui.dialog.checkbox
566
+ * alert( 'Checked: ' + this.getValue() );
567
+ * }
568
+ * }
569
+ */
570
+
571
+ /**
572
+ * (Optional) The validation function.
573
+ * @name CKEDITOR.dialog.definition.checkbox.prototype.validate
574
+ * @field
575
+ * @type Function
576
+ * @example
577
+ */
578
+
579
+ /**
580
+ * The label of the UI element.
581
+ * @name CKEDITOR.dialog.definition.checkbox.prototype.label
582
+ * @type String
583
+ * @field
584
+ * @example
585
+ */
586
+
587
+ /**
588
+ * The default state.
589
+ * @name CKEDITOR.dialog.definition.checkbox.prototype.default
590
+ * @type String
591
+ * @field
592
+ * @default
593
+ * '' (unchecked)
594
+ * @example
595
+ */
596
+
597
+ // ----- file -----
598
+
599
+ /**
600
+ * The definition of a file upload input.
601
+ * <div class="notapi">
602
+ * This class is not really part of the API. It just illustrates the properties
603
+ * that developers can use to define and create file upload elements.
604
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.file} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
605
+ * </div>
606
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
607
+ * @name CKEDITOR.dialog.definition.file
608
+ * @extends CKEDITOR.dialog.definition.uiElement
609
+ * @constructor
610
+ * @example
611
+ * // There is no constructor for this class, the user just has to define an
612
+ * // object with the appropriate properties.
613
+ *
614
+ * // Example:
615
+ * {
616
+ * <b>type : 'file'</b>,
617
+ * id : 'upload',
618
+ * label : 'Select file from your computer',
619
+ * size : 38
620
+ * },
621
+ * {
622
+ * type : 'fileButton',
623
+ * id : 'fileId',
624
+ * label : 'Upload file',
625
+ * 'for' : [ 'tab1', 'upload' ]
626
+ * filebrowser : {
627
+ * onSelect : function( fileUrl, data ) {
628
+ * alert( 'Successfully uploaded: ' + fileUrl );
629
+ * }
630
+ * }
631
+ * }
632
+ */
633
+
634
+ /**
635
+ * (Optional) The validation function.
636
+ * @name CKEDITOR.dialog.definition.file.prototype.validate
637
+ * @field
638
+ * @type Function
639
+ * @example
640
+ */
641
+
642
+ /**
643
+ * The label of the UI element.
644
+ * @name CKEDITOR.dialog.definition.file.prototype.label
645
+ * @type String
646
+ * @field
647
+ * @example
648
+ */
649
+
650
+ /**
651
+ * (Optional) The action attribute of the form element associated with this file upload input.
652
+ * If empty, CKEditor will use path to server connector for currently opened folder.
653
+ * @name CKEDITOR.dialog.definition.file.prototype.action
654
+ * @type String
655
+ * @field
656
+ * @example
657
+ */
658
+
659
+ /**
660
+ * The size of the UI element.
661
+ * @name CKEDITOR.dialog.definition.file.prototype.size
662
+ * @type Number
663
+ * @field
664
+ * @example
665
+ */
666
+
667
+ // ----- fileButton -----
668
+
669
+ /**
670
+ * The definition of a button for submitting the file in a file upload input.
671
+ * <div class="notapi">
672
+ * This class is not really part of the API. It just illustrates the properties
673
+ * that developers can use to define and create a button for submitting the file in a file upload input.
674
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.fileButton} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
675
+ * </div>
676
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
677
+ * @name CKEDITOR.dialog.definition.fileButton
678
+ * @extends CKEDITOR.dialog.definition.uiElement
679
+ * @constructor
680
+ * @example
681
+ * // There is no constructor for this class, the user just has to define an
682
+ * // object with the appropriate properties.
683
+ *
684
+ * // Example:
685
+ * {
686
+ * type : 'file',
687
+ * id : 'upload',
688
+ * label : 'Select file from your computer',
689
+ * size : 38
690
+ * },
691
+ * {
692
+ * <b>type : 'fileButton'</b>,
693
+ * id : 'fileId',
694
+ * label : 'Upload file',
695
+ * 'for' : [ 'tab1', 'upload' ]
696
+ * filebrowser : {
697
+ * onSelect : function( fileUrl, data ) {
698
+ * alert( 'Successfully uploaded: ' + fileUrl );
699
+ * }
700
+ * }
701
+ * }
702
+ */
703
+
704
+ /**
705
+ * (Optional) The validation function.
706
+ * @name CKEDITOR.dialog.definition.fileButton.prototype.validate
707
+ * @field
708
+ * @type Function
709
+ * @example
710
+ */
711
+
712
+ /**
713
+ * The label of the UI element.
714
+ * @name CKEDITOR.dialog.definition.fileButton.prototype.label
715
+ * @type String
716
+ * @field
717
+ * @example
718
+ */
719
+
720
+ /**
721
+ * The instruction for CKEditor how to deal with file upload.
722
+ * By default, the file and fileButton elements will not work "as expected" if this attribute is not set.
723
+ * @name CKEDITOR.dialog.definition.fileButton.prototype.filebrowser
724
+ * @type String|Object
725
+ * @field
726
+ * @example
727
+ * // Update field with id 'txtUrl' in the 'tab1' tab when file is uploaded.
728
+ * filebrowser : 'tab1:txtUrl'
729
+ *
730
+ * // Call custom onSelect function when file is successfully uploaded.
731
+ * filebrowser : {
732
+ * onSelect : function( fileUrl, data ) {
733
+ * alert( 'Successfully uploaded: ' + fileUrl );
734
+ * }
735
+ * }
736
+ */
737
+
738
+ /**
739
+ * An array that contains pageId and elementId of the file upload input element for which this button is created.
740
+ * @name CKEDITOR.dialog.definition.fileButton.prototype.for
741
+ * @type String
742
+ * @field
743
+ * @example
744
+ * [ pageId, elementId ]
745
+ */
746
+
747
+ // ----- html -----
748
+
749
+ /**
750
+ * The definition of a raw HTML element.
751
+ * <div class="notapi">
752
+ * This class is not really part of the API. It just illustrates the properties
753
+ * that developers can use to define and create elements made from raw HTML code.
754
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.html} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
755
+ * </div>
756
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.<br />
757
+ * To access HTML elements use {@link CKEDITOR.dom.document#getById}
758
+ * @name CKEDITOR.dialog.definition.html
759
+ * @extends CKEDITOR.dialog.definition.uiElement
760
+ * @constructor
761
+ * @example
762
+ * // There is no constructor for this class, the user just has to define an
763
+ * // object with the appropriate properties.
764
+ *
765
+ * // Example 1:
766
+ * {
767
+ * <b>type : 'html',</b>
768
+ * html : '&lt;h3>This is some sample HTML content.&lt;/h3>'
769
+ * }
770
+ * @example
771
+ * // Example 2:
772
+ * // Complete sample with document.getById() call when the "Ok" button is clicked.
773
+ * var dialogDefinition =
774
+ * {
775
+ * title : 'Sample dialog',
776
+ * minWidth : 300,
777
+ * minHeight : 200,
778
+ * onOk : function() {
779
+ * // "this" is now a CKEDITOR.dialog object.
780
+ * var document = this.getElement().getDocument();
781
+ * // document = CKEDITOR.dom.document
782
+ * var element = <b>document.getById( 'myDiv' );</b>
783
+ * if ( element )
784
+ * alert( element.getHtml() );
785
+ * },
786
+ * contents : [
787
+ * {
788
+ * id : 'tab1',
789
+ * label : '',
790
+ * title : '',
791
+ * elements :
792
+ * [
793
+ * {
794
+ * <b>type : 'html',</b>
795
+ * html : '<b>&lt;div id="myDiv">Sample &lt;b>text&lt;/b>.&lt;/div></b>&lt;div id="otherId">Another div.&lt;/div>'
796
+ * },
797
+ * ]
798
+ * }
799
+ * ],
800
+ * buttons : [ CKEDITOR.dialog.cancelButton, CKEDITOR.dialog.okButton ]
801
+ * };
802
+ */
803
+
804
+ /**
805
+ * (Required) HTML code of this element.
806
+ * @name CKEDITOR.dialog.definition.html.prototype.html
807
+ * @type String
808
+ * @field
809
+ * @example
810
+ */
811
+
812
+ // ----- radio ------
813
+
814
+ /**
815
+ * The definition of a radio group.
816
+ * <div class="notapi">
817
+ * This class is not really part of the API. It just illustrates the properties
818
+ * that developers can use to define and create groups of radio buttons.
819
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.radio} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
820
+ * </div>
821
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
822
+ * @name CKEDITOR.dialog.definition.radio
823
+ * @extends CKEDITOR.dialog.definition.uiElement
824
+ * @constructor
825
+ * @example
826
+ * // There is no constructor for this class, the user just has to define an
827
+ * // object with the appropriate properties.
828
+ *
829
+ * // Example:
830
+ * {
831
+ * <b>type : 'radio',</b>
832
+ * id : 'country',
833
+ * label : 'Which country is bigger',
834
+ * items : [ [ 'France', 'FR' ], [ 'Germany', 'DE' ] ] ,
835
+ * style : 'color:green',
836
+ * 'default' : 'DE',
837
+ * onClick : function() {
838
+ * // this = CKEDITOR.ui.dialog.radio
839
+ * alert( 'Current value: ' + this.getValue() );
840
+ * }
841
+ * }
842
+ */
843
+
844
+ /**
845
+ * The default value.
846
+ * @name CKEDITOR.dialog.definition.radio.prototype.default
847
+ * @type String
848
+ * @field
849
+ * @example
850
+ */
851
+
852
+ /**
853
+ * (Optional) The validation function.
854
+ * @name CKEDITOR.dialog.definition.radio.prototype.validate
855
+ * @field
856
+ * @type Function
857
+ * @example
858
+ */
859
+
860
+ /**
861
+ * An array of options. Each option is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' is missing, then the value would be assumed to be the same as the description.
862
+ * @name CKEDITOR.dialog.definition.radio.prototype.items
863
+ * @field
864
+ * @type Array
865
+ * @example
866
+ */
867
+
868
+ /**
869
+ * The label of the UI element.
870
+ * @name CKEDITOR.dialog.definition.radio.prototype.label
871
+ * @type String
872
+ * @field
873
+ * @example
874
+ */
875
+
876
+ // ----- selectElement ------
877
+
878
+ /**
879
+ * The definition of a select element.
880
+ * <div class="notapi">
881
+ * This class is not really part of the API. It just illustrates the properties
882
+ * that developers can use to define and create select elements.
883
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.select} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
884
+ * </div>
885
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
886
+ * @name CKEDITOR.dialog.definition.select
887
+ * @extends CKEDITOR.dialog.definition.uiElement
888
+ * @constructor
889
+ * @example
890
+ * // There is no constructor for this class, the user just has to define an
891
+ * // object with the appropriate properties.
892
+ *
893
+ * // Example:
894
+ * {
895
+ * <b>type : 'select',</b>
896
+ * id : 'sport',
897
+ * label : 'Select your favourite sport',
898
+ * items : [ [ 'Basketball' ], [ 'Baseball' ], [ 'Hockey' ], [ 'Football' ] ],
899
+ * 'default' : 'Football',
900
+ * onChange : function( api ) {
901
+ * // this = CKEDITOR.ui.dialog.select
902
+ * alert( 'Current value: ' + this.getValue() );
903
+ * }
904
+ * }
905
+ */
906
+
907
+ /**
908
+ * The default value.
909
+ * @name CKEDITOR.dialog.definition.select.prototype.default
910
+ * @type String
911
+ * @field
912
+ * @example
913
+ */
914
+
915
+ /**
916
+ * (Optional) The validation function.
917
+ * @name CKEDITOR.dialog.definition.select.prototype.validate
918
+ * @field
919
+ * @type Function
920
+ * @example
921
+ */
922
+
923
+ /**
924
+ * An array of options. Each option is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' is missing, then the value would be assumed to be the same as the description.
925
+ * @name CKEDITOR.dialog.definition.select.prototype.items
926
+ * @field
927
+ * @type Array
928
+ * @example
929
+ */
930
+
931
+ /**
932
+ * (Optional) Set this to true if you'd like to have a multiple-choice select box.
933
+ * @name CKEDITOR.dialog.definition.select.prototype.multiple
934
+ * @type Boolean
935
+ * @field
936
+ * @example
937
+ * @default false
938
+ */
939
+
940
+ /**
941
+ * (Optional) The number of items to display in the select box.
942
+ * @name CKEDITOR.dialog.definition.select.prototype.size
943
+ * @type Number
944
+ * @field
945
+ * @example
946
+ */
947
+
948
+ /**
949
+ * The label of the UI element.
950
+ * @name CKEDITOR.dialog.definition.select.prototype.label
951
+ * @type String
952
+ * @field
953
+ * @example
954
+ */
955
+
956
+ // ----- textInput -----
957
+
958
+ /**
959
+ * The definition of a text field (single line).
960
+ * <div class="notapi">
961
+ * This class is not really part of the API. It just illustrates the properties
962
+ * that developers can use to define and create text fields.
963
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textInput} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
964
+ * </div>
965
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
966
+ * @name CKEDITOR.dialog.definition.textInput
967
+ * @extends CKEDITOR.dialog.definition.uiElement
968
+ * @constructor
969
+ * @example
970
+ * // There is no constructor for this class, the user just has to define an
971
+ * // object with the appropriate properties.
972
+ *
973
+ * {
974
+ * <b>type : 'text',</b>
975
+ * id : 'name',
976
+ * label : 'Your name',
977
+ * 'default' : '',
978
+ * validate : function() {
979
+ * if ( !this.getValue() )
980
+ * {
981
+ * api.openMsgDialog( '', 'Name cannot be empty.' );
982
+ * return false;
983
+ * }
984
+ * }
985
+ * }
986
+ */
987
+
988
+ /**
989
+ * The default value.
990
+ * @name CKEDITOR.dialog.definition.textInput.prototype.default
991
+ * @type String
992
+ * @field
993
+ * @example
994
+ */
995
+
996
+ /**
997
+ * (Optional) The maximum length.
998
+ * @name CKEDITOR.dialog.definition.textInput.prototype.maxLength
999
+ * @type Number
1000
+ * @field
1001
+ * @example
1002
+ */
1003
+
1004
+ /**
1005
+ * (Optional) The size of the input field.
1006
+ * @name CKEDITOR.dialog.definition.textInput.prototype.size
1007
+ * @type Number
1008
+ * @field
1009
+ * @example
1010
+ */
1011
+
1012
+ /**
1013
+ * (Optional) The validation function.
1014
+ * @name CKEDITOR.dialog.definition.textInput.prototype.validate
1015
+ * @field
1016
+ * @type Function
1017
+ * @example
1018
+ */
1019
+
1020
+ /**
1021
+ * The label of the UI element.
1022
+ * @name CKEDITOR.dialog.definition.textInput.prototype.label
1023
+ * @type String
1024
+ * @field
1025
+ * @example
1026
+ */
1027
+
1028
+ // ----- textarea ------
1029
+
1030
+ /**
1031
+ * The definition of a text field (multiple lines).
1032
+ * <div class="notapi">
1033
+ * This class is not really part of the API. It just illustrates the properties
1034
+ * that developers can use to define and create textarea.
1035
+ * <br /><br />Once the dialog is opened, the created element becomes a {@link CKEDITOR.ui.dialog.textarea} object and can be accessed with {@link CKEDITOR.dialog#getContentElement}.
1036
+ * </div>
1037
+ * For a complete example of dialog definition, please check {@link CKEDITOR.dialog.add}.
1038
+ * @name CKEDITOR.dialog.definition.textarea
1039
+ * @extends CKEDITOR.dialog.definition.uiElement
1040
+ * @constructor
1041
+ * @example
1042
+ * // There is no constructor for this class, the user just has to define an
1043
+ * // object with the appropriate properties.
1044
+ *
1045
+ * // Example:
1046
+ * {
1047
+ * <b>type : 'textarea',</b>
1048
+ * id : 'message',
1049
+ * label : 'Your comment',
1050
+ * 'default' : '',
1051
+ * validate : function() {
1052
+ * if ( this.getValue().length < 5 )
1053
+ * {
1054
+ * api.openMsgDialog( 'The comment is too short.' );
1055
+ * return false;
1056
+ * }
1057
+ * }
1058
+ * }
1059
+ */
1060
+
1061
+ /**
1062
+ * The number of rows.
1063
+ * @name CKEDITOR.dialog.definition.textarea.prototype.rows
1064
+ * @type Number
1065
+ * @field
1066
+ * @example
1067
+ */
1068
+
1069
+ /**
1070
+ * The number of columns.
1071
+ * @name CKEDITOR.dialog.definition.textarea.prototype.cols
1072
+ * @type Number
1073
+ * @field
1074
+ * @example
1075
+ */
1076
+
1077
+ /**
1078
+ * (Optional) The validation function.
1079
+ * @name CKEDITOR.dialog.definition.textarea.prototype.validate
1080
+ * @field
1081
+ * @type Function
1082
+ * @example
1083
+ */
1084
+
1085
+ /**
1086
+ * The default value.
1087
+ * @name CKEDITOR.dialog.definition.textarea.prototype.default
1088
+ * @type String
1089
+ * @field
1090
+ * @example
1091
+ */
1092
+
1093
+ /**
1094
+ * The label of the UI element.
1095
+ * @name CKEDITOR.dialog.definition.textarea.prototype.label
1096
+ * @type String
1097
+ * @field
1098
+ * @example
1099
+ */