kuztuscms 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. data/CHANGELOG.rdoc +5 -0
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.rdoc +26 -1
  5. data/app/assets/javascripts/kuztuscms/tiny_mce/jquery.tinymce.js +1 -0
  6. data/app/assets/javascripts/kuztuscms/tiny_mce/langs/en.js +1 -0
  7. data/app/assets/javascripts/kuztuscms/tiny_mce/license.txt +504 -0
  8. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  9. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  10. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  11. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/js/rule.js +43 -0
  12. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -0
  13. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advhr/rule.htm +58 -0
  14. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  15. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  16. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  17. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/image.htm +235 -0
  18. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  19. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/js/image.js +462 -0
  20. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -0
  21. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  22. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  23. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  24. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/js/advlink.js +539 -0
  25. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -0
  26. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlink/link.htm +338 -0
  27. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  28. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/advlist/editor_plugin_src.js +176 -0
  29. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autolink/editor_plugin.js +1 -0
  30. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autolink/editor_plugin_src.js +174 -0
  31. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  32. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autoresize/editor_plugin_src.js +119 -0
  33. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  34. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autosave/editor_plugin_src.js +431 -0
  35. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/autosave/langs/en.js +4 -0
  36. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  37. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  38. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  39. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/contextmenu/editor_plugin_src.js +161 -0
  40. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  41. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  42. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  43. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  44. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/emotions.htm +42 -0
  45. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  46. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  47. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  48. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  49. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  50. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  51. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  52. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  53. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  54. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  55. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  56. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  57. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  58. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  59. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  60. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  61. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/js/emotions.js +43 -0
  62. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -0
  63. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/dialog.htm +22 -0
  64. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/editor_plugin.js +1 -0
  65. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  66. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/img/example.gif +0 -0
  67. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/js/dialog.js +19 -0
  68. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/langs/en.js +3 -0
  69. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  70. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example_dependency/editor_plugin.js +1 -0
  71. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/example_dependency/editor_plugin_src.js +50 -0
  72. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/css/fullpage.css +143 -0
  73. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  74. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/editor_plugin_src.js +405 -0
  75. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/fullpage.htm +259 -0
  76. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/js/fullpage.js +232 -0
  77. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -0
  78. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  79. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -0
  80. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
  81. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  82. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  83. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  84. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +699 -0
  85. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  86. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  87. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  88. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  89. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  90. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  91. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  92. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  93. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  94. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  95. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  96. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  97. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/layer/editor_plugin_src.js +262 -0
  98. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  99. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +139 -0
  100. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/lists/editor_plugin.js +1 -0
  101. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/lists/editor_plugin_src.js +951 -0
  102. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/css/media.css +17 -0
  103. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/editor_plugin.js +1 -0
  104. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/editor_plugin_src.js +890 -0
  105. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/js/embed.js +73 -0
  106. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/js/media.js +470 -0
  107. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/langs/en_dlg.js +1 -0
  108. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/media.htm +922 -0
  109. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/media/moxieplayer.swf +0 -0
  110. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  111. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +54 -0
  112. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  113. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/noneditable/editor_plugin_src.js +438 -0
  114. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  115. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  116. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  117. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/editor_plugin_src.js +871 -0
  118. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  119. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  120. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/langs/en_dlg.js +1 -0
  121. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/pastetext.htm +27 -0
  122. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/paste/pasteword.htm +21 -0
  123. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  124. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  125. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/example.html +28 -0
  126. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  127. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/preview/preview.html +17 -0
  128. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/print/editor_plugin.js +1 -0
  129. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  130. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/save/editor_plugin.js +1 -0
  131. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  132. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  133. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  134. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/editor_plugin_src.js +61 -0
  135. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/js/searchreplace.js +142 -0
  136. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -0
  137. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
  138. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  139. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  140. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/editor_plugin_src.js +436 -0
  141. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  142. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/css/props.css +14 -0
  143. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/editor_plugin.js +1 -0
  144. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/editor_plugin_src.js +71 -0
  145. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/js/props.js +709 -0
  146. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/langs/en_dlg.js +1 -0
  147. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/props.htm +845 -0
  148. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/style/readme.txt +19 -0
  149. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  150. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/tabfocus/editor_plugin_src.js +122 -0
  151. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/cell.htm +180 -0
  152. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/css/cell.css +17 -0
  153. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/css/row.css +25 -0
  154. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/css/table.css +13 -0
  155. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/editor_plugin.js +1 -0
  156. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/editor_plugin_src.js +1428 -0
  157. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/cell.js +319 -0
  158. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  159. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/row.js +237 -0
  160. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/js/table.js +489 -0
  161. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/langs/en_dlg.js +1 -0
  162. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/merge_cells.htm +32 -0
  163. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/row.htm +158 -0
  164. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/table/table.htm +188 -0
  165. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/blank.htm +12 -0
  166. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/css/template.css +23 -0
  167. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/editor_plugin.js +1 -0
  168. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  169. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/js/template.js +106 -0
  170. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/langs/en_dlg.js +1 -0
  171. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/template/template.htm +31 -0
  172. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualblocks/css/visualblocks.css +19 -0
  173. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualblocks/editor_plugin.js +1 -0
  174. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualblocks/editor_plugin_src.js +63 -0
  175. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  176. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
  177. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  178. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/wordcount/editor_plugin_src.js +122 -0
  179. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
  180. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
  181. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
  182. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
  183. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  184. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  185. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
  186. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  187. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  188. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
  189. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  190. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  191. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/attributes.js +111 -0
  192. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  193. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
  194. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -0
  195. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -0
  196. data/app/assets/javascripts/kuztuscms/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
  197. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/about.htm +52 -0
  198. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/anchor.htm +26 -0
  199. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/charmap.htm +55 -0
  200. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/color_picker.htm +74 -0
  201. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/editor_template.js +1 -0
  202. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/editor_template_src.js +1467 -0
  203. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/image.htm +80 -0
  204. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  205. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/flash.gif +0 -0
  206. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/icons.gif +0 -0
  207. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  208. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
  209. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
  210. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
  211. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
  212. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/trans.gif +0 -0
  213. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/video.gif +0 -0
  214. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
  215. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/about.js +73 -0
  216. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/anchor.js +44 -0
  217. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/charmap.js +363 -0
  218. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/color_picker.js +345 -0
  219. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/image.js +251 -0
  220. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/link.js +153 -0
  221. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/js/source_editor.js +78 -0
  222. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/langs/en.js +1 -0
  223. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/langs/en_dlg.js +1 -0
  224. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/link.htm +57 -0
  225. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/shortcuts.htm +47 -0
  226. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/content.css +51 -0
  227. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  228. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  229. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  230. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  231. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  232. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  233. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  234. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/default/ui.css +215 -0
  235. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/highcontrast/content.css +25 -0
  236. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  237. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/highcontrast/ui.css +102 -0
  238. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/content.css +49 -0
  239. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -0
  240. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  241. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  242. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  243. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/ui.css +218 -0
  244. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  245. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  246. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/advanced/source_editor.htm +25 -0
  247. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/editor_template.js +1 -0
  248. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/editor_template_src.js +84 -0
  249. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/img/icons.gif +0 -0
  250. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/langs/en.js +1 -0
  251. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/default/content.css +25 -0
  252. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  253. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  254. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  255. data/app/assets/javascripts/kuztuscms/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  256. data/app/assets/javascripts/kuztuscms/tiny_mce/tiny_mce.js +1 -0
  257. data/app/assets/javascripts/kuztuscms/tiny_mce/tiny_mce_popup.js +5 -0
  258. data/app/assets/javascripts/kuztuscms/tiny_mce/tiny_mce_src.js +16573 -0
  259. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/editable_selects.js +70 -0
  260. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/form_utils.js +210 -0
  261. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/mctabs.js +162 -0
  262. data/app/assets/javascripts/kuztuscms/tiny_mce/utils/validate.js +252 -0
  263. data/app/assets/stylesheets/kuztuscms/tiny_mce.css +105 -0
  264. data/app/views/kuztuscms/articles/edit.html.erb +1 -0
  265. data/app/views/kuztuscms/articles/new.html.erb +1 -0
  266. data/app/views/kuztuscms/articles/show.html.erb +1 -1
  267. data/app/views/kuztuscms/pages/show.html.erb +1 -1
  268. data/app/views/kuztuscms/shared/_tiny_mce.html.erb +40 -0
  269. data/lib/kuztuscms/version.rb +1 -1
  270. data/spec/dummy/app/assets/stylesheets/application.css +2 -0
  271. metadata +282 -22
