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 @@
1
+ (function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">&nbsp;</span>':"&nbsp;")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(f.keyCode==9){f.preventDefault();d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking")}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})();
@@ -0,0 +1,54 @@
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.Nonbreaking', {
13
+ init : function(ed, url) {
14
+ var t = this;
15
+
16
+ t.editor = ed;
17
+
18
+ // Register commands
19
+ ed.addCommand('mceNonBreaking', function() {
20
+ ed.execCommand('mceInsertContent', false, (ed.plugins.visualchars && ed.plugins.visualchars.state) ? '<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">&nbsp;</span>' : '&nbsp;');
21
+ });
22
+
23
+ // Register buttons
24
+ ed.addButton('nonbreaking', {title : 'nonbreaking.nonbreaking_desc', cmd : 'mceNonBreaking'});
25
+
26
+ if (ed.getParam('nonbreaking_force_tab')) {
27
+ ed.onKeyDown.add(function(ed, e) {
28
+ if (e.keyCode == 9) {
29
+ e.preventDefault();
30
+
31
+ ed.execCommand('mceNonBreaking');
32
+ ed.execCommand('mceNonBreaking');
33
+ ed.execCommand('mceNonBreaking');
34
+ }
35
+ });
36
+ }
37
+ },
38
+
39
+ getInfo : function() {
40
+ return {
41
+ longname : 'Nonbreaking space',
42
+ author : 'Moxiecode Systems AB',
43
+ authorurl : 'http://tinymce.moxiecode.com',
44
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',
45
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
46
+ };
47
+ }
48
+
49
+ // Private methods
50
+ });
51
+
52
+ // Register plugin
53
+ tinymce.PluginManager.add('nonbreaking', tinymce.plugins.Nonbreaking);
54
+ })();
@@ -0,0 +1 @@
1
+ (function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b,g;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(i,h,l){var k,j;k=i.dom.getParent(i.selection.getStart(),function(m){return i.dom.hasClass(m,b)});j=i.dom.getParent(i.selection.getEnd(),function(m){return i.dom.hasClass(m,b)});if(k||j){g=1;f._setDisabled(1);return false}else{if(g==1){f._setDisabled(0);g=0}}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block);b.onContextMenu.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block);b.onContextMenu.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})();
@@ -0,0 +1,95 @@
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;
13
+
14
+ tinymce.create('tinymce.plugins.NonEditablePlugin', {
15
+ init : function(ed, url) {
16
+ var t = this, editClass, nonEditClass, state;
17
+
18
+ t.editor = ed;
19
+ editClass = ed.getParam("noneditable_editable_class", "mceEditable");
20
+ nonEditClass = ed.getParam("noneditable_noneditable_class", "mceNonEditable");
21
+
22
+ ed.onNodeChange.addToTop(function(ed, cm, n) {
23
+ var sc, ec;
24
+
25
+ // Block if start or end is inside a non editable element
26
+ sc = ed.dom.getParent(ed.selection.getStart(), function(n) {
27
+ return ed.dom.hasClass(n, nonEditClass);
28
+ });
29
+
30
+ ec = ed.dom.getParent(ed.selection.getEnd(), function(n) {
31
+ return ed.dom.hasClass(n, nonEditClass);
32
+ });
33
+
34
+ // Block or unblock
35
+ if (sc || ec) {
36
+ state = 1;
37
+ t._setDisabled(1);
38
+ return false;
39
+ } else if (state == 1) {
40
+ t._setDisabled(0);
41
+ state = 0;
42
+ }
43
+ });
44
+ },
45
+
46
+ getInfo : function() {
47
+ return {
48
+ longname : 'Non editable elements',
49
+ author : 'Moxiecode Systems AB',
50
+ authorurl : 'http://tinymce.moxiecode.com',
51
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable',
52
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
53
+ };
54
+ },
55
+
56
+ _block : function(ed, e) {
57
+ var k = e.keyCode;
58
+
59
+ // Don't block arrow keys, pg up/down, and F1-F12
60
+ if ((k > 32 && k < 41) || (k > 111 && k < 124))
61
+ return;
62
+
63
+ return Event.cancel(e);
64
+ },
65
+
66
+ _setDisabled : function(s) {
67
+ var t = this, ed = t.editor;
68
+
69
+ tinymce.each(ed.controlManager.controls, function(c) {
70
+ c.setDisabled(s);
71
+ });
72
+
73
+ if (s !== t.disabled) {
74
+ if (s) {
75
+ ed.onKeyDown.addToTop(t._block);
76
+ ed.onKeyPress.addToTop(t._block);
77
+ ed.onKeyUp.addToTop(t._block);
78
+ ed.onPaste.addToTop(t._block);
79
+ ed.onContextMenu.addToTop(t._block);
80
+ } else {
81
+ ed.onKeyDown.remove(t._block);
82
+ ed.onKeyPress.remove(t._block);
83
+ ed.onKeyUp.remove(t._block);
84
+ ed.onPaste.remove(t._block);
85
+ ed.onContextMenu.remove(t._block);
86
+ }
87
+
88
+ t.disabled = s;
89
+ }
90
+ }
91
+ });
92
+
93
+ // Register plugin
94
+ tinymce.PluginManager.add('noneditable', tinymce.plugins.NonEditablePlugin);
95
+ })();
@@ -0,0 +1 @@
1
+ (function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='<img src="'+b.theme.url+'/img/trans.gif" class="mcePageBreak mceItemNoResize" />',a="mcePageBreak",c=b.getParam("pagebreak_separator","<!-- pagebreak -->"),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/<img[^>]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})();
@@ -0,0 +1,74 @@
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.PageBreakPlugin', {
13
+ init : function(ed, url) {
14
+ var pb = '<img src="' + ed.theme.url + '/img/trans.gif" class="mcePageBreak mceItemNoResize" />', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', '<!-- pagebreak -->'), pbRE;
15
+
16
+ pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g');
17
+
18
+ // Register commands
19
+ ed.addCommand('mcePageBreak', function() {
20
+ ed.execCommand('mceInsertContent', 0, pb);
21
+ });
22
+
23
+ // Register buttons
24
+ ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls});
25
+
26
+ ed.onInit.add(function() {
27
+ if (ed.theme.onResolveName) {
28
+ ed.theme.onResolveName.add(function(th, o) {
29
+ if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls))
30
+ o.name = 'pagebreak';
31
+ });
32
+ }
33
+ });
34
+
35
+ ed.onClick.add(function(ed, e) {
36
+ e = e.target;
37
+
38
+ if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls))
39
+ ed.selection.select(e);
40
+ });
41
+
42
+ ed.onNodeChange.add(function(ed, cm, n) {
43
+ cm.setActive('pagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls));
44
+ });
45
+
46
+ ed.onBeforeSetContent.add(function(ed, o) {
47
+ o.content = o.content.replace(pbRE, pb);
48
+ });
49
+
50
+ ed.onPostProcess.add(function(ed, o) {
51
+ if (o.get)
52
+ o.content = o.content.replace(/<img[^>]+>/g, function(im) {
53
+ if (im.indexOf('class="mcePageBreak') !== -1)
54
+ im = sep;
55
+
56
+ return im;
57
+ });
58
+ });
59
+ },
60
+
61
+ getInfo : function() {
62
+ return {
63
+ longname : 'PageBreak',
64
+ author : 'Moxiecode Systems AB',
65
+ authorurl : 'http://tinymce.moxiecode.com',
66
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',
67
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
68
+ };
69
+ }
70
+ });
71
+
72
+ // Register plugin
73
+ tinymce.PluginManager.add('pagebreak', tinymce.plugins.PageBreakPlugin);
74
+ })();
@@ -0,0 +1 @@
1
+ (function(){var c=tinymce.each,a={paste_auto_cleanup_on_paste:true,paste_enable_default_filters:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_convert_headers_to_strong:false,paste_dialog_width:"450",paste_dialog_height:"400",paste_text_use_dialog:false,paste_text_sticky:false,paste_text_sticky_default:false,paste_text_notifyalways:false,paste_text_linebreaktype:"combined",paste_text_replacements:[[/\u2026/g,"..."],[/[\x93\x94\u201c\u201d]/g,'"'],[/[\x60\x91\x92\u2018\u2019]/g,"'"]]};function b(d,e){return d.getParam(e,a[e])}tinymce.create("tinymce.plugins.PastePlugin",{init:function(d,e){var f=this;f.editor=d;f.url=e;f.onPreProcess=new tinymce.util.Dispatcher(f);f.onPostProcess=new tinymce.util.Dispatcher(f);f.onPreProcess.add(f._preProcess);f.onPostProcess.add(f._postProcess);f.onPreProcess.add(function(i,j){d.execCallback("paste_preprocess",i,j)});f.onPostProcess.add(function(i,j){d.execCallback("paste_postprocess",i,j)});d.onKeyDown.addToTop(function(i,j){if(((tinymce.isMac?j.metaKey:j.ctrlKey)&&j.keyCode==86)||(j.shiftKey&&j.keyCode==45)){return false}});d.pasteAsPlainText=b(d,"paste_text_sticky_default");function h(l,j){var k=d.dom,i;f.onPreProcess.dispatch(f,l);l.node=k.create("div",0,l.content);if(tinymce.isGecko){i=d.selection.getRng(true);if(i.startContainer==i.endContainer&&i.startContainer.nodeType==3){if(l.node.childNodes.length===1&&/^(p|h[1-6]|pre)$/i.test(l.node.firstChild.nodeName)&&l.content.indexOf("__MCE_ITEM__")===-1){k.remove(l.node.firstChild,true)}}}f.onPostProcess.dispatch(f,l);l.content=d.serializer.serialize(l.node,{getInner:1,forced_root_block:""});if((!j)&&(d.pasteAsPlainText)){f._insertPlainText(l.content);if(!b(d,"paste_text_sticky")){d.pasteAsPlainText=false;d.controlManager.setActive("pastetext",false)}}else{f._insert(l.content)}}d.addCommand("mceInsertClipboardContent",function(i,j){h(j,true)});if(!b(d,"paste_text_use_dialog")){d.addCommand("mcePasteText",function(j,i){var k=tinymce.util.Cookie;d.pasteAsPlainText=!d.pasteAsPlainText;d.controlManager.setActive("pastetext",d.pasteAsPlainText);if((d.pasteAsPlainText)&&(!k.get("tinymcePasteText"))){if(b(d,"paste_text_sticky")){d.windowManager.alert(d.translate("paste.plaintext_mode_sticky"))}else{d.windowManager.alert(d.translate("paste.plaintext_mode"))}if(!b(d,"paste_text_notifyalways")){k.set("tinymcePasteText","1",new Date(new Date().getFullYear()+1,12,31))}}})}d.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});d.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"});function g(s){var l,p,j,t,k=d.selection,o=d.dom,q=d.getBody(),i,r;if(s.clipboardData||o.doc.dataTransfer){r=(s.clipboardData||o.doc.dataTransfer).getData("Text");if(d.pasteAsPlainText){s.preventDefault();h({content:o.encode(r).replace(/\r?\n/g,"<br />")});return}}if(o.get("_mcePaste")){return}l=o.add(q,"div",{id:"_mcePaste","class":"mcePaste","data-mce-bogus":"1"},"\uFEFF\uFEFF");if(q!=d.getDoc().body){i=o.getPos(d.selection.getStart(),q).y}else{i=q.scrollTop+o.getViewPort(d.getWin()).y}o.setStyles(l,{position:"absolute",left:tinymce.isGecko?-40:0,top:i-25,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){t=k.getRng();j=o.doc.body.createTextRange();j.moveToElementText(l);j.execCommand("Paste");o.remove(l);if(l.innerHTML==="\uFEFF\uFEFF"){d.execCommand("mcePasteWord");s.preventDefault();return}k.setRng(t);k.setContent("");setTimeout(function(){h({content:l.innerHTML})},0);return tinymce.dom.Event.cancel(s)}else{function m(n){n.preventDefault()}o.bind(d.getDoc(),"mousedown",m);o.bind(d.getDoc(),"keydown",m);p=d.selection.getRng();l=l.firstChild;j=d.getDoc().createRange();j.setStart(l,0);j.setEnd(l,2);k.setRng(j);window.setTimeout(function(){var u="",n;if(!o.select("div.mcePaste > div.mcePaste").length){n=o.select("div.mcePaste");c(n,function(w){var v=w.firstChild;if(v&&v.nodeName=="DIV"&&v.style.marginTop&&v.style.backgroundColor){o.remove(v,1)}c(o.select("span.Apple-style-span",w),function(x){o.remove(x,1)});c(o.select("br[data-mce-bogus]",w),function(x){o.remove(x)});if(w.parentNode.className!="mcePaste"){u+=w.innerHTML}})}else{u="<p>"+o.encode(r).replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br />")+"</p>"}c(o.select("div.mcePaste"),function(v){o.remove(v)});if(p){k.setRng(p)}h({content:u});o.unbind(d.getDoc(),"mousedown",m);o.unbind(d.getDoc(),"keydown",m)},0)}}if(b(d,"paste_auto_cleanup_on_paste")){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){d.onKeyDown.addToTop(function(i,j){if(((tinymce.isMac?j.metaKey:j.ctrlKey)&&j.keyCode==86)||(j.shiftKey&&j.keyCode==45)){g(j)}})}else{d.onPaste.addToTop(function(i,j){return g(j)})}}d.onInit.add(function(){d.controlManager.setActive("pastetext",d.pasteAsPlainText);if(b(d,"paste_block_drop")){d.dom.bind(d.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(i){i.preventDefault();i.stopPropagation();return false})}});f._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(g,e){var k=this.editor,j=e.content,p=tinymce.grep,n=tinymce.explode,f=tinymce.trim,l,i;function d(h){c(h,function(o){if(o.constructor==RegExp){j=j.replace(o,"")}else{j=j.replace(o[0],o[1])}})}if(k.settings.paste_enable_default_filters==false){return}if(tinymce.isIE&&document.documentMode>=9){d([[/(?:<br>&nbsp;[\s\r\n]+|<br>)*(<\/?(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br>&nbsp;[\s\r\n]+|<br>)*/g,"$1"]]);d([[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])}if(/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(j)||e.wordContent){e.wordContent=true;d([/^\s*(&nbsp;)+/gi,/(&nbsp;|<br[^>]*>)+\s*$/gi]);if(b(k,"paste_convert_headers_to_strong")){j=j.replace(/<p [^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"<p><strong>$1</strong></p>")}if(b(k,"paste_convert_middot_lists")){d([[/<!--\[if !supportLists\]-->/gi,"$&__MCE_ITEM__"],[/(<span[^>]+(?:mso-list:|:\s*symbol)[^>]+>)/gi,"$1__MCE_ITEM__"],[/(<p[^>]+(?:MsoListParagraph)[^>]+>)/gi,"$1__MCE_ITEM__"]])}d([/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi,"\u00a0"]]);do{l=j.length;j=j.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi,"$1")}while(l!=j.length);if(b(k,"paste_retain_style_properties").replace(/^none$/i,"").length==0){j=j.replace(/<\/?span[^>]*>/gi,"")}else{d([[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(o,h){return(h.length>0)?h.replace(/./," ").slice(Math.floor(h.length/2)).split("").join("\u00a0"):""}],[/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,function(t,h,r){var u=[],o=0,q=n(f(r).replace(/&quot;/gi,"'"),";");c(q,function(s){var w,y,z=n(s,":");function x(A){return A+((A!=="0")&&(/\d$/.test(A)))?"px":""}if(z.length==2){w=z[0].toLowerCase();y=z[1].toLowerCase();switch(w){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":u[o++]=w.replace(/^mso-|-alt$/g,"")+":"+x(y);return;case"horiz-align":u[o++]="text-align:"+y;return;case"vert-align":u[o++]="vertical-align:"+y;return;case"font-color":case"mso-foreground":u[o++]="color:"+y;return;case"mso-background":case"mso-highlight":u[o++]="background:"+y;return;case"mso-default-height":u[o++]="min-height:"+x(y);return;case"mso-default-width":u[o++]="min-width:"+x(y);return;case"mso-padding-between-alt":u[o++]="border-collapse:separate;border-spacing:"+x(y);return;case"text-line-through":if((y=="single")||(y=="double")){u[o++]="text-decoration:line-through"}return;case"mso-zero-height":if(y=="yes"){u[o++]="display:none"}return}if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(w)){return}u[o++]=w+":"+z[1]}});if(o>0){return h+' style="'+u.join(";")+'"'}else{return h}}]])}}if(b(k,"paste_convert_headers_to_strong")){d([[/<h[1-6][^>]*>/gi,"<p><strong>"],[/<\/h[1-6][^>]*>/gi,"</strong></p>"]])}d([[/Version:[\d.]+\nStartHTML:\d+\nEndHTML:\d+\nStartFragment:\d+\nEndFragment:\d+/gi,""]]);i=b(k,"paste_strip_class_attributes");if(i!=="none"){function m(q,o){if(i==="all"){return""}var h=p(n(o.replace(/^(["'])(.*)\1$/,"$2")," "),function(r){return(/^(?!mso)/i.test(r))});return h.length?' class="'+h.join(" ")+'"':""}j=j.replace(/ class="([^"]+)"/gi,m);j=j.replace(/ class=([\-\w]+)/gi,m)}if(b(k,"paste_remove_spans")){j=j.replace(/<\/?span[^>]*>/gi,"")}e.content=j},_postProcess:function(g,i){var f=this,e=f.editor,h=e.dom,d;if(e.settings.paste_enable_default_filters==false){return}if(i.wordContent){c(h.select("a",i.node),function(j){if(!j.href||j.href.indexOf("#_Toc")!=-1){h.remove(j,1)}});if(b(e,"paste_convert_middot_lists")){f._convertLists(g,i)}d=b(e,"paste_retain_style_properties");if((tinymce.is(d,"string"))&&(d!=="all")&&(d!=="*")){d=tinymce.explode(d.replace(/^none$/i,""));c(h.select("*",i.node),function(m){var n={},k=0,l,o,j;if(d){for(l=0;l<d.length;l++){o=d[l];j=h.getStyle(m,o);if(j){n[o]=j;k++}}}h.setAttrib(m,"style","");if(d&&k>0){h.setStyles(m,n)}else{if(m.nodeName=="SPAN"&&!m.className){h.remove(m,true)}}})}}if(b(e,"paste_remove_styles")||(b(e,"paste_remove_styles_if_webkit")&&tinymce.isWebKit)){c(h.select("*[style]",i.node),function(j){j.removeAttribute("style");j.removeAttribute("data-mce-style")})}else{if(tinymce.isWebKit){c(h.select("*",i.node),function(j){j.removeAttribute("data-mce-style")})}}},_convertLists:function(g,e){var i=g.editor.dom,h,l,d=-1,f,m=[],k,j;c(i.select("p",e.node),function(t){var q,u="",s,r,n,o;for(q=t.firstChild;q&&q.nodeType==3;q=q.nextSibling){u+=q.nodeValue}u=t.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/&nbsp;/g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*\u00a0*/.test(u)){s="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0+/.test(u)){s="ol"}if(s){f=parseFloat(t.style.marginLeft||0);if(f>d){m.push(f)}if(!h||s!=k){h=i.create(s);i.insertAfter(h,t)}else{if(f>d){h=l.appendChild(i.create(s))}else{if(f<d){n=tinymce.inArray(m,f);o=i.getParents(h.parentNode,s);h=o[o.length-1-n]||h}}}c(i.select("span",t),function(v){var p=v.innerHTML.replace(/<\/?\w+[^>]*>/gi,"");if(s=="ul"&&/^__MCE_ITEM__[\u2022\u00b7\u00a7\u00d8o\u25CF]/.test(p)){i.remove(v)}else{if(/^__MCE_ITEM__[\s\S]*\w+\.(&nbsp;|\u00a0)*\s*/.test(p)){i.remove(v)}}});r=t.innerHTML;if(s=="ul"){r=t.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*(&nbsp;|\u00a0)+\s*/,"")}else{r=t.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.(&nbsp;|\u00a0)+\s*/,"")}l=h.appendChild(i.create("li",0,r));i.remove(t);d=f;k=s}else{h=d=0}});j=e.node.innerHTML;if(j.indexOf("__MCE_ITEM__")!=-1){e.node.innerHTML=j.replace(/__MCE_ITEM__/g,"")}},_insert:function(f,d){var e=this.editor,g=e.selection.getRng();if(!e.selection.isCollapsed()&&g.startContainer!=g.endContainer){e.getDoc().execCommand("Delete",false,null)}e.execCommand("mceInsertContent",false,f,{skip_undo:d})},_insertPlainText:function(g){var d=this.editor,e=b(d,"paste_text_linebreaktype"),i=b(d,"paste_text_replacements"),f=tinymce.is;function h(j){c(j,function(k){if(k.constructor==RegExp){g=g.replace(k,"")}else{g=g.replace(k[0],k[1])}})}if((typeof(g)==="string")&&(g.length>0)){if(/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(g)){h([/[\n\r]+/g])}else{h([/\r+/g])}h([[/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi,"\n\n"],[/<br[^>]*>|<\/tr>/gi,"\n"],[/<\/t[dh]>\s*<t[dh][^>]*>/gi,"\t"],/<[a-z!\/?][^>]*>/gi,[/&nbsp;/gi," "],[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi,"$1"],[/\n{3,}/g,"\n\n"]]);g=d.dom.decode(tinymce.html.Entities.encodeRaw(g));if(f(i,"array")){h(i)}else{if(f(i,"string")){h(new RegExp(i,"gi"))}}if(e=="none"){h([[/\n+/g," "]])}else{if(e=="br"){h([[/\n/g,"<br />"]])}else{if(e=="p"){h([[/\n+/g,"</p><p>"],[/^(.*<\/p>)(<p>)$/,"<p>$1"]])}else{h([[/\n\n/g,"</p><p>"],[/^(.*<\/p>)(<p>)$/,"<p>$1"],[/\n/g,"<br />"]])}}}d.execCommand("mceInsertContent",false,g)}},_legacySupport:function(){var e=this,d=e.editor;d.addCommand("mcePasteWord",function(){d.windowManager.open({file:e.url+"/pasteword.htm",width:parseInt(b(d,"paste_dialog_width")),height:parseInt(b(d,"paste_dialog_height")),inline:1})});if(b(d,"paste_text_use_dialog")){d.addCommand("mcePasteText",function(){d.windowManager.open({file:e.url+"/pastetext.htm",width:parseInt(b(d,"paste_dialog_width")),height:parseInt(b(d,"paste_dialog_height")),inline:1})})}d.addButton("pasteword",{title:"paste.paste_word_desc",cmd:"mcePasteWord"})}});tinymce.PluginManager.add("paste",tinymce.plugins.PastePlugin)})();