kuztuscms 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. data/CHANGELOG.rdoc +5 -0
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.rdoc +26 -1
  5. data/app/assets/javascripts/kuztuscms/tiny_mce/jquery.tinymce.js +1 -0
  6. data/app/assets/javascripts/kuztuscms/tiny_mce/langs/en.js +1 -0
  7. data/app/assets/javascripts/kuztuscms/tiny_mce/license.txt +504 -0
  8. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  9. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  10. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  11. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/js/rule.js +43 -0
  12. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -0
  13. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/rule.htm +58 -0
  14. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  15. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  16. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  17. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/image.htm +235 -0
  18. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  19. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/js/image.js +462 -0
  20. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -0
  21. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  22. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  23. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  24. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/js/advlink.js +539 -0
  25. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -0
  26. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/link.htm +338 -0
  27. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  28. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlist/editor_plugin_src.js +176 -0
  29. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autolink/editor_plugin.js +1 -0
  30. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autolink/editor_plugin_src.js +174 -0
  31. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  32. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autoresize/editor_plugin_src.js +119 -0
  33. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  34. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autosave/editor_plugin_src.js +431 -0
  35. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autosave/langs/en.js +4 -0
  36. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  37. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  38. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  39. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/contextmenu/editor_plugin_src.js +161 -0
  40. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  41. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  42. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  43. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  44. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/emotions.htm +42 -0
  45. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  46. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  47. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  48. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  49. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  50. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  51. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  52. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  53. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  54. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  55. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  56. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  57. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  58. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  59. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  60. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  61. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/js/emotions.js +43 -0
  62. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -0
  63. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/dialog.htm +22 -0
  64. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/editor_plugin.js +1 -0
  65. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  66. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/img/example.gif +0 -0
  67. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/js/dialog.js +19 -0
  68. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/langs/en.js +3 -0
  69. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  70. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example_dependency/editor_plugin.js +1 -0
  71. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example_dependency/editor_plugin_src.js +50 -0
  72. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/css/fullpage.css +143 -0
  73. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  74. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/editor_plugin_src.js +405 -0
  75. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/fullpage.htm +259 -0
  76. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/js/fullpage.js +232 -0
  77. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -0
  78. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  79. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -0
  80. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
  81. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  82. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  83. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  84. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +699 -0
  85. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  86. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  87. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  88. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  89. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  90. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  91. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  92. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  93. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  94. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  95. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  96. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  97. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/layer/editor_plugin_src.js +262 -0
  98. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  99. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +139 -0
  100. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/lists/editor_plugin.js +1 -0
  101. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/lists/editor_plugin_src.js +951 -0
  102. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/css/media.css +17 -0
  103. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/editor_plugin.js +1 -0
  104. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/editor_plugin_src.js +890 -0
  105. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/js/embed.js +73 -0
  106. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/js/media.js +470 -0
  107. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/langs/en_dlg.js +1 -0
  108. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/media.htm +922 -0
  109. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/moxieplayer.swf +0 -0
  110. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  111. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +54 -0
  112. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  113. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/noneditable/editor_plugin_src.js +438 -0
  114. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  115. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  116. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  117. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/editor_plugin_src.js +871 -0
  118. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  119. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  120. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/langs/en_dlg.js +1 -0
  121. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/pastetext.htm +27 -0
  122. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/pasteword.htm +21 -0
  123. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  124. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  125. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/example.html +28 -0
  126. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  127. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/preview.html +17 -0
  128. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/print/editor_plugin.js +1 -0
  129. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  130. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/save/editor_plugin.js +1 -0
  131. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  132. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  133. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  134. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/editor_plugin_src.js +61 -0
  135. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/js/searchreplace.js +142 -0
  136. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -0
  137. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
  138. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  139. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  140. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/editor_plugin_src.js +436 -0
  141. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  142. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/css/props.css +14 -0
  143. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/editor_plugin.js +1 -0
  144. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/editor_plugin_src.js +71 -0
  145. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/js/props.js +709 -0
  146. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/langs/en_dlg.js +1 -0
  147. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/props.htm +845 -0
  148. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/readme.txt +19 -0
  149. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  150. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/tabfocus/editor_plugin_src.js +122 -0
  151. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/cell.htm +180 -0
  152. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/css/cell.css +17 -0
  153. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/css/row.css +25 -0
  154. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/css/table.css +13 -0
  155. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/editor_plugin.js +1 -0
  156. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/editor_plugin_src.js +1428 -0
  157. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/cell.js +319 -0
  158. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  159. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/row.js +237 -0
  160. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/table.js +489 -0
  161. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/langs/en_dlg.js +1 -0
  162. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/merge_cells.htm +32 -0
  163. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/row.htm +158 -0
  164. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/table.htm +188 -0
  165. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/blank.htm +12 -0
  166. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/css/template.css +23 -0
  167. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/editor_plugin.js +1 -0
  168. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  169. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/js/template.js +106 -0
  170. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/langs/en_dlg.js +1 -0
  171. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/template.htm +31 -0
  172. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualblocks/css/visualblocks.css +19 -0
  173. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualblocks/editor_plugin.js +1 -0
  174. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualblocks/editor_plugin_src.js +63 -0
  175. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  176. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
  177. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  178. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/wordcount/editor_plugin_src.js +122 -0
  179. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
  180. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
  181. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
  182. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
  183. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  184. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  185. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
  186. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  187. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  188. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
  189. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  190. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  191. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/attributes.js +111 -0
  192. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  193. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
  194. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -0
  195. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -0
  196. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
  197. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/about.htm +52 -0
  198. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/anchor.htm +26 -0
  199. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/charmap.htm +55 -0
  200. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/color_picker.htm +74 -0
  201. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/editor_template.js +1 -0
  202. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/editor_template_src.js +1467 -0
  203. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/image.htm +80 -0
  204. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  205. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/flash.gif +0 -0
  206. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/icons.gif +0 -0
  207. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  208. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
  209. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
  210. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
  211. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
  212. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/trans.gif +0 -0
  213. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/video.gif +0 -0
  214. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
  215. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/about.js +73 -0
  216. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/anchor.js +44 -0
  217. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/charmap.js +363 -0
  218. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/color_picker.js +345 -0
  219. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/image.js +251 -0
  220. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/link.js +153 -0
  221. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/source_editor.js +78 -0
  222. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/langs/en.js +1 -0
  223. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/langs/en_dlg.js +1 -0
  224. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/link.htm +57 -0
  225. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/shortcuts.htm +47 -0
  226. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/content.css +51 -0
  227. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  228. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  229. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  230. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  231. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  232. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  233. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  234. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/ui.css +215 -0
  235. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/highcontrast/content.css +25 -0
  236. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  237. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/highcontrast/ui.css +102 -0
  238. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/content.css +49 -0
  239. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -0
  240. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  241. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  242. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  243. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/ui.css +218 -0
  244. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  245. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  246. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/source_editor.htm +25 -0
  247. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/editor_template.js +1 -0
  248. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/editor_template_src.js +84 -0
  249. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/img/icons.gif +0 -0
  250. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/langs/en.js +1 -0
  251. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/default/content.css +25 -0
  252. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  253. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  254. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  255. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  256. data/app/assets/javascripts/kuztuscms/tiny_mce/tiny_mce.js +1 -0
  257. data/app/assets/javascripts/kuztuscms/tiny_mce/tiny_mce_popup.js +5 -0
  258. data/app/assets/javascripts/kuztuscms/tiny_mce/tiny_mce_src.js +16573 -0
  259. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/editable_selects.js +70 -0
  260. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/form_utils.js +210 -0
  261. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/mctabs.js +162 -0
  262. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/validate.js +252 -0
  263. data/app/assets/stylesheets/kuztuscms/tiny_mce.css +105 -0
  264. data/app/views/kuztuscms/articles/edit.html.erb +1 -0
  265. data/app/views/kuztuscms/articles/new.html.erb +1 -0
  266. data/app/views/kuztuscms/articles/show.html.erb +1 -1
  267. data/app/views/kuztuscms/pages/show.html.erb +1 -1
  268. data/app/views/kuztuscms/shared/_tiny_mce.html.erb +40 -0
  269. data/lib/kuztuscms/version.rb +1 -1
  270. data/spec/dummy/app/assets/stylesheets/application.css +2 -0
  271. metadata +282 -22
