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,259 @@
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>{#fullpage_dlg.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="../../utils/form_utils.js"></script>
8
+ <script type="text/javascript" src="js/fullpage.js"></script>
9
+ <link href="css/fullpage.css" rel="stylesheet" type="text/css" />
10
+ </head>
11
+ <body id="fullpage" style="display: none">
12
+ <form onsubmit="FullPageDialog.update();return false;" name="fullpage" action="#">
13
+ <div class="tabs">
14
+ <ul>
15
+ <li id="meta_tab" class="current"><span><a href="javascript:mcTabs.displayTab('meta_tab','meta_panel');" onmousedown="return false;">{#fullpage_dlg.meta_tab}</a></span></li>
16
+ <li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#fullpage_dlg.appearance_tab}</a></span></li>
17
+ </ul>
18
+ </div>
19
+
20
+ <div class="panel_wrapper">
21
+ <div id="meta_panel" class="panel current">
22
+ <fieldset>
23
+ <legend>{#fullpage_dlg.meta_props}</legend>
24
+
25
+ <table border="0" cellpadding="4" cellspacing="0">
26
+ <tr>
27
+ <td class="nowrap"><label for="metatitle">{#fullpage_dlg.meta_title}</label>&nbsp;</td>
28
+ <td><input type="text" id="metatitle" name="metatitle" value="" class="mceFocus" /></td>
29
+ </tr>
30
+ <tr>
31
+ <td class="nowrap"><label for="metakeywords">{#fullpage_dlg.meta_keywords}</label>&nbsp;</td>
32
+ <td><textarea id="metakeywords" name="metakeywords" rows="4"></textarea></td>
33
+ </tr>
34
+ <tr>
35
+ <td class="nowrap"><label for="metadescription">{#fullpage_dlg.meta_description}</label>&nbsp;</td>
36
+ <td><textarea id="metadescription" name="metadescription" rows="4"></textarea></td>
37
+ </tr>
38
+ <tr>
39
+ <td class="nowrap"><label for="metaauthor">{#fullpage_dlg.author}</label>&nbsp;</td>
40
+ <td><input type="text" id="metaauthor" name="metaauthor" value="" /></td>
41
+ </tr>
42
+ <tr>
43
+ <td class="nowrap"><label for="metacopyright">{#fullpage_dlg.copyright}</label>&nbsp;</td>
44
+ <td><input type="text" id="metacopyright" name="metacopyright" value="" /></td>
45
+ </tr>
46
+ <tr>
47
+ <td class="nowrap"><label for="metarobots">{#fullpage_dlg.meta_robots}</label>&nbsp;</td>
48
+ <td>
49
+ <select id="metarobots" name="metarobots">
50
+ <option value="">{#not_set}</option>
51
+ <option value="index,follow">{#fullpage_dlg.meta_index_follow}</option>
52
+ <option value="index,nofollow">{#fullpage_dlg.meta_index_nofollow}</option>
53
+ <option value="noindex,follow">{#fullpage_dlg.meta_noindex_follow}</option>
54
+ <option value="noindex,nofollow">{#fullpage_dlg.meta_noindex_nofollow}</option>
55
+ </select>
56
+ </td>
57
+ </tr>
58
+ </table>
59
+ </fieldset>
60
+
61
+ <fieldset>
62
+ <legend>{#fullpage_dlg.langprops}</legend>
63
+
64
+ <table border="0" cellpadding="4" cellspacing="0">
65
+ <tr>
66
+ <td class="column1"><label for="docencoding">{#fullpage_dlg.encoding}</label></td>
67
+ <td>
68
+ <select id="docencoding" name="docencoding">
69
+ <option value="">{#not_set}</option>
70
+ </select>
71
+ </td>
72
+ </tr>
73
+ <tr>
74
+ <td class="nowrap"><label for="doctype">{#fullpage_dlg.doctypes}</label>&nbsp;</td>
75
+ <td>
76
+ <select id="doctype" name="doctype">
77
+ <option value="">{#not_set}</option>
78
+ </select>
79
+ </td>
80
+ </tr>
81
+ <tr>
82
+ <td class="nowrap"><label for="langcode">{#fullpage_dlg.langcode}</label>&nbsp;</td>
83
+ <td><input type="text" id="langcode" name="langcode" value="" /></td>
84
+ </tr>
85
+ <tr>
86
+ <td class="column1"><label for="langdir">{#fullpage_dlg.langdir}</label></td>
87
+ <td>
88
+ <select id="langdir" name="langdir">
89
+ <option value="">{#not_set}</option>
90
+ <option value="ltr">{#fullpage_dlg.ltr}</option>
91
+ <option value="rtl">{#fullpage_dlg.rtl}</option>
92
+ </select>
93
+ </td>
94
+ </tr>
95
+ <tr>
96
+ <td class="nowrap"><label for="xml_pi">{#fullpage_dlg.xml_pi}</label>&nbsp;</td>
97
+ <td><input type="checkbox" id="xml_pi" name="xml_pi" class="checkbox" /></td>
98
+ </tr>
99
+ </table>
100
+ </fieldset>
101
+ </div>
102
+
103
+ <div id="appearance_panel" class="panel">
104
+ <fieldset>
105
+ <legend>{#fullpage_dlg.appearance_textprops}</legend>
106
+
107
+ <table border="0" cellpadding="4" cellspacing="0">
108
+ <tr>
109
+ <td class="column1"><label for="fontface">{#fullpage_dlg.fontface}</label></td>
110
+ <td>
111
+ <select id="fontface" name="fontface" onchange="FullPageDialog.changedStyleProp();">
112
+ <option value="">{#not_set}</option>
113
+ </select>
114
+ </td>
115
+ </tr>
116
+
117
+ <tr>
118
+ <td class="column1"><label for="fontsize">{#fullpage_dlg.fontsize}</label></td>
119
+ <td>
120
+ <select id="fontsize" name="fontsize" onchange="FullPageDialog.changedStyleProp();">
121
+ <option value="">{#not_set}</option>
122
+ </select>
123
+ </td>
124
+ </tr>
125
+
126
+ <tr>
127
+ <td class="column1"><label for="textcolor">{#fullpage_dlg.textcolor}</label></td>
128
+ <td>
129
+ <table border="0" cellpadding="0" cellspacing="0">
130
+ <tr>
131
+ <td><input id="textcolor" name="textcolor" type="text" value="" size="9" onchange="updateColor('textcolor_pick','textcolor');FullPageDialog.changedStyleProp();" /></td>
132
+ <td id="textcolor_pickcontainer">&nbsp;</td>
133
+ </tr>
134
+ </table>
135
+ </td>
136
+ </tr>
137
+ </table>
138
+ </fieldset>
139
+
140
+ <fieldset>
141
+ <legend>{#fullpage_dlg.appearance_bgprops}</legend>
142
+
143
+ <table border="0" cellpadding="4" cellspacing="0">
144
+ <tr>
145
+ <td class="column1"><label for="bgimage">{#fullpage_dlg.bgimage}</label></td>
146
+ <td>
147
+ <table border="0" cellpadding="0" cellspacing="0">
148
+ <tr>
149
+ <td><input id="bgimage" name="bgimage" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
150
+ <td id="bgimage_pickcontainer">&nbsp;</td>
151
+ </tr>
152
+ </table>
153
+ </td>
154
+ </tr>
155
+ <tr>
156
+ <td class="column1"><label for="bgcolor">{#fullpage_dlg.bgcolor}</label></td>
157
+ <td>
158
+ <table border="0" cellpadding="0" cellspacing="0">
159
+ <tr>
160
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');FullPageDialog.changedStyleProp();" /></td>
161
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
162
+ </tr>
163
+ </table>
164
+ </td>
165
+ </tr>
166
+ </table>
167
+ </fieldset>
168
+
169
+ <fieldset>
170
+ <legend>{#fullpage_dlg.appearance_marginprops}</legend>
171
+
172
+ <table border="0" cellpadding="4" cellspacing="0">
173
+ <tr>
174
+ <td class="column1"><label for="leftmargin">{#fullpage_dlg.left_margin}</label></td>
175
+ <td><input id="leftmargin" name="leftmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
176
+ <td class="column1"><label for="rightmargin">{#fullpage_dlg.right_margin}</label></td>
177
+ <td><input id="rightmargin" name="rightmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
178
+ </tr>
179
+ <tr>
180
+ <td class="column1"><label for="topmargin">{#fullpage_dlg.top_margin}</label></td>
181
+ <td><input id="topmargin" name="topmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
182
+ <td class="column1"><label for="bottommargin">{#fullpage_dlg.bottom_margin}</label></td>
183
+ <td><input id="bottommargin" name="bottommargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
184
+ </tr>
185
+ </table>
186
+ </fieldset>
187
+
188
+ <fieldset>
189
+ <legend>{#fullpage_dlg.appearance_linkprops}</legend>
190
+
191
+ <table border="0" cellpadding="4" cellspacing="0">
192
+ <tr>
193
+ <td class="column1"><label for="link_color">{#fullpage_dlg.link_color}</label></td>
194
+ <td>
195
+ <table border="0" cellpadding="0" cellspacing="0">
196
+ <tr>
197
+ <td><input id="link_color" name="link_color" type="text" value="" size="9" onchange="updateColor('link_color_pick','link_color');FullPageDialog.changedStyleProp();" /></td>
198
+ <td id="link_color_pickcontainer">&nbsp;</td>
199
+ </tr>
200
+ </table>
201
+ </td>
202
+
203
+ <td class="column1"><label for="visited_color">{#fullpage_dlg.visited_color}</label></td>
204
+ <td>
205
+ <table border="0" cellpadding="0" cellspacing="0">
206
+ <tr>
207
+ <td><input id="visited_color" name="visited_color" type="text" value="" size="9" onchange="updateColor('visited_color_pick','visited_color');FullPageDialog.changedStyleProp();" /></td>
208
+ <td id="visited_color_pickcontainer">&nbsp;</td>
209
+ </tr>
210
+ </table>
211
+ </td>
212
+ </tr>
213
+
214
+ <tr>
215
+ <td class="column1"><label for="active_color">{#fullpage_dlg.active_color}</label></td>
216
+ <td>
217
+ <table border="0" cellpadding="0" cellspacing="0">
218
+ <tr>
219
+ <td><input id="active_color" name="active_color" type="text" value="" size="9" onchange="updateColor('active_color_pick','active_color');FullPageDialog.changedStyleProp();" /></td>
220
+ <td id="active_color_pickcontainer">&nbsp;</td>
221
+ </tr>
222
+ </table>
223
+ </td>
224
+
225
+ <td>&nbsp;</td>
226
+ <td>&nbsp;</td>
227
+ </tr>
228
+ </table>
229
+ </fieldset>
230
+
231
+ <fieldset>
232
+ <legend>{#fullpage_dlg.appearance_style}</legend>
233
+
234
+ <table border="0" cellpadding="4" cellspacing="0">
235
+ <tr>
236
+ <td class="column1"><label for="stylesheet">{#fullpage_dlg.stylesheet}</label></td>
237
+ <td><table border="0" cellpadding="0" cellspacing="0">
238
+ <tr>
239
+ <td><input id="stylesheet" name="stylesheet" type="text" value="" /></td>
240
+ <td id="stylesheet_browsercontainer">&nbsp;</td>
241
+ </tr>
242
+ </table></td>
243
+ </tr>
244
+ <tr>
245
+ <td class="column1"><label for="style">{#fullpage_dlg.style}</label></td>
246
+ <td><input id="style" name="style" type="text" value="" onchange="FullPageDialog.changedStyle();" /></td>
247
+ </tr>
248
+ </table>
249
+ </fieldset>
250
+ </div>
251
+ </div>
252
+
253
+ <div class="mceActionPanel">
254
+ <input type="submit" id="insert" name="update" value="{#update}" />
255
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
256
+ </div>
257
+ </form>
258
+ </body>
259
+ </html>
@@ -0,0 +1,232 @@
1
+ /**
2
+ * fullpage.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+ tinyMCEPopup.requireLangPack();
13
+
14
+ var defaultDocTypes =
15
+ 'XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,' +
16
+ 'XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,' +
17
+ 'XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,' +
18
+ 'XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">,' +
19
+ 'HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,' +
20
+ 'HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,' +
21
+ 'HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';
22
+
23
+ var defaultEncodings =
24
+ 'Western european (iso-8859-1)=iso-8859-1,' +
25
+ 'Central European (iso-8859-2)=iso-8859-2,' +
26
+ 'Unicode (UTF-8)=utf-8,' +
27
+ 'Chinese traditional (Big5)=big5,' +
28
+ 'Cyrillic (iso-8859-5)=iso-8859-5,' +
29
+ 'Japanese (iso-2022-jp)=iso-2022-jp,' +
30
+ 'Greek (iso-8859-7)=iso-8859-7,' +
31
+ 'Korean (iso-2022-kr)=iso-2022-kr,' +
32
+ 'ASCII (us-ascii)=us-ascii';
33
+
34
+ var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings';
35
+ var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px';
36
+
37
+ function setVal(id, value) {
38
+ var elm = document.getElementById(id);
39
+
40
+ if (elm) {
41
+ value = value || '';
42
+
43
+ if (elm.nodeName == "SELECT")
44
+ selectByValue(document.forms[0], id, value);
45
+ else if (elm.type == "checkbox")
46
+ elm.checked = !!value;
47
+ else
48
+ elm.value = value;
49
+ }
50
+ };
51
+
52
+ function getVal(id) {
53
+ var elm = document.getElementById(id);
54
+
55
+ if (elm.nodeName == "SELECT")
56
+ return elm.options[elm.selectedIndex].value;
57
+
58
+ if (elm.type == "checkbox")
59
+ return elm.checked;
60
+
61
+ return elm.value;
62
+ };
63
+
64
+ window.FullPageDialog = {
65
+ changedStyle : function() {
66
+ var val, styles = tinyMCEPopup.editor.dom.parseStyle(getVal('style'));
67
+
68
+ setVal('fontface', styles['font-face']);
69
+ setVal('fontsize', styles['font-size']);
70
+ setVal('textcolor', styles['color']);
71
+
72
+ if (val = styles['background-image'])
73
+ setVal('bgimage', val.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"));
74
+ else
75
+ setVal('bgimage', '');
76
+
77
+ setVal('bgcolor', styles['background-color']);
78
+
79
+ // Reset margin form elements
80
+ setVal('topmargin', '');
81
+ setVal('rightmargin', '');
82
+ setVal('bottommargin', '');
83
+ setVal('leftmargin', '');
84
+
85
+ // Expand margin
86
+ if (val = styles['margin']) {
87
+ val = val.split(' ');
88
+ styles['margin-top'] = val[0] || '';
89
+ styles['margin-right'] = val[1] || val[0] || '';
90
+ styles['margin-bottom'] = val[2] || val[0] || '';
91
+ styles['margin-left'] = val[3] || val[0] || '';
92
+ }
93
+
94
+ if (val = styles['margin-top'])
95
+ setVal('topmargin', val.replace(/px/, ''));
96
+
97
+ if (val = styles['margin-right'])
98
+ setVal('rightmargin', val.replace(/px/, ''));
99
+
100
+ if (val = styles['margin-bottom'])
101
+ setVal('bottommargin', val.replace(/px/, ''));
102
+
103
+ if (val = styles['margin-left'])
104
+ setVal('leftmargin', val.replace(/px/, ''));
105
+
106
+ updateColor('bgcolor_pick', 'bgcolor');
107
+ updateColor('textcolor_pick', 'textcolor');
108
+ },
109
+
110
+ changedStyleProp : function() {
111
+ var val, dom = tinyMCEPopup.editor.dom, styles = dom.parseStyle(getVal('style'));
112
+
113
+ styles['font-face'] = getVal('fontface');
114
+ styles['font-size'] = getVal('fontsize');
115
+ styles['color'] = getVal('textcolor');
116
+ styles['background-color'] = getVal('bgcolor');
117
+
118
+ if (val = getVal('bgimage'))
119
+ styles['background-image'] = "url('" + val + "')";
120
+ else
121
+ styles['background-image'] = '';
122
+
123
+ delete styles['margin'];
124
+
125
+ if (val = getVal('topmargin'))
126
+ styles['margin-top'] = val + "px";
127
+ else
128
+ styles['margin-top'] = '';
129
+
130
+ if (val = getVal('rightmargin'))
131
+ styles['margin-right'] = val + "px";
132
+ else
133
+ styles['margin-right'] = '';
134
+
135
+ if (val = getVal('bottommargin'))
136
+ styles['margin-bottom'] = val + "px";
137
+ else
138
+ styles['margin-bottom'] = '';
139
+
140
+ if (val = getVal('leftmargin'))
141
+ styles['margin-left'] = val + "px";
142
+ else
143
+ styles['margin-left'] = '';
144
+
145
+ // Serialize, parse and reserialize this will compress redundant styles
146
+ setVal('style', dom.serializeStyle(dom.parseStyle(dom.serializeStyle(styles))));
147
+ this.changedStyle();
148
+ },
149
+
150
+ update : function() {
151
+ var data = {};
152
+
153
+ tinymce.each(tinyMCEPopup.dom.select('select,input,textarea'), function(node) {
154
+ data[node.id] = getVal(node.id);
155
+ });
156
+
157
+ tinyMCEPopup.editor.plugins.fullpage._dataToHtml(data);
158
+ tinyMCEPopup.close();
159
+ }
160
+ };
161
+
162
+ function init() {
163
+ var form = document.forms[0], i, item, list, editor = tinyMCEPopup.editor;
164
+
165
+ // Setup doctype select box
166
+ list = editor.getParam("fullpage_doctypes", defaultDocTypes).split(',');
167
+ for (i = 0; i < list.length; i++) {
168
+ item = list[i].split('=');
169
+
170
+ if (item.length > 1)
171
+ addSelectValue(form, 'doctype', item[0], item[1]);
172
+ }
173
+
174
+ // Setup fonts select box
175
+ list = editor.getParam("fullpage_fonts", defaultFontNames).split(';');
176
+ for (i = 0; i < list.length; i++) {
177
+ item = list[i].split('=');
178
+
179
+ if (item.length > 1)
180
+ addSelectValue(form, 'fontface', item[0], item[1]);
181
+ }
182
+
183
+ // Setup fontsize select box
184
+ list = editor.getParam("fullpage_fontsizes", defaultFontSizes).split(',');
185
+ for (i = 0; i < list.length; i++)
186
+ addSelectValue(form, 'fontsize', list[i], list[i]);
187
+
188
+ // Setup encodings select box
189
+ list = editor.getParam("fullpage_encodings", defaultEncodings).split(',');
190
+ for (i = 0; i < list.length; i++) {
191
+ item = list[i].split('=');
192
+
193
+ if (item.length > 1)
194
+ addSelectValue(form, 'docencoding', item[0], item[1]);
195
+ }
196
+
197
+ // Setup color pickers
198
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
199
+ document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color');
200
+ document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color');
201
+ document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color');
202
+ document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor');
203
+ document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage');
204
+ document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage');
205
+
206
+ // Resize some elements
207
+ if (isVisible('stylesheetbrowser'))
208
+ document.getElementById('stylesheet').style.width = '220px';
209
+
210
+ if (isVisible('link_href_browser'))
211
+ document.getElementById('element_link_href').style.width = '230px';
212
+
213
+ if (isVisible('bgimage_browser'))
214
+ document.getElementById('bgimage').style.width = '210px';
215
+
216
+ // Update form
217
+ tinymce.each(tinyMCEPopup.getWindowArg('data'), function(value, key) {
218
+ setVal(key, value);
219
+ });
220
+
221
+ FullPageDialog.changedStyle();
222
+
223
+ // Update colors
224
+ updateColor('textcolor_pick', 'textcolor');
225
+ updateColor('bgcolor_pick', 'bgcolor');
226
+ updateColor('visited_color_pick', 'visited_color');
227
+ updateColor('active_color_pick', 'active_color');
228
+ updateColor('link_color_pick', 'link_color');
229
+ };
230
+
231
+ tinyMCEPopup.onInit.add(init);
232
+ })();
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n('en.fullpage_dlg',{title:"Document Properties","meta_tab":"General","appearance_tab":"Appearance","advanced_tab":"Advanced","meta_props":"Meta Information",langprops:"Language and Encoding","meta_title":"Title","meta_keywords":"Keywords","meta_description":"Description","meta_robots":"Robots",doctypes:"Doctype",langcode:"Language Code",langdir:"Language Direction",ltr:"Left to Right",rtl:"Right to Left","xml_pi":"XML Declaration",encoding:"Character Encoding","appearance_bgprops":"Background Properties","appearance_marginprops":"Body Margins","appearance_linkprops":"Link Colors","appearance_textprops":"Text Properties",bgcolor:"Background Color",bgimage:"Background Image","left_margin":"Left Margin","right_margin":"Right Margin","top_margin":"Top Margin","bottom_margin":"Bottom Margin","text_color":"Text Color","font_size":"Font Size","font_face":"Font Face","link_color":"Link Color","hover_color":"Hover Color","visited_color":"Visited Color","active_color":"Active Color",textcolor:"Color",fontsize:"Font Size",fontface:"Font Family","meta_index_follow":"Index and Follow the Links","meta_index_nofollow":"Index and Don\'t Follow the Links","meta_noindex_follow":"Do Not Index but Follow the Links","meta_noindex_nofollow":"Do Not Index and Don\'t Follow the Links","appearance_style":"Stylesheet and Style Properties",stylesheet:"Stylesheet",style:"Style",author:"Author",copyright:"Copyright",add:"Add New Element",remove:"Remove Selected Element",moveup:"Move Selected Element Up",movedown:"Move Selected Element Down","head_elements":"Head Elements",info:"Information","add_title":"Title Element","add_meta":"Meta Element","add_script":"Script Element","add_style":"Style Element","add_link":"Link Element","add_base":"Base Element","add_comment":"Comment Node","title_element":"Title Element","script_element":"Script Element","style_element":"Style Element","base_element":"Base Element","link_element":"Link Element","meta_element":"Meta Element","comment_element":"Comment",src:"Source",language:"Language",href:"HREF",target:"Target",type:"Type",charset:"Charset",defer:"Defer",media:"Media",properties:"Properties",name:"Name",value:"Value",content:"Content",rel:"Rel",rev:"Rev",hreflang:"HREF Lang","general_props":"General","advanced_props":"Advanced"});
@@ -0,0 +1 @@
1
+ (function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent());tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent());d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().firstChild);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
@@ -0,0 +1,159 @@
1
+ /**
2
+ * editor_plugin_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+ var DOM = tinymce.DOM;
13
+
14
+ tinymce.create('tinymce.plugins.FullScreenPlugin', {
15
+ init : function(ed, url) {
16
+ var t = this, s = {}, vp, posCss;
17
+
18
+ t.editor = ed;
19
+
20
+ // Register commands
21
+ ed.addCommand('mceFullScreen', function() {
22
+ var win, de = DOM.doc.documentElement;
23
+
24
+ if (ed.getParam('fullscreen_is_enabled')) {
25
+ if (ed.getParam('fullscreen_new_window'))
26
+ closeFullscreen(); // Call to close in new window
27
+ else {
28
+ DOM.win.setTimeout(function() {
29
+ tinymce.dom.Event.remove(DOM.win, 'resize', t.resizeFunc);
30
+ tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent());
31
+ tinyMCE.remove(ed);
32
+ DOM.remove('mce_fullscreen_container');
33
+ de.style.overflow = ed.getParam('fullscreen_html_overflow');
34
+ DOM.setStyle(DOM.doc.body, 'overflow', ed.getParam('fullscreen_overflow'));
35
+ DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'), ed.getParam('fullscreen_scrolly'));
36
+ tinyMCE.settings = tinyMCE.oldSettings; // Restore old settings
37
+ }, 10);
38
+ }
39
+
40
+ return;
41
+ }
42
+
43
+ if (ed.getParam('fullscreen_new_window')) {
44
+ win = DOM.win.open(url + "/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
45
+ try {
46
+ win.resizeTo(screen.availWidth, screen.availHeight);
47
+ } catch (e) {
48
+ // Ignore
49
+ }
50
+ } else {
51
+ tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
52
+ s.fullscreen_overflow = DOM.getStyle(DOM.doc.body, 'overflow', 1) || 'auto';
53
+ s.fullscreen_html_overflow = DOM.getStyle(de, 'overflow', 1);
54
+ vp = DOM.getViewPort();
55
+ s.fullscreen_scrollx = vp.x;
56
+ s.fullscreen_scrolly = vp.y;
57
+
58
+ // Fixes an Opera bug where the scrollbars doesn't reappear
59
+ if (tinymce.isOpera && s.fullscreen_overflow == 'visible')
60
+ s.fullscreen_overflow = 'auto';
61
+
62
+ // Fixes an IE bug where horizontal scrollbars would appear
63
+ if (tinymce.isIE && s.fullscreen_overflow == 'scroll')
64
+ s.fullscreen_overflow = 'auto';
65
+
66
+ // Fixes an IE bug where the scrollbars doesn't reappear
67
+ if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
68
+ s.fullscreen_html_overflow = 'auto';
69
+
70
+ if (s.fullscreen_overflow == '0px')
71
+ s.fullscreen_overflow = '';
72
+
73
+ DOM.setStyle(DOM.doc.body, 'overflow', 'hidden');
74
+ de.style.overflow = 'hidden'; //Fix for IE6/7
75
+ vp = DOM.getViewPort();
76
+ DOM.win.scrollTo(0, 0);
77
+
78
+ if (tinymce.isIE)
79
+ vp.h -= 1;
80
+
81
+ // Use fixed position if it exists
82
+ if (tinymce.isIE6)
83
+ posCss = 'absolute;top:' + vp.y;
84
+ else
85
+ posCss = 'fixed;top:0';
86
+
87
+ n = DOM.add(DOM.doc.body, 'div', {
88
+ id : 'mce_fullscreen_container',
89
+ style : 'position:' + posCss + ';left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'});
90
+ DOM.add(n, 'div', {id : 'mce_fullscreen'});
91
+
92
+ tinymce.each(ed.settings, function(v, n) {
93
+ s[n] = v;
94
+ });
95
+
96
+ s.id = 'mce_fullscreen';
97
+ s.width = n.clientWidth;
98
+ s.height = n.clientHeight - 15;
99
+ s.fullscreen_is_enabled = true;
100
+ s.fullscreen_editor_id = ed.id;
101
+ s.theme_advanced_resizing = false;
102
+ s.save_onsavecallback = function() {
103
+ ed.setContent(tinyMCE.get(s.id).getContent());
104
+ ed.execCommand('mceSave');
105
+ };
106
+
107
+ tinymce.each(ed.getParam('fullscreen_settings'), function(v, k) {
108
+ s[k] = v;
109
+ });
110
+
111
+ if (s.theme_advanced_toolbar_location === 'external')
112
+ s.theme_advanced_toolbar_location = 'top';
113
+
114
+ t.fullscreenEditor = new tinymce.Editor('mce_fullscreen', s);
115
+ t.fullscreenEditor.onInit.add(function() {
116
+ t.fullscreenEditor.setContent(ed.getContent());
117
+ t.fullscreenEditor.focus();
118
+ });
119
+
120
+ t.fullscreenEditor.render();
121
+
122
+ t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
123
+ t.fullscreenElement.update();
124
+ //document.body.overflow = 'hidden';
125
+
126
+ t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
127
+ var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
128
+
129
+ // Get outer/inner size to get a delta size that can be used to calc the new iframe size
130
+ outerSize = fed.dom.getSize(fed.getContainer().firstChild);
131
+ innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
132
+
133
+ fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
134
+ });
135
+ }
136
+ });
137
+
138
+ // Register buttons
139
+ ed.addButton('fullscreen', {title : 'fullscreen.desc', cmd : 'mceFullScreen'});
140
+
141
+ ed.onNodeChange.add(function(ed, cm) {
142
+ cm.setActive('fullscreen', ed.getParam('fullscreen_is_enabled'));
143
+ });
144
+ },
145
+
146
+ getInfo : function() {
147
+ return {
148
+ longname : 'Fullscreen',
149
+ author : 'Moxiecode Systems AB',
150
+ authorurl : 'http://tinymce.moxiecode.com',
151
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',
152
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
153
+ };
154
+ }
155
+ });
156
+
157
+ // Register plugin
158
+ tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
159
+ })();