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,74 @@
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>{#advanced_dlg.colorpicker_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="js/color_picker.js"></script>
8
+ </head>
9
+ <body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
10
+ <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
11
+ <form onsubmit="insertAction();return false" action="#">
12
+ <div class="tabs">
13
+ <ul>
14
+ <li id="picker_tab" aria-controls="picker_panel" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
15
+ <li id="rgb_tab" aria-controls="rgb_panel"><span><a href="javascript:;" onclick="mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
16
+ <li id="named_tab" aria-controls="named_panel"><span><a href="javascript:;" onclick="javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
17
+ </ul>
18
+ </div>
19
+
20
+ <div class="panel_wrapper">
21
+ <div id="picker_panel" class="panel current">
22
+ <fieldset>
23
+ <legend>{#advanced_dlg.colorpicker_picker_title}</legend>
24
+ <div id="picker">
25
+ <img id="colors" src="img/colorpicker.jpg" onclick="computeColor(event)" onmousedown="isMouseDown = true;return false;" onmouseup="isMouseDown = false;" onmousemove="if (isMouseDown && isMouseOver) computeColor(event); return false;" onmouseover="isMouseOver=true;" onmouseout="isMouseOver=false;" alt="" />
26
+
27
+ <div id="light">
28
+ <!-- Will be filled with divs -->
29
+ </div>
30
+
31
+ <br style="clear: both" />
32
+ </div>
33
+ </fieldset>
34
+ </div>
35
+
36
+ <div id="rgb_panel" class="panel">
37
+ <fieldset>
38
+ <legend id="webcolors_title">{#advanced_dlg.colorpicker_palette_title}</legend>
39
+ <div id="webcolors">
40
+ <!-- Gets filled with web safe colors-->
41
+ </div>
42
+
43
+ <br style="clear: both" />
44
+ </fieldset>
45
+ </div>
46
+
47
+ <div id="named_panel" class="panel">
48
+ <fieldset id="named_picker_label">
49
+ <legend id="named_title">{#advanced_dlg.colorpicker_named_title}</legend>
50
+ <div id="namedcolors" role="listbox" tabindex="0" aria-labelledby="named_picker_label">
51
+ <!-- Gets filled with named colors-->
52
+ </div>
53
+
54
+ <br style="clear: both" />
55
+
56
+ <div id="colornamecontainer">
57
+ {#advanced_dlg.colorpicker_name} <span id="colorname"></span>
58
+ </div>
59
+ </fieldset>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="mceActionPanel">
64
+ <input type="submit" id="insert" name="insert" value="{#apply}" />
65
+
66
+ <div id="preview"></div>
67
+
68
+ <div id="previewblock">
69
+ <label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" />
70
+ </div>
71
+ </div>
72
+ </form>
73
+ </body>
74
+ </html>
@@ -0,0 +1 @@
1
+ (function(h){var i=h.DOM,g=h.dom.Event,c=h.extend,f=h.each,a=h.util.Cookie,e,d=h.explode;function b(m,k){var q,p=m.dom,n="",o,l;previewStyles=m.settings.preview_styles;if(previewStyles===false){return""}if(!previewStyles){previewStyles="font-family font-size font-weight text-decoration text-transform color background-color"}function j(r){return r.replace(/%(\w+)/g,"")}name=k.block||k.inline||"span";q=p.create(name);f(k.styles,function(s,r){s=j(s);if(s){p.setStyle(q,r,s)}});f(k.attributes,function(s,r){s=j(s);if(s){p.setAttrib(q,r,s)}});f(k.classes,function(r){r=j(r);if(!p.hasClass(q,r)){p.addClass(q,r)}});p.setStyles(q,{position:"absolute",left:-65535});m.getBody().appendChild(q);o=p.getStyle(m.getBody(),"fontSize",true);o=/px$/.test(o)?parseInt(o,10):0;f(previewStyles.split(" "),function(r){var s=p.getStyle(q,r,true);if(r=="font-size"){if(/em|%$/.test(s)){if(o===0){return}s=parseFloat(s,10)/(/%$/.test(s)?100:1);s=(s*o)+"px"}}n+=r+":"+s+";"});p.remove(q);return n}h.ThemeManager.requireLangPack("advanced");h.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(k,l){var m=this,n,j,p;m.editor=k;m.url=l;m.onResolveName=new h.util.Dispatcher(this);k.forcedHighContrastMode=k.settings.detect_highcontrast&&m._isHighContrast();k.settings.skin=k.forcedHighContrastMode?"highcontrast":k.settings.skin;m.settings=n=c({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",theme_advanced_font_selector:"span",theme_advanced_show_current_color:0,readonly:k.settings.readonly},k.settings);if(!n.font_size_style_values){n.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(h.is(n.theme_advanced_font_sizes,"string")){n.font_size_style_values=h.explode(n.font_size_style_values);n.font_size_classes=h.explode(n.font_size_classes||"");p={};k.settings.theme_advanced_font_sizes=n.theme_advanced_font_sizes;f(k.getParam("theme_advanced_font_sizes","","hash"),function(r,q){var o;if(q==r&&r>=1&&r<=7){q=r+" ("+m.sizes[r-1]+"pt)";o=n.font_size_classes[r-1];r=n.font_size_style_values[r-1]||(m.sizes[r-1]+"pt")}if(/^\s*\./.test(r)){o=r.replace(/\./g,"")}p[q]=o?{"class":o}:{fontSize:r}});n.theme_advanced_font_sizes=p}if((j=n.theme_advanced_path_location)&&j!="none"){n.theme_advanced_statusbar_location=n.theme_advanced_path_location}if(n.theme_advanced_statusbar_location=="none"){n.theme_advanced_statusbar_location=0}if(k.settings.content_css!==false){k.contentCSS.push(k.baseURI.toAbsolute(l+"/skins/"+k.settings.skin+"/content.css"))}k.onInit.add(function(){if(!k.settings.readonly){k.onNodeChange.add(m._nodeChanged,m);k.onKeyUp.add(m._updateUndoStatus,m);k.onMouseUp.add(m._updateUndoStatus,m);k.dom.bind(k.dom.getRoot(),"dragend",function(){m._updateUndoStatus(k)})}});k.onSetProgressState.add(function(r,o,s){var t,u=r.id,q;if(o){m.progressTimer=setTimeout(function(){t=r.getContainer();t=t.insertBefore(i.create("DIV",{style:"position:relative"}),t.firstChild);q=i.get(r.id+"_tbl");i.add(t,"div",{id:u+"_blocker","class":"mceBlocker",style:{width:q.clientWidth+2,height:q.clientHeight+2}});i.add(t,"div",{id:u+"_progress","class":"mceProgress",style:{left:q.clientWidth/2,top:q.clientHeight/2}})},s||0)}else{i.remove(u+"_blocker");i.remove(u+"_progress");clearTimeout(m.progressTimer)}});i.loadCSS(n.editor_css?k.documentBaseURI.toAbsolute(n.editor_css):l+"/skins/"+k.settings.skin+"/ui.css");if(n.skin_variant){i.loadCSS(l+"/skins/"+k.settings.skin+"/ui_"+n.skin_variant+".css")}},_isHighContrast:function(){var j,k=i.add(i.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});j=(i.getStyle(k,"background-color",true)+"").toLowerCase().replace(/ /g,"");i.remove(k);return j!="rgb(171,239,86)"&&j!="#abef56"},createControl:function(m,j){var k,l;if(l=j.createControl(m)){return l}switch(m){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((k=this.controls[m])){return j.createButton(m,{title:"advanced."+k[0],cmd:k[1],ui:k[2],value:k[3]})}},execCommand:function(l,k,m){var j=this["_"+l];if(j){j.call(this,k,m);return true}return false},_importClasses:function(l){var j=this.editor,k=j.controlManager.get("styleselect");if(k.getLength()==0){f(j.dom.getClasses(),function(q,m){var p="style_"+m,n;n={inline:"span",attributes:{"class":q["class"]},selector:"*"};j.formatter.register(p,n);k.add(q["class"],p,{style:function(){return b(j,n)}})})}},_createStyleSelect:function(o){var l=this,j=l.editor,k=j.controlManager,m;m=k.createListBox("styleselect",{title:"advanced.style_select",onselect:function(q){var r,n=[],p;f(m.items,function(s){n.push(s.value)});j.focus();j.undoManager.add();r=j.formatter.matchAll(n);h.each(r,function(s){if(!q||s==q){if(s){j.formatter.remove(s)}p=true}});if(!p){j.formatter.apply(q)}j.undoManager.add();j.nodeChanged();return false}});j.onPreInit.add(function(){var p=0,n=j.getParam("style_formats");if(n){f(n,function(q){var r,s=0;f(q,function(){s++});if(s>1){r=q.name=q.name||"style_"+(p++);j.formatter.register(r,q);m.add(q.title,r,{style:function(){return b(j,q)}})}else{m.add(q.title)}})}else{f(j.getParam("theme_advanced_styles","","hash"),function(t,s){var r,q;if(t){r="style_"+(p++);q={inline:"span",classes:t,selector:"*"};j.formatter.register(r,q);m.add(l.editor.translate(s),r,{style:function(){return b(j,q)}})}})}});if(m.getLength()==0){m.onPostRender.add(function(p,q){if(!m.NativeListBox){g.add(q.id+"_text","focus",l._importClasses,l);g.add(q.id+"_text","mousedown",l._importClasses,l);g.add(q.id+"_open","focus",l._importClasses,l);g.add(q.id+"_open","mousedown",l._importClasses,l)}else{g.add(q.id,"focus",l._importClasses,l)}})}return m},_createFontSelect:function(){var l,k=this,j=k.editor;l=j.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(m){var n=l.items[l.selectedIndex];if(!m&&n){j.execCommand("FontName",false,n.value);return}j.execCommand("FontName",false,m);l.select(function(o){return m==o});if(n&&n.value==m){l.select(null)}return false}});if(l){f(j.getParam("theme_advanced_fonts",k.settings.theme_advanced_fonts,"hash"),function(n,m){l.add(j.translate(m),n,{style:n.indexOf("dings")==-1?"font-family:"+n:""})})}return l},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(o){var p=n.items[n.selectedIndex];if(!o&&p){p=p.value;if(p["class"]){k.formatter.toggle("fontsize_class",{value:p["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,p.fontSize)}return}if(o["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}n.select(function(q){return o==q});if(p&&(p.value.fontSize==o.fontSize||p.value["class"]&&p.value["class"]==o["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(p,o){var q=p.fontSize;if(q>=1&&q<=7){q=m.sizes[parseInt(q)-1]+"pt"}n.add(o,p,{style:"font-size:"+q,"class":"mceFontSize"+(l++)+(" "+(p["class"]||""))})})}return n},_createBlockFormats:function(){var l,j={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},k=this;l=k.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(m){k.editor.execCommand("FormatBlock",false,m);return false}});if(l){f(k.editor.getParam("theme_advanced_blockformats",k.settings.theme_advanced_blockformats,"hash"),function(n,m){l.add(k.editor.translate(m!=n?m:j[n]),n,{"class":"mce_formatPreview mce_"+n,style:function(){return b(k.editor,{block:n})}})})}return l},_createForeColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_text_colors){m.colors=j}if(l.theme_advanced_default_foreground_color){m.default_color=l.theme_advanced_default_foreground_color}m.title="advanced.forecolor_desc";m.cmd="ForeColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("forecolor",m);return n},_createBackColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_background_colors){m.colors=j}if(l.theme_advanced_default_background_color){m.default_color=l.theme_advanced_default_background_color}m.title="advanced.backcolor_desc";m.cmd="HiliteColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("backcolor",m);return n},renderUI:function(l){var q,m,r,w=this,u=w.editor,x=w.settings,v,k,j;if(u.settings){u.settings.aria_label=x.aria_label+u.getLang("advanced.help_shortcut")}q=k=i.create("span",{role:"application","aria-labelledby":u.id+"_voice",id:u.id+"_parent","class":"mceEditor "+u.settings.skin+"Skin"+(x.skin_variant?" "+u.settings.skin+"Skin"+w._ufirst(x.skin_variant):"")});i.add(q,"span",{"class":"mceVoiceLabel",style:"display:none;",id:u.id+"_voice"},x.aria_label);if(!i.boxModel){q=i.add(q,"div",{"class":"mceOldBoxModel"})}q=v=i.add(q,"table",{role:"presentation",id:u.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});q=r=i.add(q,"tbody");switch((x.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":m=w._rowLayout(x,r,l);break;case"customlayout":m=u.execCallback("theme_advanced_custom_layout",x,r,l,k);break;default:m=w._simpleLayout(x,r,l,k)}q=l.targetNode;j=v.rows;i.addClass(j[0],"mceFirst");i.addClass(j[j.length-1],"mceLast");f(i.select("tr",r),function(o){i.addClass(o.firstChild,"mceFirst");i.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(i.get(x.theme_advanced_toolbar_container)){i.get(x.theme_advanced_toolbar_container).appendChild(k)}else{i.insertAfter(k,q)}g.add(u.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){w._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return false}});if(!u.getParam("accessibility_focus")){g.add(i.add(k,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(u.id).focus()})}if(x.theme_advanced_toolbar_location=="external"){l.deltaHeight=0}w.deltaHeight=l.deltaHeight;l.targetNode=null;u.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){if(h.isWebKit){window.focus()}w.toolbarGroup.focus();return g.cancel(n)}else{if(n.keyCode===o){i.get(p.id+"_path_row").focus();return g.cancel(n)}}}});u.addShortcut("alt+0","","mceShortcuts",w);return{iframeContainer:m,editorContainer:u.id+"_parent",sizeContainer:v,deltaHeight:l.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:h.majorVersion+"."+h.minorVersion}},resizeBy:function(j,k){var l=i.get(this.editor.id+"_ifr");this.resizeTo(l.clientWidth+j,l.clientHeight+k)},resizeTo:function(j,n,l){var k=this.editor,m=this.settings,o=i.get(k.id+"_tbl"),p=i.get(k.id+"_ifr");j=Math.max(m.theme_advanced_resizing_min_width||100,j);n=Math.max(m.theme_advanced_resizing_min_height||100,n);j=Math.min(m.theme_advanced_resizing_max_width||65535,j);n=Math.min(m.theme_advanced_resizing_max_height||65535,n);i.setStyle(o,"height","");i.setStyle(p,"height",n);if(m.theme_advanced_resize_horizontal){i.setStyle(o,"width","");i.setStyle(p,"width",j);if(j<o.clientWidth){j=o.clientWidth;i.setStyle(p,"width",o.clientWidth)}}if(l&&m.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+k.id+"_size",{cw:j,ch:n})}},destroy:function(){var j=this.editor.id;g.clear(j+"_resize");g.clear(j+"_path_row");g.clear(j+"_external_close")},_simpleLayout:function(z,u,l,j){var y=this,v=y.editor,w=z.theme_advanced_toolbar_location,q=z.theme_advanced_statusbar_location,m,k,r,x;if(z.readonly){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});return k}if(w=="top"){y._addToolbars(u,l)}if(w=="external"){m=x=i.create("div",{style:"position:relative"});m=i.add(m,"div",{id:v.id+"_external","class":"mceExternalToolbar"});i.add(m,"a",{id:v.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});m=i.add(m,"table",{id:v.id+"_tblext",cellSpacing:0,cellPadding:0});r=i.add(m,"tbody");if(j.firstChild.className=="mceOldBoxModel"){j.firstChild.appendChild(x)}else{j.insertBefore(x,j.firstChild)}y._addToolbars(r,l);v.onMouseUp.add(function(){var o=i.get(v.id+"_external");i.show(o);i.hide(e);var n=g.add(v.id+"_external_close","click",function(){i.hide(v.id+"_external");g.remove(v.id+"_external_close","click",n)});i.show(o);i.setStyle(o,"top",0-i.getRect(v.id+"_tblext").h-1);i.hide(o);i.show(o);o.style.filter="";e=v.id+"_external";o=null})}if(q=="top"){y._addStatusBar(u,l)}if(!z.theme_advanced_toolbar_container){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"})}if(w=="bottom"){y._addToolbars(u,l)}if(q=="bottom"){y._addStatusBar(u,l)}return k},_rowLayout:function(x,p,l){var w=this,q=w.editor,v,y,j=q.controlManager,m,k,u,r;v=x.theme_advanced_containers_default_class||"";y=x.theme_advanced_containers_default_align||"center";f(d(x.theme_advanced_containers||""),function(s,o){var n=x["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":m=i.add(p,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":w._addStatusBar(p,l);break;default:r=(x["theme_advanced_container_"+s+"_align"]||y).toLowerCase();r="mce"+w._ufirst(r);m=i.add(i.add(p,"tr"),"td",{"class":"mceToolbar "+(x["theme_advanced_container_"+s+"_class"]||v)+" "+r||y});u=j.createToolbar("toolbar"+o);w._addControls(n,u);i.setHTML(m,u.renderHTML());l.deltaHeight-=x.theme_advanced_row_height}});return k},_addControls:function(k,j){var l=this,m=l.settings,n,o=l.editor.controlManager;if(m.theme_advanced_disable&&!l._disabled){n={};f(d(m.theme_advanced_disable),function(p){n[p]=1});l._disabled=n}else{n=l._disabled}f(d(k),function(q){var p;if(n&&n[q]){return}if(q=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(r){r=l.createControl(r,o);if(r){j.add(r)}});return}p=l.createControl(q,o);if(p){j.add(p)}})},_addToolbars:function(x,k){var A=this,p,m,r=A.editor,B=A.settings,z,j=r.controlManager,u,l,q=[],y,w;w=j.createToolbarGroup("toolbargroup",{name:r.getLang("advanced.toolbar"),tab_focus_toolbar:r.getParam("theme_advanced_tab_focus_toolbar")});A.toolbarGroup=w;y=B.theme_advanced_toolbar_align.toLowerCase();y="mce"+A._ufirst(y);l=i.add(i.add(x,"tr",{role:"presentation"}),"td",{"class":"mceToolbar "+y,role:"presentation"});for(p=1;(z=B["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(B["theme_advanced_buttons"+p+"_add"]){z+=","+B["theme_advanced_buttons"+p+"_add"]}if(B["theme_advanced_buttons"+p+"_add_before"]){z=B["theme_advanced_buttons"+p+"_add_before"]+","+z}A._addControls(z,m);w.add(m);k.deltaHeight-=B.theme_advanced_row_height}q.push(w.renderHTML());q.push(i.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},"<!-- IE -->"));i.setHTML(l,q.join(""))},_addStatusBar:function(p,k){var l,w=this,q=w.editor,x=w.settings,j,u,v,m;l=i.add(p,"tr");l=m=i.add(l,"td",{"class":"mceStatusbar"});l=i.add(l,"div",{id:q.id+"_path_row",role:"group","aria-labelledby":q.id+"_path_voice"});if(x.theme_advanced_path){i.add(l,"span",{id:q.id+"_path_voice"},q.translate("advanced.path"));i.add(l,"span",{},": ")}else{i.add(l,"span",{},"&#160;")}if(x.theme_advanced_resizing){i.add(m,"a",{id:q.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize",tabIndex:"-1"});if(x.theme_advanced_resizing_use_cookie){q.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+q.id+"_size"),r=i.get(q.id+"_tbl");if(!n){return}w.resizeTo(n.cw,n.ch)})}q.onPostRender.add(function(){g.add(q.id+"_resize","click",function(n){n.preventDefault()});g.add(q.id+"_resize","mousedown",function(E){var t,r,s,o,D,A,B,G,n,F,y;function z(H){H.preventDefault();n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F)}function C(H){g.remove(i.doc,"mousemove",t);g.remove(q.getDoc(),"mousemove",r);g.remove(i.doc,"mouseup",s);g.remove(q.getDoc(),"mouseup",o);n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F,true)}E.preventDefault();D=E.screenX;A=E.screenY;y=i.get(w.editor.id+"_ifr");B=n=y.clientWidth;G=F=y.clientHeight;t=g.add(i.doc,"mousemove",z);r=g.add(q.getDoc(),"mousemove",z);s=g.add(i.doc,"mouseup",C);o=g.add(q.getDoc(),"mouseup",C)})})}k.deltaHeight-=21;l=p=null},_updateUndoStatus:function(k){var j=k.controlManager,l=k.undoManager;j.setDisabled("undo",!l.hasUndo()&&!l.typing);j.setDisabled("redo",!l.hasRedo())},_nodeChanged:function(o,u,E,r,F){var z=this,D,G=0,y,H,A=z.settings,x,l,w,C,m,k,j;h.each(z.stateControls,function(n){u.setActive(n,o.queryCommandState(z.controls[n][1]))});function q(p){var s,n=F.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}u.setActive("visualaid",o.hasVisual);z._updateUndoStatus(o);u.setDisabled("outdent",!o.queryCommandState("Outdent"));D=q("A");if(H=u.get("link")){if(!D||!D.name){H.setDisabled(!D&&r);H.setActive(!!D)}}if(H=u.get("unlink")){H.setDisabled(!D&&r);H.setActive(!!D&&!D.name)}if(H=u.get("anchor")){H.setActive(!r&&!!D&&D.name)}D=q("IMG");if(H=u.get("image")){H.setActive(!r&&!!D&&E.className.indexOf("mceItem")==-1)}if(H=u.get("styleselect")){z._importClasses();k=[];f(H.items,function(n){k.push(n.value)});j=o.formatter.matchAll(k);H.select(j[0]);h.each(j,function(p,n){if(n>0){H.mark(p)}})}if(H=u.get("formatselect")){D=q(i.isBlock);if(D){H.select(D.nodeName.toLowerCase())}}q(function(p){if(p.nodeName==="SPAN"){if(!x&&p.className){x=p.className}}if(o.dom.is(p,A.theme_advanced_font_selector)){if(!l&&p.style.fontSize){l=p.style.fontSize}if(!w&&p.style.fontFamily){w=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!C&&p.style.color){C=p.style.color}if(!m&&p.style.backgroundColor){m=p.style.backgroundColor}}return false});if(H=u.get("fontselect")){H.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==w})}if(H=u.get("fontsizeselect")){if(A.theme_advanced_runtime_fontsize&&!l&&!x){l=o.dom.getStyle(E,"fontSize",true)}H.select(function(n){if(n.fontSize&&n.fontSize===l){return true}if(n["class"]&&n["class"]===x){return true}})}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_path&&A.theme_advanced_statusbar_location){D=i.get(o.id+"_path")||i.add(o.id+"_path_row","span",{id:o.id+"_path"});if(z.statusKeyboardNavigation){z.statusKeyboardNavigation.destroy();z.statusKeyboardNavigation=null}i.setHTML(D,"");q(function(I){var p=I.nodeName.toLowerCase(),s,v,t="";if(I.nodeType!=1||p==="br"||I.getAttribute("data-mce-bogus")||i.hasClass(I,"mceItemHidden")||i.hasClass(I,"mceItemRemoved")){return}if(h.isIE&&I.scopeName!=="HTML"){p=I.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(y=i.getAttrib(I,"src")){t+="src: "+y+" "}break;case"a":if(y=i.getAttrib(I,"name")){t+="name: "+y+" ";p+="#"+y}if(y=i.getAttrib(I,"href")){t+="href: "+y+" "}break;case"font":if(y=i.getAttrib(I,"face")){t+="font: "+y+" "}if(y=i.getAttrib(I,"size")){t+="size: "+y+" "}if(y=i.getAttrib(I,"color")){t+="color: "+y+" "}break;case"span":if(y=i.getAttrib(I,"style")){t+="style: "+y+" "}break}if(y=i.getAttrib(I,"id")){t+="id: "+y+" "}if(y=I.className){y=y.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(y){t+="class: "+y+" ";if(i.isBlock(I)||p=="img"||p=="span"){p+="."+y}}}p=p.replace(/(html:)/g,"");p={name:p,node:I,title:t};z.onResolveName.dispatch(z,p);t=p.title;p=p.name;v=i.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(G++)},p);if(D.hasChildNodes()){D.insertBefore(i.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),D.firstChild);D.insertBefore(v,D.firstChild)}else{D.appendChild(v)}},o.getBody());if(i.select("a",D).length>0){z.statusKeyboardNavigation=new h.ui.KeyboardNavigation({root:o.id+"_path_row",items:i.select("a",D),excludeFromTabOrder:true,onCancel:function(){o.focus()}},i)}}},_sel:function(j){this.editor.execCommand("mceSelectNodeDepth",false,j)},_mceInsertAnchor:function(l,k){var j=this.editor;j.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(j.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(j.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var j=this.editor;j.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(j.getLang("advanced.charmap_delta_width",0)),height:265+parseInt(j.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var j=this.editor;j.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var j=this.editor;j.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(l,k){var j=this.editor;k=k||{};j.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(j.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(j.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:k.color,func:k.func,theme_url:this.url})},_mceCodeEditor:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(j.getParam("theme_advanced_source_editor_width",720)),height:parseInt(j.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(k,l){var j=this.editor;if(j.dom.getAttrib(j.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}j.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(j.getLang("advanced.image_delta_width",0)),height:275+parseInt(j.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(j.getLang("advanced.link_delta_width",0)),height:200+parseInt(j.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var j=this.editor;j.windowManager.confirm("advanced.newdocument",function(k){if(k){j.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var j=this;this._mceColorPicker(0,{color:j.fgColor,func:function(k){j.fgColor=k;j.editor.execCommand("ForeColor",false,k)}})},_mceBackColor:function(){var j=this;this._mceColorPicker(0,{color:j.bgColor,func:function(k){j.bgColor=k;j.editor.execCommand("HiliteColor",false,k)}})},_ufirst:function(j){return j.substring(0,1).toUpperCase()+j.substring(1)}});h.ThemeManager.add("advanced",h.themes.AdvancedTheme)}(tinymce));