locomotive-tinymce-rails 3.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. data/LICENSE +18 -0
  2. data/README.md +67 -0
  3. data/Rakefile +65 -0
  4. data/app/assets/javascripts/tinymce/preinit.js.erb +5 -0
  5. data/app/assets/javascripts/tinymce-jquery.js +3 -0
  6. data/app/assets/javascripts/tinymce.js +2 -0
  7. data/lib/tinymce/rails/engine.rb +9 -0
  8. data/lib/tinymce/rails/sprockets_monkeypatch.rb +13 -0
  9. data/lib/tinymce/rails/version.rb +7 -0
  10. data/lib/tinymce/rails.rb +3 -0
  11. data/lib/tinymce-rails.rb +1 -0
  12. data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +1 -0
  13. data/vendor/assets/javascripts/tinymce/langs/en.js +1 -0
  14. data/vendor/assets/javascripts/tinymce/license.txt +504 -0
  15. data/vendor/assets/javascripts/tinymce/plugins/advhr/css/advhr.css +5 -0
  16. data/vendor/assets/javascripts/tinymce/plugins/advhr/editor_plugin.js +1 -0
  17. data/vendor/assets/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +57 -0
  18. data/vendor/assets/javascripts/tinymce/plugins/advhr/js/rule.js +43 -0
  19. data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +1 -0
  20. data/vendor/assets/javascripts/tinymce/plugins/advhr/rule.htm +58 -0
  21. data/vendor/assets/javascripts/tinymce/plugins/advimage/css/advimage.css +13 -0
  22. data/vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin.js +1 -0
  23. data/vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +50 -0
  24. data/vendor/assets/javascripts/tinymce/plugins/advimage/image.htm +235 -0
  25. data/vendor/assets/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
  26. data/vendor/assets/javascripts/tinymce/plugins/advimage/js/image.js +462 -0
  27. data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +1 -0
  28. data/vendor/assets/javascripts/tinymce/plugins/advlink/css/advlink.css +8 -0
  29. data/vendor/assets/javascripts/tinymce/plugins/advlink/editor_plugin.js +1 -0
  30. data/vendor/assets/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +61 -0
  31. data/vendor/assets/javascripts/tinymce/plugins/advlink/js/advlink.js +532 -0
  32. data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +1 -0
  33. data/vendor/assets/javascripts/tinymce/plugins/advlink/link.htm +338 -0
  34. data/vendor/assets/javascripts/tinymce/plugins/advlist/editor_plugin.js +1 -0
  35. data/vendor/assets/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +176 -0
  36. data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin.js +1 -0
  37. data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +172 -0
  38. data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js +1 -0
  39. data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +137 -0
  40. data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin.js +1 -0
  41. data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +431 -0
  42. data/vendor/assets/javascripts/tinymce/plugins/autosave/langs/en.js +4 -0
  43. data/vendor/assets/javascripts/tinymce/plugins/bbcode/editor_plugin.js +1 -0
  44. data/vendor/assets/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +120 -0
  45. data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +1 -0
  46. data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +160 -0
  47. data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin.js +1 -0
  48. data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +82 -0
  49. data/vendor/assets/javascripts/tinymce/plugins/emotions/editor_plugin.js +1 -0
  50. data/vendor/assets/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +43 -0
  51. data/vendor/assets/javascripts/tinymce/plugins/emotions/emotions.htm +42 -0
  52. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
  53. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
  54. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  55. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  56. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
  57. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
  58. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
  59. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
  60. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  61. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
  62. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
  63. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
  64. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  65. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
  66. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
  67. data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
  68. data/vendor/assets/javascripts/tinymce/plugins/emotions/js/emotions.js +43 -0
  69. data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +1 -0
  70. data/vendor/assets/javascripts/tinymce/plugins/example/dialog.htm +22 -0
  71. data/vendor/assets/javascripts/tinymce/plugins/example/editor_plugin.js +1 -0
  72. data/vendor/assets/javascripts/tinymce/plugins/example/editor_plugin_src.js +84 -0
  73. data/vendor/assets/javascripts/tinymce/plugins/example/img/example.gif +0 -0
  74. data/vendor/assets/javascripts/tinymce/plugins/example/js/dialog.js +19 -0
  75. data/vendor/assets/javascripts/tinymce/plugins/example/langs/en.js +3 -0
  76. data/vendor/assets/javascripts/tinymce/plugins/example/langs/en_dlg.js +3 -0
  77. data/vendor/assets/javascripts/tinymce/plugins/example_dependency/editor_plugin.js +1 -0
  78. data/vendor/assets/javascripts/tinymce/plugins/example_dependency/editor_plugin_src.js +50 -0
  79. data/vendor/assets/javascripts/tinymce/plugins/fullpage/css/fullpage.css +143 -0
  80. data/vendor/assets/javascripts/tinymce/plugins/fullpage/editor_plugin.js +1 -0
  81. data/vendor/assets/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +405 -0
  82. data/vendor/assets/javascripts/tinymce/plugins/fullpage/fullpage.htm +259 -0
  83. data/vendor/assets/javascripts/tinymce/plugins/fullpage/js/fullpage.js +232 -0
  84. data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +1 -0
  85. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +1 -0
  86. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +159 -0
  87. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +110 -0
  88. data/vendor/assets/javascripts/tinymce/plugins/iespell/editor_plugin.js +1 -0
  89. data/vendor/assets/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +54 -0
  90. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +1 -0
  91. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +699 -0
  92. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  93. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  94. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  95. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  96. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  97. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  98. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  99. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  100. data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/template.htm +387 -0
  101. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +1 -0
  102. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  103. data/vendor/assets/javascripts/tinymce/plugins/layer/editor_plugin.js +1 -0
  104. data/vendor/assets/javascripts/tinymce/plugins/layer/editor_plugin_src.js +262 -0
  105. data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +1 -0
  106. data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +139 -0
  107. data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin.js +1 -0
  108. data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin_src.js +925 -0
  109. data/vendor/assets/javascripts/tinymce/plugins/media/css/media.css +17 -0
  110. data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin.js +1 -0
  111. data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin_src.js +890 -0
  112. data/vendor/assets/javascripts/tinymce/plugins/media/js/embed.js +73 -0
  113. data/vendor/assets/javascripts/tinymce/plugins/media/js/media.js +464 -0
  114. data/vendor/assets/javascripts/tinymce/plugins/media/langs/en_dlg.js +1 -0
  115. data/vendor/assets/javascripts/tinymce/plugins/media/media.htm +922 -0
  116. data/vendor/assets/javascripts/tinymce/plugins/media/moxieplayer.swf +0 -0
  117. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +1 -0
  118. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +54 -0
  119. data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin.js +1 -0
  120. data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +95 -0
  121. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +1 -0
  122. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +74 -0
  123. data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin.js +1 -0
  124. data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin_src.js +871 -0
  125. data/vendor/assets/javascripts/tinymce/plugins/paste/js/pastetext.js +36 -0
  126. data/vendor/assets/javascripts/tinymce/plugins/paste/js/pasteword.js +51 -0
  127. data/vendor/assets/javascripts/tinymce/plugins/paste/langs/en_dlg.js +1 -0
  128. data/vendor/assets/javascripts/tinymce/plugins/paste/pastetext.htm +27 -0
  129. data/vendor/assets/javascripts/tinymce/plugins/paste/pasteword.htm +21 -0
  130. data/vendor/assets/javascripts/tinymce/plugins/preview/editor_plugin.js +1 -0
  131. data/vendor/assets/javascripts/tinymce/plugins/preview/editor_plugin_src.js +53 -0
  132. data/vendor/assets/javascripts/tinymce/plugins/preview/example.html +28 -0
  133. data/vendor/assets/javascripts/tinymce/plugins/preview/jscripts/embed.js +73 -0
  134. data/vendor/assets/javascripts/tinymce/plugins/preview/preview.html +17 -0
  135. data/vendor/assets/javascripts/tinymce/plugins/print/editor_plugin.js +1 -0
  136. data/vendor/assets/javascripts/tinymce/plugins/print/editor_plugin_src.js +34 -0
  137. data/vendor/assets/javascripts/tinymce/plugins/save/editor_plugin.js +1 -0
  138. data/vendor/assets/javascripts/tinymce/plugins/save/editor_plugin_src.js +101 -0
  139. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +6 -0
  140. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +1 -0
  141. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +61 -0
  142. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +142 -0
  143. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +1 -0
  144. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +100 -0
  145. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/css/content.css +1 -0
  146. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +1 -0
  147. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +436 -0
  148. data/vendor/assets/javascripts/tinymce/plugins/spellchecker/img/wline.gif +0 -0
  149. data/vendor/assets/javascripts/tinymce/plugins/style/css/props.css +13 -0
  150. data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin.js +1 -0
  151. data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin_src.js +55 -0
  152. data/vendor/assets/javascripts/tinymce/plugins/style/js/props.js +635 -0
  153. data/vendor/assets/javascripts/tinymce/plugins/style/langs/en_dlg.js +1 -0
  154. data/vendor/assets/javascripts/tinymce/plugins/style/props.htm +840 -0
  155. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +1 -0
  156. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +122 -0
  157. data/vendor/assets/javascripts/tinymce/plugins/table/cell.htm +180 -0
  158. data/vendor/assets/javascripts/tinymce/plugins/table/css/cell.css +17 -0
  159. data/vendor/assets/javascripts/tinymce/plugins/table/css/row.css +25 -0
  160. data/vendor/assets/javascripts/tinymce/plugins/table/css/table.css +13 -0
  161. data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin.js +1 -0
  162. data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin_src.js +1408 -0
  163. data/vendor/assets/javascripts/tinymce/plugins/table/js/cell.js +319 -0
  164. data/vendor/assets/javascripts/tinymce/plugins/table/js/merge_cells.js +27 -0
  165. data/vendor/assets/javascripts/tinymce/plugins/table/js/row.js +237 -0
  166. data/vendor/assets/javascripts/tinymce/plugins/table/js/table.js +484 -0
  167. data/vendor/assets/javascripts/tinymce/plugins/table/langs/en_dlg.js +1 -0
  168. data/vendor/assets/javascripts/tinymce/plugins/table/merge_cells.htm +32 -0
  169. data/vendor/assets/javascripts/tinymce/plugins/table/row.htm +158 -0
  170. data/vendor/assets/javascripts/tinymce/plugins/table/table.htm +188 -0
  171. data/vendor/assets/javascripts/tinymce/plugins/template/blank.htm +12 -0
  172. data/vendor/assets/javascripts/tinymce/plugins/template/css/template.css +23 -0
  173. data/vendor/assets/javascripts/tinymce/plugins/template/editor_plugin.js +1 -0
  174. data/vendor/assets/javascripts/tinymce/plugins/template/editor_plugin_src.js +159 -0
  175. data/vendor/assets/javascripts/tinymce/plugins/template/js/template.js +106 -0
  176. data/vendor/assets/javascripts/tinymce/plugins/template/langs/en_dlg.js +1 -0
  177. data/vendor/assets/javascripts/tinymce/plugins/template/template.htm +31 -0
  178. data/vendor/assets/javascripts/tinymce/plugins/visualchars/editor_plugin.js +1 -0
  179. data/vendor/assets/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +83 -0
  180. data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin.js +1 -0
  181. data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +114 -0
  182. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +142 -0
  183. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +142 -0
  184. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +149 -0
  185. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +142 -0
  186. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +11 -0
  187. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +9 -0
  188. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/del.htm +162 -0
  189. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  190. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  191. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +162 -0
  192. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +28 -0
  193. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +28 -0
  194. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +111 -0
  195. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +28 -0
  196. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +53 -0
  197. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +229 -0
  198. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +53 -0
  199. data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
  200. data/vendor/assets/javascripts/tinymce/themes/advanced/about.htm +52 -0
  201. data/vendor/assets/javascripts/tinymce/themes/advanced/anchor.htm +26 -0
  202. data/vendor/assets/javascripts/tinymce/themes/advanced/charmap.htm +55 -0
  203. data/vendor/assets/javascripts/tinymce/themes/advanced/color_picker.htm +74 -0
  204. data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template.js +1 -0
  205. data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template_src.js +1362 -0
  206. data/vendor/assets/javascripts/tinymce/themes/advanced/image.htm +80 -0
  207. data/vendor/assets/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
  208. data/vendor/assets/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
  209. data/vendor/assets/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
  210. data/vendor/assets/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
  211. data/vendor/assets/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
  212. data/vendor/assets/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
  213. data/vendor/assets/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
  214. data/vendor/assets/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
  215. data/vendor/assets/javascripts/tinymce/themes/advanced/img/trans.gif +0 -0
  216. data/vendor/assets/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
  217. data/vendor/assets/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
  218. data/vendor/assets/javascripts/tinymce/themes/advanced/js/about.js +73 -0
  219. data/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js +43 -0
  220. data/vendor/assets/javascripts/tinymce/themes/advanced/js/charmap.js +363 -0
  221. data/vendor/assets/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -0
  222. data/vendor/assets/javascripts/tinymce/themes/advanced/js/image.js +251 -0
  223. data/vendor/assets/javascripts/tinymce/themes/advanced/js/link.js +153 -0
  224. data/vendor/assets/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -0
  225. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en.js +1 -0
  226. data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en_dlg.js +1 -0
  227. data/vendor/assets/javascripts/tinymce/themes/advanced/link.htm +57 -0
  228. data/vendor/assets/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -0
  229. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/content.css +50 -0
  230. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/dialog.css +117 -0
  231. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
  232. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
  233. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  234. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  235. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
  236. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
  237. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/ui.css +214 -0
  238. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/content.css +24 -0
  239. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  240. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +102 -0
  241. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +48 -0
  242. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +117 -0
  243. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  244. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  245. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  246. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +217 -0
  247. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  248. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  249. data/vendor/assets/javascripts/tinymce/themes/advanced/source_editor.htm +25 -0
  250. data/vendor/assets/javascripts/tinymce/themes/simple/editor_template.js +1 -0
  251. data/vendor/assets/javascripts/tinymce/themes/simple/editor_template_src.js +84 -0
  252. data/vendor/assets/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
  253. data/vendor/assets/javascripts/tinymce/themes/simple/langs/en.js +1 -0
  254. data/vendor/assets/javascripts/tinymce/themes/simple/skins/default/content.css +25 -0
  255. data/vendor/assets/javascripts/tinymce/themes/simple/skins/default/ui.css +32 -0
  256. data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/content.css +17 -0
  257. data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  258. data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +35 -0
  259. data/vendor/assets/javascripts/tinymce/tiny_mce.js +1 -0
  260. data/vendor/assets/javascripts/tinymce/tiny_mce_jquery.js +1 -0
  261. data/vendor/assets/javascripts/tinymce/tiny_mce_jquery_src.js +15905 -0
  262. data/vendor/assets/javascripts/tinymce/tiny_mce_popup.js +5 -0
  263. data/vendor/assets/javascripts/tinymce/tiny_mce_src.js +16728 -0
  264. data/vendor/assets/javascripts/tinymce/utils/editable_selects.js +70 -0
  265. data/vendor/assets/javascripts/tinymce/utils/form_utils.js +210 -0
  266. data/vendor/assets/javascripts/tinymce/utils/mctabs.js +162 -0
  267. data/vendor/assets/javascripts/tinymce/utils/validate.js +252 -0
  268. metadata +334 -0