@@ -0,0 +1,489 @@
1
+ tinyMCEPopup.requireLangPack();
2
+
3
+ var action, orgTableWidth, orgTableHeight, dom = tinyMCEPopup.editor.dom;
4
+
5
+ function insertTable() {
6
+ var formObj = document.forms[0];
7
+ var inst = tinyMCEPopup.editor, dom = inst.dom;
8
+ var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className, caption, frame, rules;
9
+ var html = '', capEl, elm;
10
+ var cellLimit, rowLimit, colLimit;
11
+
12
+ tinyMCEPopup.restoreSelection();
13
+
14
+ if (!AutoValidator.validate(formObj)) {
15
+ tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
16
+ return false;
17
+ }
18
+
19
+ elm = dom.getParent(inst.selection.getNode(), 'table');
20
+
21
+ // Get form data
22
+ cols = formObj.elements['cols'].value;
23
+ rows = formObj.elements['rows'].value;
24
+ border = formObj.elements['border'].value != "" ? formObj.elements['border'].value : 0;
25
+ cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : "";
26
+ cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : "";
27
+ align = getSelectValue(formObj, "align");
28
+ frame = getSelectValue(formObj, "tframe");
29
+ rules = getSelectValue(formObj, "rules");
30
+ width = formObj.elements['width'].value;
31
+ height = formObj.elements['height'].value;
32
+ bordercolor = formObj.elements['bordercolor'].value;
33
+ bgcolor = formObj.elements['bgcolor'].value;
34
+ className = getSelectValue(formObj, "class");
35
+ id = formObj.elements['id'].value;
36
+ summary = formObj.elements['summary'].value;
37
+ style = formObj.elements['style'].value;
38
+ dir = formObj.elements['dir'].value;
39
+ lang = formObj.elements['lang'].value;
40
+ background = formObj.elements['backgroundimage'].value;
41
+ caption = formObj.elements['caption'].checked;
42
+
43
+ cellLimit = tinyMCEPopup.getParam('table_cell_limit', false);
44
+ rowLimit = tinyMCEPopup.getParam('table_row_limit', false);
45
+ colLimit = tinyMCEPopup.getParam('table_col_limit', false);
46
+
47
+ // Validate table size
48
+ if (colLimit && cols > colLimit) {
49
+ tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit));
50
+ return false;
51
+ } else if (rowLimit && rows > rowLimit) {
52
+ tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit));
53
+ return false;
54
+ } else if (cellLimit && cols * rows > cellLimit) {
55
+ tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit));
56
+ return false;
57
+ }
58
+
59
+ // Update table
60
+ if (action == "update") {
61
+ dom.setAttrib(elm, 'cellPadding', cellpadding, true);
62
+ dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
63
+
64
+ if (!isCssSize(border)) {
65
+ dom.setAttrib(elm, 'border', border);
66
+ } else {
67
+ dom.setAttrib(elm, 'border', '');
68
+ }
69
+
70
+ if (border == '') {
71
+ dom.setStyle(elm, 'border-width', '');
72
+ dom.setStyle(elm, 'border', '');
73
+ dom.setAttrib(elm, 'border', '');
74
+ }
75
+
76
+ dom.setAttrib(elm, 'align', align);
77
+ dom.setAttrib(elm, 'frame', frame);
78
+ dom.setAttrib(elm, 'rules', rules);
79
+ dom.setAttrib(elm, 'class', className);
80
+ dom.setAttrib(elm, 'style', style);
81
+ dom.setAttrib(elm, 'id', id);
82
+ dom.setAttrib(elm, 'summary', summary);
83
+ dom.setAttrib(elm, 'dir', dir);
84
+ dom.setAttrib(elm, 'lang', lang);
85
+
86
+ capEl = inst.dom.select('caption', elm)[0];
87
+
88
+ if (capEl && !caption)
89
+ capEl.parentNode.removeChild(capEl);
90
+
91
+ if (!capEl && caption) {
92
+ capEl = elm.ownerDocument.createElement('caption');
93
+
94
+ if (!tinymce.isIE)
95
+ capEl.innerHTML = '<br data-mce-bogus="1"/>';
96
+
97
+ elm.insertBefore(capEl, elm.firstChild);
98
+ }
99
+
100
+ if (width && inst.settings.inline_styles) {
101
+ dom.setStyle(elm, 'width', width);
102
+ dom.setAttrib(elm, 'width', '');
103
+ } else {
104
+ dom.setAttrib(elm, 'width', width, true);
105
+ dom.setStyle(elm, 'width', '');
106
+ }
107
+
108
+ // Remove these since they are not valid XHTML
109
+ dom.setAttrib(elm, 'borderColor', '');
110
+ dom.setAttrib(elm, 'bgColor', '');
111
+ dom.setAttrib(elm, 'background', '');
112
+
113
+ if (height && inst.settings.inline_styles) {
114
+ dom.setStyle(elm, 'height', height);
115
+ dom.setAttrib(elm, 'height', '');
116
+ } else {
117
+ dom.setAttrib(elm, 'height', height, true);
118
+ dom.setStyle(elm, 'height', '');
119
+ }
120
+
121
+ if (background != '')
122
+ elm.style.backgroundImage = "url('" + background + "')";
123
+ else
124
+ elm.style.backgroundImage = '';
125
+
126
+ /* if (tinyMCEPopup.getParam("inline_styles")) {
127
+ if (width != '')
128
+ elm.style.width = getCSSSize(width);
129
+ }*/
130
+
131
+ if (bordercolor != "") {
132
+ elm.style.borderColor = bordercolor;
133
+ elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle;
134
+ elm.style.borderWidth = cssSize(border);
135
+ } else
136
+ elm.style.borderColor = '';
137
+
138
+ elm.style.backgroundColor = bgcolor;
139
+ elm.style.height = getCSSSize(height);
140
+
141
+ inst.addVisual();
142
+
143
+ // Fix for stange MSIE align bug
144
+ //elm.outerHTML = elm.outerHTML;
145
+
146
+ inst.nodeChanged();
147
+ inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
148
+
149
+ // Repaint if dimensions changed
150
+ if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
151
+ inst.execCommand('mceRepaint');
152
+
153
+ tinyMCEPopup.close();
154
+ return true;
155
+ }
156
+
157
+ // Create new table
158
+ html += '<table';
159
+
160
+ html += makeAttrib('id', id);
161
+ if (!isCssSize(border)) {
162
+ html += makeAttrib('border', border);
163
+ }
164
+
165
+ html += makeAttrib('cellpadding', cellpadding);
166
+ html += makeAttrib('cellspacing', cellspacing);
167
+ html += makeAttrib('data-mce-new', '1');
168
+
169
+ if (width && inst.settings.inline_styles) {
170
+ if (style)
171
+ style += '; ';
172
+
173
+ // Force px
174
+ if (/^[0-9\.]+$/.test(width))
175
+ width += 'px';
176
+
177
+ style += 'width: ' + width;
178
+ } else
179
+ html += makeAttrib('width', width);
180
+
181
+ /* if (height) {
182
+ if (style)
183
+ style += '; ';
184
+
185
+ style += 'height: ' + height;
186
+ }*/
187
+
188
+ //html += makeAttrib('height', height);
189
+ //html += makeAttrib('bordercolor', bordercolor);
190
+ //html += makeAttrib('bgcolor', bgcolor);
191
+ html += makeAttrib('align', align);
192
+ html += makeAttrib('frame', frame);
193
+ html += makeAttrib('rules', rules);
194
+ html += makeAttrib('class', className);
195
+ html += makeAttrib('style', style);
196
+ html += makeAttrib('summary', summary);
197
+ html += makeAttrib('dir', dir);
198
+ html += makeAttrib('lang', lang);
199
+ html += '>';
200
+
201
+ if (caption) {
202
+ if (!tinymce.isIE)
203
+ html += '<caption><br data-mce-bogus="1"/></caption>';
204
+ else
205
+ html += '<caption></caption>';
206
+ }
207
+
208
+ for (var y=0; y<rows; y++) {
209
+ html += "<tr>";
210
+
211
+ for (var x=0; x<cols; x++) {
212
+ if (!tinymce.isIE)
213
+ html += '<td><br data-mce-bogus="1"/></td>';
214
+ else
215
+ html += '<td></td>';
216
+ }
217
+
218
+ html += "</tr>";
219
+ }
220
+
221
+ html += "</table>";
222
+
223
+ // Move table
224
+ if (inst.settings.fix_table_elements) {
225
+ var patt = '';
226
+
227
+ inst.focus();
228
+ inst.selection.setContent('<br class="_mce_marker" />');
229
+
230
+ tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) {
231
+ if (patt)
232
+ patt += ',';
233
+
234
+ patt += n + ' ._mce_marker';
235
+ });
236
+
237
+ tinymce.each(inst.dom.select(patt), function(n) {
238
+ inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n);
239
+ });
240
+
241
+ dom.setOuterHTML(dom.select('br._mce_marker')[0], html);
242
+ } else
243
+ inst.execCommand('mceInsertContent', false, html);
244
+
245
+ tinymce.each(dom.select('table[data-mce-new]'), function(node) {
246
+ var tdorth = dom.select('td,th', node);
247
+
248
+ // Fixes a bug in IE where the caret cannot be placed after the table if the table is at the end of the document
249
+ if (tinymce.isIE && node.nextSibling == null) {
250
+ dom.insertAfter(dom.create('p'), node);
251
+ }
252
+
253
+ try {
254
+ // IE9 might fail to do this selection
255
+ inst.selection.setCursorLocation(tdorth[0], 0);
256
+ } catch (ex) {
257
+ // Ignore
258
+ }
259
+
260
+ dom.setAttrib(node, 'data-mce-new', '');
261
+ });
262
+
263
+ inst.addVisual();
264
+ inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
265
+
266
+ tinyMCEPopup.close();
267
+ }
268
+
269
+ function makeAttrib(attrib, value) {
270
+ var formObj = document.forms[0];
271
+ var valueElm = formObj.elements[attrib];
272
+
273
+ if (typeof(value) == "undefined" || value == null) {
274
+ value = "";
275
+
276
+ if (valueElm)
277
+ value = valueElm.value;
278
+ }
279
+
280
+ if (value == "")
281
+ return "";
282
+
283
+ // XML encode it
284
+ value = value.replace(/&/g, '&amp;');
285
+ value = value.replace(/\"/g, '&quot;');
286
+ value = value.replace(/</g, '&lt;');
287
+ value = value.replace(/>/g, '&gt;');
288
+
289
+ return ' ' + attrib + '="' + value + '"';
290
+ }
291
+
292
+ function init() {
293
+ tinyMCEPopup.resizeToInnerSize();
294
+
295
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
296
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
297
+ document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
298
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
299
+
300
+ var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', '');
301
+ var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
302
+ var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules = "", frame = "";
303
+ var inst = tinyMCEPopup.editor, dom = inst.dom;
304
+ var formObj = document.forms[0];
305
+ var elm = dom.getParent(inst.selection.getNode(), "table");
306
+
307
+ action = tinyMCEPopup.getWindowArg('action');
308
+
309
+ if (!action)
310
+ action = elm ? "update" : "insert";
311
+
312
+ if (elm && action != "insert") {
313
+ var rowsAr = elm.rows;
314
+ var cols = 0;
315
+ for (var i=0; i<rowsAr.length; i++)
316
+ if (rowsAr[i].cells.length > cols)
317
+ cols = rowsAr[i].cells.length;
318
+
319
+ cols = cols;
320
+ rows = rowsAr.length;
321
+
322
+ st = dom.parseStyle(dom.getAttrib(elm, "style"));
323
+ border = trimSize(getStyle(elm, 'border', 'borderWidth'));
324
+ cellpadding = dom.getAttrib(elm, 'cellpadding', "");
325
+ cellspacing = dom.getAttrib(elm, 'cellspacing', "");
326
+ width = trimSize(getStyle(elm, 'width', 'width'));
327
+ height = trimSize(getStyle(elm, 'height', 'height'));
328
+ bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));
329
+ bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));
330
+ align = dom.getAttrib(elm, 'align', align);
331
+ frame = dom.getAttrib(elm, 'frame');
332
+ rules = dom.getAttrib(elm, 'rules');
333
+ className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, ''));
334
+ id = dom.getAttrib(elm, 'id');
335
+ summary = dom.getAttrib(elm, 'summary');
336
+ style = dom.serializeStyle(st);
337
+ dir = dom.getAttrib(elm, 'dir');
338
+ lang = dom.getAttrib(elm, 'lang');
339
+ background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
340
+ formObj.caption.checked = elm.getElementsByTagName('caption').length > 0;
341
+
342
+ orgTableWidth = width;
343
+ orgTableHeight = height;
344
+
345
+ action = "update";
346
+ formObj.insert.value = inst.getLang('update');
347
+ }
348
+
349
+ addClassesToList('class', "table_styles");
350
+ TinyMCE_EditableSelects.init();
351
+
352
+ // Update form
353
+ selectByValue(formObj, 'align', align);
354
+ selectByValue(formObj, 'tframe', frame);
355
+ selectByValue(formObj, 'rules', rules);
356
+ selectByValue(formObj, 'class', className, true, true);
357
+ formObj.cols.value = cols;
358
+ formObj.rows.value = rows;
359
+ formObj.border.value = border;
360
+ formObj.cellpadding.value = cellpadding;
361
+ formObj.cellspacing.value = cellspacing;
362
+ formObj.width.value = width;
363
+ formObj.height.value = height;
364
+ formObj.bordercolor.value = bordercolor;
365
+ formObj.bgcolor.value = bgcolor;
366
+ formObj.id.value = id;
367
+ formObj.summary.value = summary;
368
+ formObj.style.value = style;
369
+ formObj.dir.value = dir;
370
+ formObj.lang.value = lang;
371
+ formObj.backgroundimage.value = background;
372
+
373
+ updateColor('bordercolor_pick', 'bordercolor');
374
+ updateColor('bgcolor_pick', 'bgcolor');
375
+
376
+ // Resize some elements
377
+ if (isVisible('backgroundimagebrowser'))
378
+ document.getElementById('backgroundimage').style.width = '180px';
379
+
380
+ // Disable some fields in update mode
381
+ if (action == "update") {
382
+ formObj.cols.disabled = true;
383
+ formObj.rows.disabled = true;
384
+ }
385
+ }
386
+
387
+ function changedSize() {
388
+ var formObj = document.forms[0];
389
+ var st = dom.parseStyle(formObj.style.value);
390
+
391
+ /* var width = formObj.width.value;
392
+ if (width != "")
393
+ st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : "";
394
+ else
395
+ st['width'] = "";*/
396
+
397
+ var height = formObj.height.value;
398
+ if (height != "")
399
+ st['height'] = getCSSSize(height);
400
+ else
401
+ st['height'] = "";
402
+
403
+ formObj.style.value = dom.serializeStyle(st);
404
+ }
405
+
406
+ function isCssSize(value) {
407
+ return /^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)$/.test(value);
408
+ }
409
+
410
+ function cssSize(value, def) {
411
+ value = tinymce.trim(value || def);
412
+
413
+ if (!isCssSize(value)) {
414
+ return parseInt(value, 10) + 'px';
415
+ }
416
+
417
+ return value;
418
+ }
419
+
420
+ function changedBackgroundImage() {
421
+ var formObj = document.forms[0];
422
+ var st = dom.parseStyle(formObj.style.value);
423
+
424
+ st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
425
+
426
+ formObj.style.value = dom.serializeStyle(st);
427
+ }
428
+
429
+ function changedBorder() {
430
+ var formObj = document.forms[0];
431
+ var st = dom.parseStyle(formObj.style.value);
432
+
433
+ // Update border width if the element has a color
434
+ if (formObj.border.value != "" && (isCssSize(formObj.border.value) || formObj.bordercolor.value != ""))
435
+ st['border-width'] = cssSize(formObj.border.value);
436
+ else {
437
+ if (!formObj.border.value) {
438
+ st['border'] = '';
439
+ st['border-width'] = '';
440
+ }
441
+ }
442
+
443
+ formObj.style.value = dom.serializeStyle(st);
444
+ }
445
+
446
+ function changedColor() {
447
+ var formObj = document.forms[0];
448
+ var st = dom.parseStyle(formObj.style.value);
449
+
450
+ st['background-color'] = formObj.bgcolor.value;
451
+
452
+ if (formObj.bordercolor.value != "") {
453
+ st['border-color'] = formObj.bordercolor.value;
454
+
455
+ // Add border-width if it's missing
456
+ if (!st['border-width'])
457
+ st['border-width'] = cssSize(formObj.border.value, 1);
458
+ }
459
+
460
+ formObj.style.value = dom.serializeStyle(st);
461
+ }
462
+
463
+ function changedStyle() {
464
+ var formObj = document.forms[0];
465
+ var st = dom.parseStyle(formObj.style.value);
466
+
467
+ if (st['background-image'])
468
+ formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
469
+ else
470
+ formObj.backgroundimage.value = '';
471
+
472
+ if (st['width'])
473
+ formObj.width.value = trimSize(st['width']);
474
+
475
+ if (st['height'])
476
+ formObj.height.value = trimSize(st['height']);
477
+
478
+ if (st['background-color']) {
479
+ formObj.bgcolor.value = st['background-color'];
480
+ updateColor('bgcolor_pick','bgcolor');
481
+ }
482
+
483
+ if (st['border-color']) {
484
+ formObj.bordercolor.value = st['border-color'];
485
+ updateColor('bordercolor_pick','bordercolor');
486
+ }
487
+ }
488
+
489
+ tinyMCEPopup.onInit.add(init);
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('en.table_dlg',{"rules_border":"border","rules_box":"box","rules_vsides":"vsides","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"hsides","rules_below":"below","rules_above":"above","rules_void":"void",rules:"Rules","frame_all":"all","frame_cols":"cols","frame_rows":"rows","frame_groups":"groups","frame_none":"none",frame:"Frame",caption:"Table Caption","missing_scope":"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.","cell_limit":"You\'ve exceeded the maximum number of cells of {$cells}.","row_limit":"You\'ve exceeded the maximum number of rows of {$rows}.","col_limit":"You\'ve exceeded the maximum number of columns of {$cols}.",colgroup:"Col Group",rowgroup:"Row Group",scope:"Scope",tfoot:"Footer",tbody:"Body",thead:"Header","row_all":"Update All Rows in Table","row_even":"Update Even Rows in Table","row_odd":"Update Odd Rows in Table","row_row":"Update Current Row","cell_all":"Update All Cells in Table","cell_row":"Update All Cells in Row","cell_cell":"Update Current Cell",th:"Header",td:"Data",summary:"Summary",bgimage:"Background Image",rtl:"Right to Left",ltr:"Left to Right",mime:"Target MIME Type",langcode:"Language Code",langdir:"Language Direction",style:"Style",id:"ID","merge_cells_title":"Merge Table Cells",bgcolor:"Background Color",bordercolor:"Border Color","align_bottom":"Bottom","align_top":"Top",valign:"Vertical Alignment","cell_type":"Cell Type","cell_title":"Table Cell Properties","row_title":"Table Row Properties","align_middle":"Center","align_right":"Right","align_left":"Left","align_default":"Default",align:"Alignment",border:"Border",cellpadding:"Cell Padding",cellspacing:"Cell Spacing",rows:"Rows",cols:"Columns",height:"Height",width:"Width",title:"Insert/Edit Table",rowtype:"Row Type","advanced_props":"Advanced Properties","general_props":"General Properties","advanced_tab":"Advanced","general_tab":"General","cell_col":"Update all cells in column"});
@@ -0,0 +1,32 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#table_dlg.merge_cells_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="../../utils/validate.js"></script>
8
+ <script type="text/javascript" src="js/merge_cells.js"></script>
9
+ </head>
10
+ <body style="margin: 8px" role="application">
11
+ <form onsubmit="MergeCellsDialog.merge();return false;" action="#">
12
+ <fieldset>
13
+ <legend>{#table_dlg.merge_cells_title}</legend>
14
+ <table role="presentation" border="0" cellpadding="0" cellspacing="3" width="100%">
15
+ <tr>
16
+ <td><label for="numcols">{#table_dlg.cols}</label>:</td>
17
+ <td align="right"><input type="text" id="numcols" name="numcols" value="" class="number min1 mceFocus" style="width: 30px" aria-required="true" /></td>
18
+ </tr>
19
+ <tr>
20
+ <td><label for="numrows">{#table_dlg.rows}</label>:</td>
21
+ <td align="right"><input type="text" id="numrows" name="numrows" value="" class="number min1" style="width: 30px" aria-required="true" /></td>
22
+ </tr>
23
+ </table>
24
+ </fieldset>
25
+
26
+ <div class="mceActionPanel">
27
+ <input type="submit" id="insert" name="insert" value="{#update}" />
28
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
29
+ </div>
30
+ </form>
31
+ </body>
32
+ </html>
@@ -0,0 +1,158 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#table_dlg.row_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
8
+ <script type="text/javascript" src="../../utils/validate.js"></script>
9
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
10
+ <script type="text/javascript" src="js/row.js"></script>
11
+ <link href="css/row.css" rel="stylesheet" type="text/css" />
12
+ </head>
13
+ <body id="tablerow" style="display: none" role="application">
14
+ <form onsubmit="updateAction();return false;" action="#">
15
+ <div class="tabs">
16
+ <ul>
17
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
18
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
19
+ </ul>
20
+ </div>
21
+
22
+ <div class="panel_wrapper">
23
+ <div id="general_panel" class="panel current">
24
+ <fieldset>
25
+ <legend>{#table_dlg.general_props}</legend>
26
+
27
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
28
+ <tr>
29
+ <td><label for="rowtype">{#table_dlg.rowtype}</label></td>
30
+ <td class="col2">
31
+ <select id="rowtype" name="rowtype" class="mceFocus">
32
+ <option value="thead">{#table_dlg.thead}</option>
33
+ <option value="tbody">{#table_dlg.tbody}</option>
34
+ <option value="tfoot">{#table_dlg.tfoot}</option>
35
+ </select>
36
+ </td>
37
+ </tr>
38
+
39
+ <tr>
40
+ <td><label for="align">{#table_dlg.align}</label></td>
41
+ <td class="col2">
42
+ <select id="align" name="align">
43
+ <option value="">{#not_set}</option>
44
+ <option value="center">{#table_dlg.align_middle}</option>
45
+ <option value="left">{#table_dlg.align_left}</option>
46
+ <option value="right">{#table_dlg.align_right}</option>
47
+ </select>
48
+ </td>
49
+ </tr>
50
+
51
+ <tr>
52
+ <td><label for="valign">{#table_dlg.valign}</label></td>
53
+ <td class="col2">
54
+ <select id="valign" name="valign">
55
+ <option value="">{#not_set}</option>
56
+ <option value="top">{#table_dlg.align_top}</option>
57
+ <option value="middle">{#table_dlg.align_middle}</option>
58
+ <option value="bottom">{#table_dlg.align_bottom}</option>
59
+ </select>
60
+ </td>
61
+ </tr>
62
+
63
+ <tr id="styleSelectRow">
64
+ <td><label for="class">{#class_name}</label></td>
65
+ <td class="col2">
66
+ <select id="class" name="class" class="mceEditableSelect">
67
+ <option value="" selected="selected">{#not_set}</option>
68
+ </select>
69
+ </td>
70
+ </tr>
71
+
72
+ <tr>
73
+ <td><label for="height">{#table_dlg.height}</label></td>
74
+ <td class="col2"><input name="height" type="text" id="height" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
75
+ </tr>
76
+ </table>
77
+ </fieldset>
78
+ </div>
79
+
80
+ <div id="advanced_panel" class="panel">
81
+ <fieldset>
82
+ <legend>{#table_dlg.advanced_props}</legend>
83
+
84
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
85
+ <tr>
86
+ <td class="column1"><label for="id">{#table_dlg.id}</label></td>
87
+ <td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
88
+ </tr>
89
+
90
+ <tr>
91
+ <td><label for="style">{#table_dlg.style}</label></td>
92
+ <td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
93
+ </tr>
94
+
95
+ <tr>
96
+ <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
97
+ <td>
98
+ <select id="dir" name="dir" style="width: 200px">
99
+ <option value="">{#not_set}</option>
100
+ <option value="ltr">{#table_dlg.ltr}</option>
101
+ <option value="rtl">{#table_dlg.rtl}</option>
102
+ </select>
103
+ </td>
104
+ </tr>
105
+
106
+ <tr>
107
+ <td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
108
+ <td>
109
+ <input id="lang" name="lang" type="text" value="" style="width: 200px" />
110
+ </td>
111
+ </tr>
112
+
113
+ <tr>
114
+ <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
115
+ <td>
116
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
117
+ <tr>
118
+ <td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
119
+ <td id="backgroundimagebrowsercontainer">&nbsp;</td>
120
+ </tr>
121
+ </table>
122
+ </td>
123
+ </tr>
124
+
125
+ <tr>
126
+ <td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
127
+ <td>
128
+ <span role="group" aria-labelledby="bgcolor_label">
129
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
130
+ <tr>
131
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
132
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
133
+ </tr>
134
+ </table>
135
+ </span>
136
+ </td>
137
+ </tr>
138
+ </table>
139
+ </fieldset>
140
+ </div>
141
+ </div>
142
+
143
+ <div class="mceActionPanel">
144
+ <div>
145
+ <select id="action" name="action">
146
+ <option value="row">{#table_dlg.row_row}</option>
147
+ <option value="odd">{#table_dlg.row_odd}</option>
148
+ <option value="even">{#table_dlg.row_even}</option>
149
+ <option value="all">{#table_dlg.row_all}</option>
150
+ </select>
151
+ </div>
152
+
153
+ <input type="submit" id="insert" name="insert" value="{#update}" />
154
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
155
+ </div>
156
+ </form>
157
+ </body>
158
+ </html>