@@ -0,0 +1,17 @@
1
+ #id, #name, #hspace, #vspace, #class_name, #align { width: 100px }
2
+ #hspace, #vspace { width: 50px }
3
+ #flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px }
4
+ #flash_base, #flash_flashvars, #html5_altsource1, #html5_altsource2, #html5_poster { width: 240px }
5
+ #width, #height { width: 40px }
6
+ #src, #media_type { width: 250px }
7
+ #class { width: 120px }
8
+ #prev { margin: 0; border: 1px solid black; width: 380px; height: 260px; overflow: auto }
9
+ .panel_wrapper div.current { height: 420px; overflow: auto }
10
+ #flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { display: none }
11
+ .mceAddSelectValue { background-color: #DDDDDD }
12
+ #qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, #qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, #qt_volume { width: 70px }
13
+ #wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, #wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, #wmp_volume { width: 70px }
14
+ #rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px }
15
+ #shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, #shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { width: 90px }
16
+ #qt_qtsrc { width: 200px }
17
+ iframe {border: 1px solid gray}
@@ -0,0 +1 @@
1
+ (function(){var d=tinymce.explode("id,name,width,height,style,align,class,hspace,vspace,bgcolor,type"),h=tinymce.makeMap(d.join(",")),b=tinymce.html.Node,f,a,g=tinymce.util.JSON,e;f=[["Flash","d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],["ShockWave","166b1bca-3f9c-11cf-8075-444553540000","application/x-director","http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"],["WindowsMedia","6bf52a52-394a-11d3-b153-00c04f79faa6,22d6f312-b0f6-11d0-94ab-0080c74c7e95,05589fa1-c356-11ce-bf01-00aa0055595a","application/x-mplayer2","http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"],["QuickTime","02bf25d5-8c17-4b23-bc80-d3488abddc6b","video/quicktime","http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"],["RealMedia","cfcdaa03-8be4-11cf-b84b-0020afbbccfa","audio/x-pn-realaudio-plugin","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],["Java","8ad9c840-044e-11d1-b3e9-00805f499d93","application/x-java-applet","http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0"],["Silverlight","dfeaf541-f3e1-4c24-acac-99c30715084a","application/x-silverlight-2"],["Iframe"],["Video"],["EmbeddedAudio"],["Audio"]];function c(m){var l,j,k;if(m&&!m.splice){j=[];for(k=0;true;k++){if(m[k]){j[k]=m[k]}else{break}}return j}return m}tinymce.create("tinymce.plugins.MediaPlugin",{init:function(n,j){var r=this,l={},m,p,q,k;function o(i){return i&&i.nodeName==="IMG"&&n.dom.hasClass(i,"mceItemMedia")}r.editor=n;r.url=j;a="";for(m=0;m<f.length;m++){k=f[m][0];q={name:k,clsids:tinymce.explode(f[m][1]||""),mimes:tinymce.explode(f[m][2]||""),codebase:f[m][3]};for(p=0;p<q.clsids.length;p++){l["clsid:"+q.clsids[p]]=q}for(p=0;p<q.mimes.length;p++){l[q.mimes[p]]=q}l["mceItem"+k]=q;l[k.toLowerCase()]=q;a+=(a?"|":"")+k}tinymce.each(n.getParam("media_types","video=mp4,m4v,ogv,webm;silverlight=xap;flash=swf,flv;shockwave=dcr;quicktime=mov,qt,mpg,mpeg;shockwave=dcr;windowsmedia=avi,wmv,wm,asf,asx,wmx,wvx;realmedia=rm,ra,ram;java=jar;audio=mp3,ogg").split(";"),function(v){var s,u,t;v=v.split(/=/);u=tinymce.explode(v[1].toLowerCase());for(s=0;s<u.length;s++){t=l[v[0].toLowerCase()];if(t){l[u[s]]=t}}});a=new RegExp("write("+a+")\\(([^)]+)\\)");r.lookup=l;n.onPreInit.add(function(){n.schema.addValidElements("object[id|style|width|height|classid|codebase|*],param[name|value],embed[id|style|width|height|type|src|*],video[*],audio[*],source[*]");n.parser.addNodeFilter("object,embed,video,audio,script,iframe",function(s){var t=s.length;while(t--){r.objectToImg(s[t])}});n.serializer.addNodeFilter("img",function(s,u,t){var v=s.length,w;while(v--){w=s[v];if((w.attr("class")||"").indexOf("mceItemMedia")!==-1){r.imgToObject(w,t)}}})});n.onInit.add(function(){if(n.theme&&n.theme.onResolveName){n.theme.onResolveName.add(function(i,s){if(s.name==="img"&&n.dom.hasClass(s.node,"mceItemMedia")){s.name="media"}})}if(n&&n.plugins.contextmenu){n.plugins.contextmenu.onContextMenu.add(function(s,t,i){if(i.nodeName==="IMG"&&i.className.indexOf("mceItemMedia")!==-1){t.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});n.addCommand("mceMedia",function(){var s,i;i=n.selection.getNode();if(o(i)){s=n.dom.getAttrib(i,"data-mce-json");if(s){s=g.parse(s);tinymce.each(d,function(t){var u=n.dom.getAttrib(i,t);if(u){s[t]=u}});s.type=r.getType(i.className).name.toLowerCase()}}if(!s){s={type:"flash",video:{sources:[]},params:{}}}n.windowManager.open({file:j+"/media.htm",width:430+parseInt(n.getLang("media.delta_width",0)),height:500+parseInt(n.getLang("media.delta_height",0)),inline:1},{plugin_url:j,data:s})});n.addButton("media",{title:"media.desc",cmd:"mceMedia"});n.onNodeChange.add(function(s,i,t){i.setActive("media",o(t))})},convertUrl:function(k,n){var j=this,m=j.editor,l=m.settings,o=l.url_converter,i=l.url_converter_scope||j;if(!k){return k}if(n){return m.documentBaseURI.toAbsolute(k)}return o.call(i,k,"src","object")},getInfo:function(){return{longname:"Media",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media",version:tinymce.majorVersion+"."+tinymce.minorVersion}},dataToImg:function(m,k){var r=this,o=r.editor,p=o.documentBaseURI,j,q,n,l;m.params.src=r.convertUrl(m.params.src,k);q=m.video.attrs;if(q){q.src=r.convertUrl(q.src,k)}if(q){q.poster=r.convertUrl(q.poster,k)}j=c(m.video.sources);if(j){for(l=0;l<j.length;l++){j[l].src=r.convertUrl(j[l].src,k)}}n=r.editor.dom.create("img",{id:m.id,style:m.style,align:m.align,hspace:m.hspace,vspace:m.vspace,src:r.editor.theme.url+"/img/trans.gif","class":"mceItemMedia mceItem"+r.getType(m.type).name,"data-mce-json":g.serialize(m,"'")});n.width=m.width||(m.type=="audio"?"300":"320");n.height=m.height||(m.type=="audio"?"32":"240");return n},dataToHtml:function(i,j){return this.editor.serializer.serialize(this.dataToImg(i,j),{forced_root_block:"",force_absolute:j})},htmlToData:function(k){var j,i,l;l={type:"flash",video:{sources:[]},params:{}};j=this.editor.parser.parse(k);i=j.getAll("img")[0];if(i){l=g.parse(i.attr("data-mce-json"));l.type=this.getType(i.attr("class")).name.toLowerCase();tinymce.each(d,function(m){var n=i.attr(m);if(n){l[m]=n}})}return l},getType:function(m){var k,j,l;j=tinymce.explode(m," ");for(k=0;k<j.length;k++){l=this.lookup[j[k]];if(l){return l}}},imgToObject:function(z,o){var u=this,p=u.editor,C,H,j,t,I,y,G,w,k,E,s,q,A,D,m,x,l,B,F;function r(i,n){var M,L,N,K,J;J=p.getParam("flash_video_player_url",u.convertUrl(u.url+"/moxieplayer.swf"));if(J){M=p.documentBaseURI;G.params.src=J;if(p.getParam("flash_video_player_absvideourl",true)){i=M.toAbsolute(i||"",true);n=M.toAbsolute(n||"",true)}N="";L=p.getParam("flash_video_player_flashvars",{url:"$url",poster:"$poster"});tinymce.each(L,function(P,O){P=P.replace(/\$url/,i||"");P=P.replace(/\$poster/,n||"");if(P.length>0){N+=(N?"&":"")+O+"="+escape(P)}});if(N.length){G.params.flashvars=N}K=p.getParam("flash_video_player_params",{allowfullscreen:true,allowscriptaccess:true});tinymce.each(K,function(P,O){G.params[O]=""+P})}}G=z.attr("data-mce-json");if(!G){return}G=g.parse(G);q=this.getType(z.attr("class"));B=z.attr("data-mce-style");if(!B){B=z.attr("style");if(B){B=p.dom.serializeStyle(p.dom.parseStyle(B,"img"))}}if(q.name==="Iframe"){x=new b("iframe",1);tinymce.each(d,function(i){var n=z.attr(i);if(i=="class"&&n){n=n.replace(/mceItem.+ ?/g,"")}if(n&&n.length>0){x.attr(i,n)}});for(I in G.params){x.attr(I,G.params[I])}x.attr({style:B,src:G.params.src});z.replace(x);return}if(this.editor.settings.media_use_script){x=new b("script",1).attr("type","text/javascript");y=new b("#text",3);y.value="write"+q.name+"("+g.serialize(tinymce.extend(G.params,{width:z.attr("width"),height:z.attr("height")}))+");";x.append(y);z.replace(x);return}if(q.name==="Video"&&G.video.sources[0]){C=new b("video",1).attr(tinymce.extend({id:z.attr("id"),width:z.attr("width"),height:z.attr("height"),style:B},G.video.attrs));if(G.video.attrs){l=G.video.attrs.poster}k=G.video.sources=c(G.video.sources);for(A=0;A<k.length;A++){if(/\.mp4$/.test(k[A].src)){m=k[A].src}}if(!k[0].type){C.attr("src",k[0].src);k.splice(0,1)}for(A=0;A<k.length;A++){w=new b("source",1).attr(k[A]);w.shortEnded=true;C.append(w)}if(m){r(m,l);q=u.getType("flash")}else{G.params.src=""}}if(q.name==="Audio"&&G.video.sources[0]){F=new b("audio",1).attr(tinymce.extend({id:z.attr("id"),width:z.attr("width"),height:z.attr("height"),style:B},G.video.attrs));if(G.video.attrs){l=G.video.attrs.poster}k=G.video.sources=c(G.video.sources);if(!k[0].type){F.attr("src",k[0].src);k.splice(0,1)}for(A=0;A<k.length;A++){w=new b("source",1).attr(k[A]);w.shortEnded=true;F.append(w)}G.params.src=""}if(q.name==="EmbeddedAudio"){j=new b("embed",1);j.shortEnded=true;j.attr({id:z.attr("id"),width:z.attr("width"),height:z.attr("height"),style:B,type:z.attr("type")});for(I in G.params){j.attr(I,G.params[I])}tinymce.each(d,function(i){if(G[i]&&i!="type"){j.attr(i,G[i])}});G.params.src=""}if(G.params.src){if(/\.flv$/i.test(G.params.src)){r(G.params.src,"")}if(o&&o.force_absolute){G.params.src=p.documentBaseURI.toAbsolute(G.params.src)}H=new b("object",1).attr({id:z.attr("id"),width:z.attr("width"),height:z.attr("height"),style:B});tinymce.each(d,function(i){var n=G[i];if(i=="class"&&n){n=n.replace(/mceItem.+ ?/g,"")}if(n&&i!="type"){H.attr(i,n)}});for(I in G.params){s=new b("param",1);s.shortEnded=true;y=G.params[I];if(I==="src"&&q.name==="WindowsMedia"){I="url"}s.attr({name:I,value:y});H.append(s)}if(this.editor.getParam("media_strict",true)){H.attr({data:G.params.src,type:q.mimes[0]})}else{H.attr({classid:"clsid:"+q.clsids[0],codebase:q.codebase});j=new b("embed",1);j.shortEnded=true;j.attr({id:z.attr("id"),width:z.attr("width"),height:z.attr("height"),style:B,type:q.mimes[0]});for(I in G.params){j.attr(I,G.params[I])}tinymce.each(d,function(i){if(G[i]&&i!="type"){j.attr(i,G[i])}});H.append(j)}if(G.object_html){y=new b("#text",3);y.raw=true;y.value=G.object_html;H.append(y)}if(C){C.append(H)}}if(C){if(G.video_html){y=new b("#text",3);y.raw=true;y.value=G.video_html;C.append(y)}}if(F){if(G.video_html){y=new b("#text",3);y.raw=true;y.value=G.video_html;F.append(y)}}var v=C||F||H||j;if(v){z.replace(v)}else{z.remove()}},objectToImg:function(C){var L,k,F,s,M,N,y,A,x,G,E,t,q,I,B,l,K,o,H=this.lookup,m,z,v=this.editor.settings.url_converter,n=this.editor.settings.url_converter_scope,w,r,D,j;function u(i){return new tinymce.html.Serializer({inner:true,validate:false}).serialize(i)}function J(O,i){return H[(O.attr(i)||"").toLowerCase()]}function p(O){var i=O.replace(/^.*\.([^.]+)$/,"$1");return H[i.toLowerCase()||""]}if(!C.parent){return}if(C.name==="script"){if(C.firstChild){m=a.exec(C.firstChild.value)}if(!m){return}o=m[1];K={video:{},params:g.parse(m[2])};A=K.params.width;x=K.params.height}K=K||{video:{},params:{}};M=new b("img",1);M.attr({src:this.editor.theme.url+"/img/trans.gif"});N=C.name;if(N==="video"||N=="audio"){F=C;L=C.getAll("object")[0];k=C.getAll("embed")[0];A=F.attr("width");x=F.attr("height");y=F.attr("id");K.video={attrs:{},sources:[]};z=K.video.attrs;for(N in F.attributes.map){z[N]=F.attributes.map[N]}B=C.attr("src");if(B){K.video.sources.push({src:v.call(n,B,"src",C.name)})}l=F.getAll("source");for(E=0;E<l.length;E++){B=l[E].remove();K.video.sources.push({src:v.call(n,B.attr("src"),"src","source"),type:B.attr("type"),media:B.attr("media")})}if(z.poster){z.poster=v.call(n,z.poster,"poster",C.name)}}if(C.name==="object"){L=C;k=C.getAll("embed")[0]}if(C.name==="embed"){k=C}if(C.name==="iframe"){s=C;o="Iframe"}if(L){A=A||L.attr("width");x=x||L.attr("height");G=G||L.attr("style");y=y||L.attr("id");w=w||L.attr("hspace");r=r||L.attr("vspace");D=D||L.attr("align");j=j||L.attr("bgcolor");K.name=L.attr("name");I=L.getAll("param");for(E=0;E<I.length;E++){q=I[E];N=q.remove().attr("name");if(!h[N]){K.params[N]=q.attr("value")}}K.params.src=K.params.src||L.attr("data")}if(k){A=A||k.attr("width");x=x||k.attr("height");G=G||k.attr("style");y=y||k.attr("id");w=w||k.attr("hspace");r=r||k.attr("vspace");D=D||k.attr("align");j=j||k.attr("bgcolor");for(N in k.attributes.map){if(!h[N]&&!K.params[N]){K.params[N]=k.attributes.map[N]}}}if(s){A=s.attr("width");x=s.attr("height");G=G||s.attr("style");y=s.attr("id");w=s.attr("hspace");r=s.attr("vspace");D=s.attr("align");j=s.attr("bgcolor");tinymce.each(d,function(i){M.attr(i,s.attr(i))});for(N in s.attributes.map){if(!h[N]&&!K.params[N]){K.params[N]=s.attributes.map[N]}}}if(K.params.movie){K.params.src=K.params.src||K.params.movie;delete K.params.movie}if(K.params.src){K.params.src=v.call(n,K.params.src,"src","object")}if(F){if(C.name==="video"){o=H.video.name}else{if(C.name==="audio"){o=H.audio.name}}}if(L&&!o){o=(J(L,"clsid")||J(L,"classid")||J(L,"type")||{}).name}if(k&&!o){o=(J(k,"type")||p(K.params.src)||{}).name}if(k&&o=="EmbeddedAudio"){K.params.type=k.attr("type")}C.replace(M);if(k){k.remove()}if(L){t=u(L.remove());if(t){K.object_html=t}}if(F){t=u(F.remove());if(t){K.video_html=t}}K.hspace=w;K.vspace=r;K.align=D;K.bgcolor=j;M.attr({id:y,"class":"mceItemMedia mceItem"+(o||"Flash"),style:G,width:A||(C.name=="audio"?"300":"320"),height:x||(C.name=="audio"?"32":"240"),hspace:w,vspace:r,align:D,bgcolor:j,"data-mce-json":g.serialize(K,"'")})}});tinymce.PluginManager.add("media",tinymce.plugins.MediaPlugin)})();