tinymce_rails 3.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/README.md +14 -0
  4. data/Rakefile +1 -0
  5. data/lib/tinymce_rails.rb +11 -0
  6. data/lib/tinymce_rails/version.rb +3 -0
  7. data/tinymce_rails.gemspec +24 -0
  8. data/vendor/assets/javascripts/tiny_mce/jquery.tinymce.js +1 -0
  9. data/vendor/assets/javascripts/tiny_mce/langs/en.js +218 -0
  10. data/vendor/assets/javascripts/tiny_mce/license.txt +504 -0
  11. data/vendor/assets/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  12. data/vendor/assets/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  13. data/vendor/assets/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  14. data/vendor/assets/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  15. data/vendor/assets/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +7 -0
  16. data/vendor/assets/javascripts/tiny_mce/plugins/advhr/rule.htm +58 -0
  17. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  18. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  19. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  20. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/image.htm +235 -0
  21. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  22. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/js/image.js +445 -0
  23. data/vendor/assets/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +45 -0
  24. data/vendor/assets/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  25. data/vendor/assets/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  26. data/vendor/assets/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  27. data/vendor/assets/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  28. data/vendor/assets/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +54 -0
  29. data/vendor/assets/javascripts/tiny_mce/plugins/advlink/link.htm +338 -0
  30. data/vendor/assets/javascripts/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  31. data/vendor/assets/javascripts/tiny_mce/plugins/advlist/editor_plugin_src.js +154 -0
  32. data/vendor/assets/javascripts/tiny_mce/plugins/autolink/editor_plugin.js +1 -0
  33. data/vendor/assets/javascripts/tiny_mce/plugins/autolink/editor_plugin_src.js +156 -0
  34. data/vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  35. data/vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +119 -0
  36. data/vendor/assets/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  37. data/vendor/assets/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +422 -0
  38. data/vendor/assets/javascripts/tiny_mce/plugins/autosave/langs/en.js +4 -0
  39. data/vendor/assets/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  40. data/vendor/assets/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  41. data/vendor/assets/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  42. data/vendor/assets/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +156 -0
  43. data/vendor/assets/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  44. data/vendor/assets/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  45. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  46. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  47. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/emotions.htm +41 -0
  48. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  49. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  50. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  51. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  52. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  53. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  54. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  55. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  56. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  57. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  58. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  59. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  60. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  61. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  62. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  63. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  64. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  65. data/vendor/assets/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  66. data/vendor/assets/javascripts/tiny_mce/plugins/example/dialog.htm +22 -0
  67. data/vendor/assets/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  68. data/vendor/assets/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  69. data/vendor/assets/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  70. data/vendor/assets/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  71. data/vendor/assets/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
  72. data/vendor/assets/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  73. data/vendor/assets/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  74. data/vendor/assets/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  75. data/vendor/assets/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +182 -0
  76. data/vendor/assets/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +571 -0
  77. data/vendor/assets/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +471 -0
  78. data/vendor/assets/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  79. data/vendor/assets/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  80. data/vendor/assets/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +151 -0
  81. data/vendor/assets/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
  82. data/vendor/assets/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  83. data/vendor/assets/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  84. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  85. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +696 -0
  86. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  87. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  88. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  89. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  90. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  91. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  92. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  93. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +100 -0
  94. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  95. data/vendor/assets/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  96. data/vendor/assets/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  97. data/vendor/assets/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  98. data/vendor/assets/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +212 -0
  99. data/vendor/assets/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  100. data/vendor/assets/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +136 -0
  101. data/vendor/assets/javascripts/tiny_mce/plugins/lists/editor_plugin.js +1 -0
  102. data/vendor/assets/javascripts/tiny_mce/plugins/lists/editor_plugin_src.js +617 -0
  103. data/vendor/assets/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
  104. data/vendor/assets/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
  105. data/vendor/assets/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  106. data/vendor/assets/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +414 -0
  107. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
  108. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  109. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  110. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  111. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  112. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
  113. data/vendor/assets/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  114. data/vendor/assets/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
  115. data/vendor/assets/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
  116. data/vendor/assets/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  117. data/vendor/assets/javascripts/tiny_mce/plugins/media/media.htm +818 -0
  118. data/vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  119. data/vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
  120. data/vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  121. data/vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +90 -0
  122. data/vendor/assets/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  123. data/vendor/assets/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  124. data/vendor/assets/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +77 -0
  125. data/vendor/assets/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  126. data/vendor/assets/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  127. data/vendor/assets/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  128. data/vendor/assets/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +1035 -0
  129. data/vendor/assets/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  130. data/vendor/assets/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  131. data/vendor/assets/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  132. data/vendor/assets/javascripts/tiny_mce/plugins/paste/pastetext.htm +27 -0
  133. data/vendor/assets/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -0
  134. data/vendor/assets/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  135. data/vendor/assets/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  136. data/vendor/assets/javascripts/tiny_mce/plugins/preview/example.html +28 -0
  137. data/vendor/assets/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  138. data/vendor/assets/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
  139. data/vendor/assets/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  140. data/vendor/assets/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  141. data/vendor/assets/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  142. data/vendor/assets/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  143. data/vendor/assets/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  144. data/vendor/assets/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  145. data/vendor/assets/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +57 -0
  146. data/vendor/assets/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +140 -0
  147. data/vendor/assets/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  148. data/vendor/assets/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
  149. data/vendor/assets/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  150. data/vendor/assets/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  151. data/vendor/assets/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +417 -0
  152. data/vendor/assets/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  153. data/vendor/assets/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
  154. data/vendor/assets/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  155. data/vendor/assets/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
  156. data/vendor/assets/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
  157. data/vendor/assets/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +70 -0
  158. data/vendor/assets/javascripts/tiny_mce/plugins/style/props.htm +838 -0
  159. data/vendor/assets/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  160. data/vendor/assets/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +114 -0
  161. data/vendor/assets/javascripts/tiny_mce/plugins/table/cell.htm +178 -0
  162. data/vendor/assets/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
  163. data/vendor/assets/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
  164. data/vendor/assets/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
  165. data/vendor/assets/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  166. data/vendor/assets/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1139 -0
  167. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/cell.js +286 -0
  168. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  169. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/row.js +237 -0
  170. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/table.js +454 -0
  171. data/vendor/assets/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  172. data/vendor/assets/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -0
  173. data/vendor/assets/javascripts/tiny_mce/plugins/table/row.htm +157 -0
  174. data/vendor/assets/javascripts/tiny_mce/plugins/table/table.htm +188 -0
  175. data/vendor/assets/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
  176. data/vendor/assets/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
  177. data/vendor/assets/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  178. data/vendor/assets/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  179. data/vendor/assets/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
  180. data/vendor/assets/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  181. data/vendor/assets/javascripts/tiny_mce/plugins/template/template.htm +31 -0
  182. data/vendor/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  183. data/vendor/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
  184. data/vendor/assets/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  185. data/vendor/assets/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +98 -0
  186. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
  187. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
  188. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
  189. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
  190. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  191. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  192. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
  193. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  194. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  195. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
  196. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  197. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  198. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +126 -0
  199. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  200. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
  201. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  202. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +52 -0
  203. data/vendor/assets/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  204. data/vendor/assets/javascripts/tiny_mce/themes/advanced/about.htm +48 -0
  205. data/vendor/assets/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -0
  206. data/vendor/assets/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
  207. data/vendor/assets/javascripts/tiny_mce/themes/advanced/color_picker.htm +74 -0
  208. data/vendor/assets/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  209. data/vendor/assets/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1326 -0
  210. data/vendor/assets/javascripts/tiny_mce/themes/advanced/image.htm +80 -0
  211. data/vendor/assets/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  212. data/vendor/assets/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  213. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/about.js +73 -0
  214. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
  215. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/charmap.js +353 -0
  216. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/color_picker.js +329 -0
  217. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/image.js +247 -0
  218. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
  219. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/source_editor.js +56 -0
  220. data/vendor/assets/javascripts/tiny_mce/themes/advanced/langs/en.js +68 -0
  221. data/vendor/assets/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +53 -0
  222. data/vendor/assets/javascripts/tiny_mce/themes/advanced/link.htm +58 -0
  223. data/vendor/assets/javascripts/tiny_mce/themes/advanced/shortcuts.htm +47 -0
  224. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/content.css +37 -0
  225. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  226. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  227. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  228. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  229. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  230. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  231. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  232. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
  233. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
  234. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  235. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +101 -0
  236. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +36 -0
  237. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +116 -0
  238. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  239. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  240. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  241. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  242. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  243. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  244. data/vendor/assets/javascripts/tiny_mce/themes/advanced/source_editor.htm +25 -0
  245. data/vendor/assets/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
  246. data/vendor/assets/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
  247. data/vendor/assets/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  248. data/vendor/assets/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
  249. data/vendor/assets/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  250. data/vendor/assets/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  251. data/vendor/assets/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  252. data/vendor/assets/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  253. data/vendor/assets/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  254. data/vendor/assets/javascripts/tiny_mce/tiny_mce.js +1 -0
  255. data/vendor/assets/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
  256. data/vendor/assets/javascripts/tiny_mce/tiny_mce_src.js +13913 -0
  257. data/vendor/assets/javascripts/tiny_mce/utils/editable_selects.js +70 -0
  258. data/vendor/assets/javascripts/tiny_mce/utils/form_utils.js +206 -0
  259. data/vendor/assets/javascripts/tiny_mce/utils/mctabs.js +151 -0
  260. data/vendor/assets/javascripts/tiny_mce/utils/validate.js +252 -0
  261. metadata +305 -0