@@ -0,0 +1,160 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+ var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM;
13
+
14
+ /**
15
+ * This plugin a context menu to TinyMCE editor instances.
16
+ *
17
+ * @class tinymce.plugins.ContextMenu
18
+ */
19
+ tinymce.create('tinymce.plugins.ContextMenu', {
20
+ /**
21
+ * Initializes the plugin, this will be executed after the plugin has been created.
22
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
23
+ * of the editor instance to intercept that event.
24
+ *
25
+ * @method init
26
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
27
+ * @param {string} url Absolute URL to where the plugin is located.
28
+ */
29
+ init : function(ed) {
30
+ var t = this, showMenu, contextmenuNeverUseNative, realCtrlKey;
31
+
32
+ t.editor = ed;
33
+
34
+ contextmenuNeverUseNative = ed.settings.contextmenu_never_use_native;
35
+
36
+ /**
37
+ * This event gets fired when the context menu is shown.
38
+ *
39
+ * @event onContextMenu
40
+ * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event.
41
+ * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed.
42
+ */
43
+ t.onContextMenu = new tinymce.util.Dispatcher(this);
44
+
45
+ showMenu = ed.onContextMenu.add(function(ed, e) {
46
+ // Block TinyMCE menu on ctrlKey and work around Safari issue
47
+ if ((realCtrlKey !== 0 ? realCtrlKey : e.ctrlKey) && !contextmenuNeverUseNative)
48
+ return;
49
+
50
+ Event.cancel(e);
51
+
52
+ // Select the image if it's clicked. WebKit would other wise expand the selection
53
+ if (e.target.nodeName == 'IMG')
54
+ ed.selection.select(e.target);
55
+
56
+ t._getMenu(ed).showMenu(e.clientX || e.pageX, e.clientY || e.pageY);
57
+ Event.add(ed.getDoc(), 'click', function(e) {
58
+ hide(ed, e);
59
+ });
60
+
61
+ ed.nodeChanged();
62
+ });
63
+
64
+ ed.onRemove.add(function() {
65
+ if (t._menu)
66
+ t._menu.removeAll();
67
+ });
68
+
69
+ function hide(ed, e) {
70
+ realCtrlKey = 0;
71
+
72
+ // Since the contextmenu event moves
73
+ // the selection we need to store it away
74
+ if (e && e.button == 2) {
75
+ realCtrlKey = e.ctrlKey;
76
+ return;
77
+ }
78
+
79
+ if (t._menu) {
80
+ t._menu.removeAll();
81
+ t._menu.destroy();
82
+ Event.remove(ed.getDoc(), 'click', hide);
83
+ }
84
+ };
85
+
86
+ ed.onMouseDown.add(hide);
87
+ ed.onKeyDown.add(hide);
88
+ ed.onKeyDown.add(function(ed, e) {
89
+ if (e.shiftKey && !e.ctrlKey && !e.altKey && e.keyCode === 121) {
90
+ Event.cancel(e);
91
+ showMenu(ed, e);
92
+ }
93
+ });
94
+ },
95
+
96
+ /**
97
+ * Returns information about the plugin as a name/value array.
98
+ * The current keys are longname, author, authorurl, infourl and version.
99
+ *
100
+ * @method getInfo
101
+ * @return {Object} Name/value array containing information about the plugin.
102
+ */
103
+ getInfo : function() {
104
+ return {
105
+ longname : 'Contextmenu',
106
+ author : 'Moxiecode Systems AB',
107
+ authorurl : 'http://tinymce.moxiecode.com',
108
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',
109
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
110
+ };
111
+ },
112
+
113
+ _getMenu : function(ed) {
114
+ var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p;
115
+
116
+ if (m) {
117
+ m.removeAll();
118
+ m.destroy();
119
+ }
120
+
121
+ p = DOM.getPos(ed.getContentAreaContainer());
122
+
123
+ m = ed.controlManager.createDropMenu('contextmenu', {
124
+ offset_x : p.x + ed.getParam('contextmenu_offset_x', 0),
125
+ offset_y : p.y + ed.getParam('contextmenu_offset_y', 0),
126
+ constrain : 1,
127
+ keyboard_focus: true
128
+ });
129
+
130
+ t._menu = m;
131
+
132
+ m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col);
133
+ m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col);
134
+ m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'});
135
+
136
+ if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) {
137
+ m.addSeparator();
138
+ m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
139
+ m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
140
+ }
141
+
142
+ m.addSeparator();
143
+ m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
144
+
145
+ m.addSeparator();
146
+ am = m.addMenu({title : 'contextmenu.align'});
147
+ am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'});
148
+ am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'});
149
+ am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'});
150
+ am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'});
151
+
152
+ t.onContextMenu.dispatch(t, m, el, col);
153
+
154
+ return m;
155
+ }
156
+ });
157
+
158
+ // Register plugin
159
+ tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu);
160
+ })();
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();
@@ -0,0 +1,82 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+ tinymce.create('tinymce.plugins.Directionality', {
13
+ init : function(ed, url) {
14
+ var t = this;
15
+
16
+ t.editor = ed;
17
+
18
+ ed.addCommand('mceDirectionLTR', function() {
19
+ var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock);
20
+
21
+ if (e) {
22
+ if (ed.dom.getAttrib(e, "dir") != "ltr")
23
+ ed.dom.setAttrib(e, "dir", "ltr");
24
+ else
25
+ ed.dom.setAttrib(e, "dir", "");
26
+ }
27
+
28
+ ed.nodeChanged();
29
+ });
30
+
31
+ ed.addCommand('mceDirectionRTL', function() {
32
+ var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock);
33
+
34
+ if (e) {
35
+ if (ed.dom.getAttrib(e, "dir") != "rtl")
36
+ ed.dom.setAttrib(e, "dir", "rtl");
37
+ else
38
+ ed.dom.setAttrib(e, "dir", "");
39
+ }
40
+
41
+ ed.nodeChanged();
42
+ });
43
+
44
+ ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'});
45
+ ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'});
46
+
47
+ ed.onNodeChange.add(t._nodeChange, t);
48
+ },
49
+
50
+ getInfo : function() {
51
+ return {
52
+ longname : 'Directionality',
53
+ author : 'Moxiecode Systems AB',
54
+ authorurl : 'http://tinymce.moxiecode.com',
55
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',
56
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
57
+ };
58
+ },
59
+
60
+ // Private methods
61
+
62
+ _nodeChange : function(ed, cm, n) {
63
+ var dom = ed.dom, dir;
64
+
65
+ n = dom.getParent(n, dom.isBlock);
66
+ if (!n) {
67
+ cm.setDisabled('ltr', 1);
68
+ cm.setDisabled('rtl', 1);
69
+ return;
70
+ }
71
+
72
+ dir = dom.getAttrib(n, 'dir');
73
+ cm.setActive('ltr', dir == "ltr");
74
+ cm.setDisabled('ltr', 0);
75
+ cm.setActive('rtl', dir == "rtl");
76
+ cm.setDisabled('rtl', 0);
77
+ }
78
+ });
79
+
80
+ // Register plugin
81
+ tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality);
82
+ })();
@@ -0,0 +1 @@
1
+ (function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function(tinymce) {
12
+ tinymce.create('tinymce.plugins.EmotionsPlugin', {
13
+ init : function(ed, url) {
14
+ // Register commands
15
+ ed.addCommand('mceEmotion', function() {
16
+ ed.windowManager.open({
17
+ file : url + '/emotions.htm',
18
+ width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
19
+ height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
20
+ inline : 1
21
+ }, {
22
+ plugin_url : url
23
+ });
24
+ });
25
+
26
+ // Register buttons
27
+ ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
28
+ },
29
+
30
+ getInfo : function() {
31
+ return {
32
+ longname : 'Emotions',
33
+ author : 'Moxiecode Systems AB',
34
+ authorurl : 'http://tinymce.moxiecode.com',
35
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
36
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
37
+ };
38
+ }
39
+ });
40
+
41
+ // Register plugin
42
+ tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
43
+ })(tinymce);
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#emotions_dlg.title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/emotions.js"></script>
7
+ </head>
8
+ <body style="display: none" role="application" aria-labelledby="app_title">
9
+ <span style="display:none;" id="app_title">{#emotions_dlg.title}</span>
10
+ <div align="center">
11
+ <div class="title">{#emotions_dlg.title}:<br /><br /></div>
12
+
13
+ <table id="emoticon_table" role="presentation" border="0" cellspacing="0" cellpadding="4">
14
+ <tr>
15
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.cool}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-cool.gif','emotions_dlg.cool');"><img src="img/smiley-cool.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cool}. {#emotions_dlg.usage}" /></a></td>
16
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.cry}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-cry.gif','emotions_dlg.cry');"><img src="img/smiley-cry.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cry}. {#emotions_dlg.usage}" /></a></td>
17
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.embarassed}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-embarassed.gif','emotions_dlg.embarassed');"><img src="img/smiley-embarassed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.embarassed}. {#emotions_dlg.usage}" /></a></td>
18
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.foot_in_mouth}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-foot-in-mouth.gif','emotions_dlg.foot_in_mouth');"><img src="img/smiley-foot-in-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.foot_in_mouth}. {#emotions_dlg.usage}" /></a></td>
19
+ </tr>
20
+ <tr>
21
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.frown}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-frown.gif','emotions_dlg.frown');"><img src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}. {#emotions_dlg.usage}" /></a></td>
22
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.innocent}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-innocent.gif','emotions_dlg.innocent');"><img src="img/smiley-innocent.gif" width="18" height="18" border="0" alt="{#emotions_dlg.innocent}. {#emotions_dlg.usage}" /></a></td>
23
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.kiss}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-kiss.gif','emotions_dlg.kiss');"><img src="img/smiley-kiss.gif" width="18" height="18" border="0" alt="{#emotions_dlg.kiss}. {#emotions_dlg.usage}" /></a></td>
24
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.laughing}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-laughing.gif','emotions_dlg.laughing');"><img src="img/smiley-laughing.gif" width="18" height="18" border="0" alt="{#emotions_dlg.laughing}. {#emotions_dlg.usage}" /></a></td>
25
+ </tr>
26
+ <tr>
27
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.money_mouth}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-money-mouth.gif','emotions_dlg.money_mouth');"><img src="img/smiley-money-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.money_mouth}. {#emotions_dlg.usage}"/></a></td>
28
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.sealed}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-sealed.gif','emotions_dlg.sealed');"><img src="img/smiley-sealed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.sealed}. {#emotions_dlg.usage}" /></a></td>
29
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.smile}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-smile.gif','emotions_dlg.smile');"><img src="img/smiley-smile.gif" width="18" height="18" border="0" alt="{#emotions_dlg.smile}. {#emotions_dlg.usage}" /></a></td>
30
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.surprised}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-surprised.gif','emotions_dlg.surprised');"><img src="img/smiley-surprised.gif" width="18" height="18" border="0" alt="{#emotions_dlg.surprised}. {#emotions_dlg.usage}" /></a></td>
31
+ </tr>
32
+ <tr>
33
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.tongue-out}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-tongue-out.gif','emotions_dlg.tongue_out');"><img src="img/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{#emotions_dlg.tongue-out}. {#emotions_dlg.usage}" /></a></td>
34
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.undecided}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-undecided.gif','emotions_dlg.undecided');"><img src="img/smiley-undecided.gif" width="18" height="18" border="0" alt="{#emotions_dlg.undecided}. {#emotions_dlg.usage}" /></a></td>
35
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.wink}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-wink.gif','emotions_dlg.wink');"><img src="img/smiley-wink.gif" width="18" height="18" border="0" alt="{#emotions_dlg.wink}. {#emotions_dlg.usage}" /></a></td>
36
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.yell}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-yell.gif','emotions_dlg.yell');"><img src="img/smiley-yell.gif" width="18" height="18" border="0" alt="{#emotions_dlg.yell}. {#emotions_dlg.usage}" /></a></td>
37
+ </tr>
38
+ </table>
39
+ <div>{#emotions_dlg.usage}</div>
40
+ </div>
41
+ </body>
42
+ </html>
@@ -0,0 +1,43 @@
1
+ tinyMCEPopup.requireLangPack();
2
+
3
+ var EmotionsDialog = {
4
+ addKeyboardNavigation: function(){
5
+ var tableElm, cells, settings;
6
+
7
+ cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");
8
+
9
+ settings ={
10
+ root: "emoticon_table",
11
+ items: cells
12
+ };
13
+ cells[0].tabindex=0;
14
+ tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
15
+ if (tinymce.isGecko) {
16
+ cells[0].focus();
17
+ } else {
18
+ setTimeout(function(){
19
+ cells[0].focus();
20
+ }, 100);
21
+ }
22
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
23
+ },
24
+ init : function(ed) {
25
+ tinyMCEPopup.resizeToInnerSize();
26
+ this.addKeyboardNavigation();
27
+ },
28
+
29
+ insert : function(file, title) {
30
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
31
+
32
+ tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
33
+ src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
34
+ alt : ed.getLang(title),
35
+ title : ed.getLang(title),
36
+ border : 0
37
+ }));
38
+
39
+ tinyMCEPopup.close();
40
+ }
41
+ };
42
+
43
+ tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('en.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"Emotions",title:"Insert Emotion",usage:"Use left and right arrows to navigate.",yell:"Yell",wink:"Wink",undecided:"Undecided","tongue_out":"Tongue Out",surprised:"Surprised",smile:"Smile",sealed:"Sealed","money_mouth":"Money Mouth",laughing:"Laughing",kiss:"Kiss",innocent:"Innocent",frown:"Frown","foot_in_mouth":"Foot in Mouth",embarassed:"Embarassed"});
@@ -0,0 +1,22 @@
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>{#example_dlg.title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/dialog.js"></script>
7
+ </head>
8
+ <body>
9
+
10
+ <form onsubmit="ExampleDialog.insert();return false;" action="#">
11
+ <p>Here is a example dialog.</p>
12
+ <p>Selected text: <input id="someval" name="someval" type="text" class="text" /></p>
13
+ <p>Custom arg: <input id="somearg" name="somearg" type="text" class="text" /></p>
14
+
15
+ <div class="mceActionPanel">
16
+ <input type="button" id="insert" name="insert" value="{#insert}" onclick="ExampleDialog.insert();" />
17
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
18
+ </div>
19
+ </form>
20
+
21
+ </body>
22
+ </html>
@@ -0,0 +1 @@
1
+ (function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
@@ -0,0 +1,84 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+ // Load plugin specific language pack
13
+ tinymce.PluginManager.requireLangPack('example');
14
+
15
+ tinymce.create('tinymce.plugins.ExamplePlugin', {
16
+ /**
17
+ * Initializes the plugin, this will be executed after the plugin has been created.
18
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
19
+ * of the editor instance to intercept that event.
20
+ *
21
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
22
+ * @param {string} url Absolute URL to where the plugin is located.
23
+ */
24
+ init : function(ed, url) {
25
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
26
+ ed.addCommand('mceExample', function() {
27
+ ed.windowManager.open({
28
+ file : url + '/dialog.htm',
29
+ width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
30
+ height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
31
+ inline : 1
32
+ }, {
33
+ plugin_url : url, // Plugin absolute URL
34
+ some_custom_arg : 'custom arg' // Custom argument
35
+ });
36
+ });
37
+
38
+ // Register example button
39
+ ed.addButton('example', {
40
+ title : 'example.desc',
41
+ cmd : 'mceExample',
42
+ image : url + '/img/example.gif'
43
+ });
44
+
45
+ // Add a node change handler, selects the button in the UI when a image is selected
46
+ ed.onNodeChange.add(function(ed, cm, n) {
47
+ cm.setActive('example', n.nodeName == 'IMG');
48
+ });
49
+ },
50
+
51
+ /**
52
+ * Creates control instances based in the incomming name. This method is normally not
53
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
54
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
55
+ * method can be used to create those.
56
+ *
57
+ * @param {String} n Name of the control to create.
58
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
59
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
60
+ */
61
+ createControl : function(n, cm) {
62
+ return null;
63
+ },
64
+
65
+ /**
66
+ * Returns information about the plugin as a name/value array.
67
+ * The current keys are longname, author, authorurl, infourl and version.
68
+ *
69
+ * @return {Object} Name/value array containing information about the plugin.
70
+ */
71
+ getInfo : function() {
72
+ return {
73
+ longname : 'Example plugin',
74
+ author : 'Some author',
75
+ authorurl : 'http://tinymce.moxiecode.com',
76
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
77
+ version : "1.0"
78
+ };
79
+ }
80
+ });
81
+
82
+ // Register plugin
83
+ tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
84
+ })();
@@ -0,0 +1,19 @@
1
+ tinyMCEPopup.requireLangPack();
2
+
3
+ var ExampleDialog = {
4
+ init : function() {
5
+ var f = document.forms[0];
6
+
7
+ // Get the selected contents as text and place it in the input
8
+ f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
9
+ f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
10
+ },
11
+
12
+ insert : function() {
13
+ // Insert the contents from the input into the document
14
+ tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
15
+ tinyMCEPopup.close();
16
+ }
17
+ };
18
+
19
+ tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
@@ -0,0 +1,3 @@
1
+ tinyMCE.addI18n('en.example',{
2
+ desc : 'This is just a template button'
3
+ });
@@ -0,0 +1,3 @@
1
+ tinyMCE.addI18n('en.example_dlg',{
2
+ title : 'This is just a example title'
3
+ });
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.ExampleDependencyPlugin",{init:function(a,b){},getInfo:function(){return{longname:"Example Dependency plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency",version:"1.0"}}});tinymce.PluginManager.add("example_dependency",tinymce.plugins.ExampleDependencyPlugin,["example"])})();
@@ -0,0 +1,50 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+
13
+ tinymce.create('tinymce.plugins.ExampleDependencyPlugin', {
14
+ /**
15
+ * Initializes the plugin, this will be executed after the plugin has been created.
16
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
17
+ * of the editor instance to intercept that event.
18
+ *
19
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
20
+ * @param {string} url Absolute URL to where the plugin is located.
21
+ */
22
+ init : function(ed, url) {
23
+ },
24
+
25
+
26
+ /**
27
+ * Returns information about the plugin as a name/value array.
28
+ * The current keys are longname, author, authorurl, infourl and version.
29
+ *
30
+ * @return {Object} Name/value array containing information about the plugin.
31
+ */
32
+ getInfo : function() {
33
+ return {
34
+ longname : 'Example Dependency plugin',
35
+ author : 'Some author',
36
+ authorurl : 'http://tinymce.moxiecode.com',
37
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency',
38
+ version : "1.0"
39
+ };
40
+ }
41
+ });
42
+
43
+ /**
44
+ * Register the plugin, specifying the list of the plugins that this plugin depends on. They are specified in a list, with the list loaded in order.
45
+ * plugins in this list will be initialised when this plugin is initialized. (before the init method is called).
46
+ * plugins in a depends list should typically be specified using the short name). If neccesary this can be done
47
+ * with an object which has the url to the plugin and the shortname.
48
+ */
49
+ tinymce.PluginManager.add('example_dependency', tinymce.plugins.ExampleDependencyPlugin, ['example']);
50
+ })();