@@ -0,0 +1,454 @@
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
+ inst.execCommand('mceBeginUndoLevel');
62
+
63
+ dom.setAttrib(elm, 'cellPadding', cellpadding, true);
64
+ dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
65
+ dom.setAttrib(elm, 'border', border);
66
+ dom.setAttrib(elm, 'align', align);
67
+ dom.setAttrib(elm, 'frame', frame);
68
+ dom.setAttrib(elm, 'rules', rules);
69
+ dom.setAttrib(elm, 'class', className);
70
+ dom.setAttrib(elm, 'style', style);
71
+ dom.setAttrib(elm, 'id', id);
72
+ dom.setAttrib(elm, 'summary', summary);
73
+ dom.setAttrib(elm, 'dir', dir);
74
+ dom.setAttrib(elm, 'lang', lang);
75
+
76
+ capEl = inst.dom.select('caption', elm)[0];
77
+
78
+ if (capEl && !caption)
79
+ capEl.parentNode.removeChild(capEl);
80
+
81
+ if (!capEl && caption) {
82
+ capEl = elm.ownerDocument.createElement('caption');
83
+
84
+ if (!tinymce.isIE)
85
+ capEl.innerHTML = '<br _mce_bogus="1"/>';
86
+
87
+ elm.insertBefore(capEl, elm.firstChild);
88
+ }
89
+
90
+ if (width && inst.settings.inline_styles) {
91
+ dom.setStyle(elm, 'width', width);
92
+ dom.setAttrib(elm, 'width', '');
93
+ } else {
94
+ dom.setAttrib(elm, 'width', width, true);
95
+ dom.setStyle(elm, 'width', '');
96
+ }
97
+
98
+ // Remove these since they are not valid XHTML
99
+ dom.setAttrib(elm, 'borderColor', '');
100
+ dom.setAttrib(elm, 'bgColor', '');
101
+ dom.setAttrib(elm, 'background', '');
102
+
103
+ if (height && inst.settings.inline_styles) {
104
+ dom.setStyle(elm, 'height', height);
105
+ dom.setAttrib(elm, 'height', '');
106
+ } else {
107
+ dom.setAttrib(elm, 'height', height, true);
108
+ dom.setStyle(elm, 'height', '');
109
+ }
110
+
111
+ if (background != '')
112
+ elm.style.backgroundImage = "url('" + background + "')";
113
+ else
114
+ elm.style.backgroundImage = '';
115
+
116
+ /* if (tinyMCEPopup.getParam("inline_styles")) {
117
+ if (width != '')
118
+ elm.style.width = getCSSSize(width);
119
+ }*/
120
+
121
+ if (bordercolor != "") {
122
+ elm.style.borderColor = bordercolor;
123
+ elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle;
124
+ elm.style.borderWidth = border == "" ? "1px" : border;
125
+ } else
126
+ elm.style.borderColor = '';
127
+
128
+ elm.style.backgroundColor = bgcolor;
129
+ elm.style.height = getCSSSize(height);
130
+
131
+ inst.addVisual();
132
+
133
+ // Fix for stange MSIE align bug
134
+ //elm.outerHTML = elm.outerHTML;
135
+
136
+ inst.nodeChanged();
137
+ inst.execCommand('mceEndUndoLevel');
138
+
139
+ // Repaint if dimensions changed
140
+ if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
141
+ inst.execCommand('mceRepaint');
142
+
143
+ tinyMCEPopup.close();
144
+ return true;
145
+ }
146
+
147
+ // Create new table
148
+ html += '<table';
149
+
150
+ html += makeAttrib('id', id);
151
+ html += makeAttrib('border', border);
152
+ html += makeAttrib('cellpadding', cellpadding);
153
+ html += makeAttrib('cellspacing', cellspacing);
154
+ html += makeAttrib('_mce_new', '1');
155
+
156
+ if (width && inst.settings.inline_styles) {
157
+ if (style)
158
+ style += '; ';
159
+
160
+ // Force px
161
+ if (/^[0-9\.]+$/.test(width))
162
+ width += 'px';
163
+
164
+ style += 'width: ' + width;
165
+ } else
166
+ html += makeAttrib('width', width);
167
+
168
+ /* if (height) {
169
+ if (style)
170
+ style += '; ';
171
+
172
+ style += 'height: ' + height;
173
+ }*/
174
+
175
+ //html += makeAttrib('height', height);
176
+ //html += makeAttrib('bordercolor', bordercolor);
177
+ //html += makeAttrib('bgcolor', bgcolor);
178
+ html += makeAttrib('align', align);
179
+ html += makeAttrib('frame', frame);
180
+ html += makeAttrib('rules', rules);
181
+ html += makeAttrib('class', className);
182
+ html += makeAttrib('style', style);
183
+ html += makeAttrib('summary', summary);
184
+ html += makeAttrib('dir', dir);
185
+ html += makeAttrib('lang', lang);
186
+ html += '>';
187
+
188
+ if (caption) {
189
+ if (!tinymce.isIE)
190
+ html += '<caption><br _mce_bogus="1"/></caption>';
191
+ else
192
+ html += '<caption></caption>';
193
+ }
194
+
195
+ for (var y=0; y<rows; y++) {
196
+ html += "<tr>";
197
+
198
+ for (var x=0; x<cols; x++) {
199
+ if (!tinymce.isIE)
200
+ html += '<td><br _mce_bogus="1"/></td>';
201
+ else
202
+ html += '<td></td>';
203
+ }
204
+
205
+ html += "</tr>";
206
+ }
207
+
208
+ html += "</table>";
209
+
210
+ inst.execCommand('mceBeginUndoLevel');
211
+
212
+ // Move table
213
+ if (inst.settings.fix_table_elements) {
214
+ var patt = '';
215
+
216
+ inst.focus();
217
+ inst.selection.setContent('<br class="_mce_marker" />');
218
+
219
+ tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) {
220
+ if (patt)
221
+ patt += ',';
222
+
223
+ patt += n + ' ._mce_marker';
224
+ });
225
+
226
+ tinymce.each(inst.dom.select(patt), function(n) {
227
+ inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n);
228
+ });
229
+
230
+ dom.setOuterHTML(dom.select('br._mce_marker')[0], html);
231
+ } else
232
+ inst.execCommand('mceInsertContent', false, html);
233
+
234
+ tinymce.each(dom.select('table[_mce_new]'), function(node) {
235
+ var td = dom.select('td', node);
236
+
237
+ try {
238
+ // IE9 might fail to do this selection
239
+ inst.selection.select(td[0], true);
240
+ inst.selection.collapse();
241
+ } catch (ex) {
242
+ // Ignore
243
+ }
244
+
245
+ dom.setAttrib(node, '_mce_new', '');
246
+ });
247
+
248
+ inst.addVisual();
249
+ inst.execCommand('mceEndUndoLevel');
250
+
251
+ tinyMCEPopup.close();
252
+ }
253
+
254
+ function makeAttrib(attrib, value) {
255
+ var formObj = document.forms[0];
256
+ var valueElm = formObj.elements[attrib];
257
+
258
+ if (typeof(value) == "undefined" || value == null) {
259
+ value = "";
260
+
261
+ if (valueElm)
262
+ value = valueElm.value;
263
+ }
264
+
265
+ if (value == "")
266
+ return "";
267
+
268
+ // XML encode it
269
+ value = value.replace(/&/g, '&amp;');
270
+ value = value.replace(/\"/g, '&quot;');
271
+ value = value.replace(/</g, '&lt;');
272
+ value = value.replace(/>/g, '&gt;');
273
+
274
+ return ' ' + attrib + '="' + value + '"';
275
+ }
276
+
277
+ function init() {
278
+ tinyMCEPopup.resizeToInnerSize();
279
+
280
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
281
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
282
+ document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
283
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
284
+
285
+ var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', '');
286
+ var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
287
+ var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules = "", frame = "";
288
+ var inst = tinyMCEPopup.editor, dom = inst.dom;
289
+ var formObj = document.forms[0];
290
+ var elm = dom.getParent(inst.selection.getNode(), "table");
291
+
292
+ action = tinyMCEPopup.getWindowArg('action');
293
+
294
+ if (!action)
295
+ action = elm ? "update" : "insert";
296
+
297
+ if (elm && action != "insert") {
298
+ var rowsAr = elm.rows;
299
+ var cols = 0;
300
+ for (var i=0; i<rowsAr.length; i++)
301
+ if (rowsAr[i].cells.length > cols)
302
+ cols = rowsAr[i].cells.length;
303
+
304
+ cols = cols;
305
+ rows = rowsAr.length;
306
+
307
+ st = dom.parseStyle(dom.getAttrib(elm, "style"));
308
+ border = trimSize(getStyle(elm, 'border', 'borderWidth'));
309
+ cellpadding = dom.getAttrib(elm, 'cellpadding', "");
310
+ cellspacing = dom.getAttrib(elm, 'cellspacing', "");
311
+ width = trimSize(getStyle(elm, 'width', 'width'));
312
+ height = trimSize(getStyle(elm, 'height', 'height'));
313
+ bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));
314
+ bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));
315
+ align = dom.getAttrib(elm, 'align', align);
316
+ frame = dom.getAttrib(elm, 'frame');
317
+ rules = dom.getAttrib(elm, 'rules');
318
+ className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, ''));
319
+ id = dom.getAttrib(elm, 'id');
320
+ summary = dom.getAttrib(elm, 'summary');
321
+ style = dom.serializeStyle(st);
322
+ dir = dom.getAttrib(elm, 'dir');
323
+ lang = dom.getAttrib(elm, 'lang');
324
+ background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
325
+ formObj.caption.checked = elm.getElementsByTagName('caption').length > 0;
326
+
327
+ orgTableWidth = width;
328
+ orgTableHeight = height;
329
+
330
+ action = "update";
331
+ formObj.insert.value = inst.getLang('update');
332
+ }
333
+
334
+ addClassesToList('class', "table_styles");
335
+ TinyMCE_EditableSelects.init();
336
+
337
+ // Update form
338
+ selectByValue(formObj, 'align', align);
339
+ selectByValue(formObj, 'tframe', frame);
340
+ selectByValue(formObj, 'rules', rules);
341
+ selectByValue(formObj, 'class', className, true, true);
342
+ formObj.cols.value = cols;
343
+ formObj.rows.value = rows;
344
+ formObj.border.value = border;
345
+ formObj.cellpadding.value = cellpadding;
346
+ formObj.cellspacing.value = cellspacing;
347
+ formObj.width.value = width;
348
+ formObj.height.value = height;
349
+ formObj.bordercolor.value = bordercolor;
350
+ formObj.bgcolor.value = bgcolor;
351
+ formObj.id.value = id;
352
+ formObj.summary.value = summary;
353
+ formObj.style.value = style;
354
+ formObj.dir.value = dir;
355
+ formObj.lang.value = lang;
356
+ formObj.backgroundimage.value = background;
357
+
358
+ updateColor('bordercolor_pick', 'bordercolor');
359
+ updateColor('bgcolor_pick', 'bgcolor');
360
+
361
+ // Resize some elements
362
+ if (isVisible('backgroundimagebrowser'))
363
+ document.getElementById('backgroundimage').style.width = '180px';
364
+
365
+ // Disable some fields in update mode
366
+ if (action == "update") {
367
+ formObj.cols.disabled = true;
368
+ formObj.rows.disabled = true;
369
+ }
370
+ }
371
+
372
+ function changedSize() {
373
+ var formObj = document.forms[0];
374
+ var st = dom.parseStyle(formObj.style.value);
375
+
376
+ /* var width = formObj.width.value;
377
+ if (width != "")
378
+ st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : "";
379
+ else
380
+ st['width'] = "";*/
381
+
382
+ var height = formObj.height.value;
383
+ if (height != "")
384
+ st['height'] = getCSSSize(height);
385
+ else
386
+ st['height'] = "";
387
+
388
+ formObj.style.value = dom.serializeStyle(st);
389
+ }
390
+
391
+ function changedBackgroundImage() {
392
+ var formObj = document.forms[0];
393
+ var st = dom.parseStyle(formObj.style.value);
394
+
395
+ st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
396
+
397
+ formObj.style.value = dom.serializeStyle(st);
398
+ }
399
+
400
+ function changedBorder() {
401
+ var formObj = document.forms[0];
402
+ var st = dom.parseStyle(formObj.style.value);
403
+
404
+ // Update border width if the element has a color
405
+ if (formObj.border.value != "" && formObj.bordercolor.value != "")
406
+ st['border-width'] = formObj.border.value + "px";
407
+
408
+ formObj.style.value = dom.serializeStyle(st);
409
+ }
410
+
411
+ function changedColor() {
412
+ var formObj = document.forms[0];
413
+ var st = dom.parseStyle(formObj.style.value);
414
+
415
+ st['background-color'] = formObj.bgcolor.value;
416
+
417
+ if (formObj.bordercolor.value != "") {
418
+ st['border-color'] = formObj.bordercolor.value;
419
+
420
+ // Add border-width if it's missing
421
+ if (!st['border-width'])
422
+ st['border-width'] = formObj.border.value == "" ? "1px" : formObj.border.value + "px";
423
+ }
424
+
425
+ formObj.style.value = dom.serializeStyle(st);
426
+ }
427
+
428
+ function changedStyle() {
429
+ var formObj = document.forms[0];
430
+ var st = dom.parseStyle(formObj.style.value);
431
+
432
+ if (st['background-image'])
433
+ formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
434
+ else
435
+ formObj.backgroundimage.value = '';
436
+
437
+ if (st['width'])
438
+ formObj.width.value = trimSize(st['width']);
439
+
440
+ if (st['height'])
441
+ formObj.height.value = trimSize(st['height']);
442
+
443
+ if (st['background-color']) {
444
+ formObj.bgcolor.value = st['background-color'];
445
+ updateColor('bgcolor_pick','bgcolor');
446
+ }
447
+
448
+ if (st['border-color']) {
449
+ formObj.bordercolor.value = st['border-color'];
450
+ updateColor('bordercolor_pick','bordercolor');
451
+ }
452
+ }
453
+
454
+ tinyMCEPopup.onInit.add(init);