kitsune 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/generators/kitsune/kitsune_generator.rb +14 -1
- data/generators/kitsune/templates/javascripts/tiny_mce/langs/en.js +154 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/license.txt +504 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +54 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/rule.htm +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +47 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/image.htm +237 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +58 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/link.htm +338 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +114 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +117 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +95 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +79 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +40 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/dialog.htm +27 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +81 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +146 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +576 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +461 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +145 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +632 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +80 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +209 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +411 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/media.htm +822 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +50 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +87 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +531 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pastetext.htm +33 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pasteword.htm +27 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +50 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/example.html +28 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/blank.htm +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +438 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +98 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +54 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +126 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +104 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +338 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +52 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/props.htm +730 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +109 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/cell.htm +183 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/cell.js +269 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/merge_cells.js +29 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/row.js +212 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/table.js +440 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/merge_cells.htm +37 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/row.htm +160 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/table.htm +192 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +156 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/template.htm +38 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +73 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +95 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +148 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +148 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +153 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +148 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +169 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +136 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +169 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +123 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +60 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +59 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/about.htm +56 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/anchor.htm +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/color_picker.htm +75 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1153 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/image.htm +85 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/charmap.js +325 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/link.htm +63 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/content.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +116 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +115 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/source_editor.htm +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_src.js +13231 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/editable_selects.js +69 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/form_utils.js +199 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/mctabs.js +76 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/validate.js +219 -0
- data/lib/kitsune.rb +1 -1
- metadata +243 -2
- data/generators/kitsune/templates/javascripts/nicEdit.js +0 -102
@@ -0,0 +1,461 @@
|
|
1
|
+
tinyMCEPopup.requireLangPack();
|
2
|
+
|
3
|
+
var doc;
|
4
|
+
|
5
|
+
var defaultDocTypes =
|
6
|
+
'XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,' +
|
7
|
+
'XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,' +
|
8
|
+
'XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,' +
|
9
|
+
'XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">,' +
|
10
|
+
'HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,' +
|
11
|
+
'HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,' +
|
12
|
+
'HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';
|
13
|
+
|
14
|
+
var defaultEncodings =
|
15
|
+
'Western european (iso-8859-1)=iso-8859-1,' +
|
16
|
+
'Central European (iso-8859-2)=iso-8859-2,' +
|
17
|
+
'Unicode (UTF-8)=utf-8,' +
|
18
|
+
'Chinese traditional (Big5)=big5,' +
|
19
|
+
'Cyrillic (iso-8859-5)=iso-8859-5,' +
|
20
|
+
'Japanese (iso-2022-jp)=iso-2022-jp,' +
|
21
|
+
'Greek (iso-8859-7)=iso-8859-7,' +
|
22
|
+
'Korean (iso-2022-kr)=iso-2022-kr,' +
|
23
|
+
'ASCII (us-ascii)=us-ascii';
|
24
|
+
|
25
|
+
var defaultMediaTypes =
|
26
|
+
'all=all,' +
|
27
|
+
'screen=screen,' +
|
28
|
+
'print=print,' +
|
29
|
+
'tty=tty,' +
|
30
|
+
'tv=tv,' +
|
31
|
+
'projection=projection,' +
|
32
|
+
'handheld=handheld,' +
|
33
|
+
'braille=braille,' +
|
34
|
+
'aural=aural';
|
35
|
+
|
36
|
+
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';
|
37
|
+
var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px';
|
38
|
+
|
39
|
+
function init() {
|
40
|
+
var f = document.forms['fullpage'], el = f.elements, e, i, p, doctypes, encodings, mediaTypes, fonts, ed = tinyMCEPopup.editor, dom = tinyMCEPopup.dom, style;
|
41
|
+
|
42
|
+
// Setup doctype select box
|
43
|
+
doctypes = ed.getParam("fullpage_doctypes", defaultDocTypes).split(',');
|
44
|
+
for (i=0; i<doctypes.length; i++) {
|
45
|
+
p = doctypes[i].split('=');
|
46
|
+
|
47
|
+
if (p.length > 1)
|
48
|
+
addSelectValue(f, 'doctypes', p[0], p[1]);
|
49
|
+
}
|
50
|
+
|
51
|
+
// Setup fonts select box
|
52
|
+
fonts = ed.getParam("fullpage_fonts", defaultFontNames).split(';');
|
53
|
+
for (i=0; i<fonts.length; i++) {
|
54
|
+
p = fonts[i].split('=');
|
55
|
+
|
56
|
+
if (p.length > 1)
|
57
|
+
addSelectValue(f, 'fontface', p[0], p[1]);
|
58
|
+
}
|
59
|
+
|
60
|
+
// Setup fontsize select box
|
61
|
+
fonts = ed.getParam("fullpage_fontsizes", defaultFontSizes).split(',');
|
62
|
+
for (i=0; i<fonts.length; i++)
|
63
|
+
addSelectValue(f, 'fontsize', fonts[i], fonts[i]);
|
64
|
+
|
65
|
+
// Setup mediatype select boxs
|
66
|
+
mediaTypes = ed.getParam("fullpage_media_types", defaultMediaTypes).split(',');
|
67
|
+
for (i=0; i<mediaTypes.length; i++) {
|
68
|
+
p = mediaTypes[i].split('=');
|
69
|
+
|
70
|
+
if (p.length > 1) {
|
71
|
+
addSelectValue(f, 'element_style_media', p[0], p[1]);
|
72
|
+
addSelectValue(f, 'element_link_media', p[0], p[1]);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// Setup encodings select box
|
77
|
+
encodings = ed.getParam("fullpage_encodings", defaultEncodings).split(',');
|
78
|
+
for (i=0; i<encodings.length; i++) {
|
79
|
+
p = encodings[i].split('=');
|
80
|
+
|
81
|
+
if (p.length > 1) {
|
82
|
+
addSelectValue(f, 'docencoding', p[0], p[1]);
|
83
|
+
addSelectValue(f, 'element_script_charset', p[0], p[1]);
|
84
|
+
addSelectValue(f, 'element_link_charset', p[0], p[1]);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
89
|
+
document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color');
|
90
|
+
//document.getElementById('hover_color_pickcontainer').innerHTML = getColorPickerHTML('hover_color_pick','hover_color');
|
91
|
+
document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color');
|
92
|
+
document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color');
|
93
|
+
document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor');
|
94
|
+
document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage');
|
95
|
+
document.getElementById('link_href_pickcontainer').innerHTML = getBrowserHTML('link_href_browser','element_link_href','file','fullpage');
|
96
|
+
document.getElementById('script_src_pickcontainer').innerHTML = getBrowserHTML('script_src_browser','element_script_src','file','fullpage');
|
97
|
+
document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage');
|
98
|
+
|
99
|
+
// Resize some elements
|
100
|
+
if (isVisible('stylesheetbrowser'))
|
101
|
+
document.getElementById('stylesheet').style.width = '220px';
|
102
|
+
|
103
|
+
if (isVisible('link_href_browser'))
|
104
|
+
document.getElementById('element_link_href').style.width = '230px';
|
105
|
+
|
106
|
+
if (isVisible('bgimage_browser'))
|
107
|
+
document.getElementById('bgimage').style.width = '210px';
|
108
|
+
|
109
|
+
// Add iframe
|
110
|
+
dom.add(document.body, 'iframe', {id : 'documentIframe', src : 'javascript:""', style : {display : 'none'}});
|
111
|
+
doc = dom.get('documentIframe').contentWindow.document;
|
112
|
+
h = tinyMCEPopup.getWindowArg('head_html');
|
113
|
+
|
114
|
+
// Preprocess the HTML disable scripts and urls
|
115
|
+
h = h.replace(/<script>/gi, '<script type="text/javascript">');
|
116
|
+
h = h.replace(/type=([\"\'])?/gi, 'type=$1-mce-');
|
117
|
+
h = h.replace(/(src=|href=)/g, 'mce_$1');
|
118
|
+
|
119
|
+
// Write in the content in the iframe
|
120
|
+
doc.write(h + '</body></html>');
|
121
|
+
doc.close();
|
122
|
+
|
123
|
+
// Parse xml and doctype
|
124
|
+
xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1);
|
125
|
+
xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1);
|
126
|
+
docType = getReItem(/<\!DOCTYPE.*?>/gi, h.replace(/\n/g, ''), 0).replace(/ +/g, ' ');
|
127
|
+
f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1);
|
128
|
+
|
129
|
+
// Parse title
|
130
|
+
if (e = doc.getElementsByTagName('title')[0])
|
131
|
+
el.metatitle.value = e.textContent || e.text;
|
132
|
+
|
133
|
+
// Parse meta
|
134
|
+
tinymce.each(doc.getElementsByTagName('meta'), function(n) {
|
135
|
+
var na = (n.getAttribute('name', 2) || '').toLowerCase(), va = n.getAttribute('content', 2), eq = n.getAttribute('httpEquiv', 2) || '';
|
136
|
+
|
137
|
+
e = el['meta' + na];
|
138
|
+
|
139
|
+
if (na == 'robots') {
|
140
|
+
selectByValue(f, 'metarobots', tinymce.trim(va), true, true);
|
141
|
+
return;
|
142
|
+
}
|
143
|
+
|
144
|
+
switch (eq.toLowerCase()) {
|
145
|
+
case "content-type":
|
146
|
+
tmp = getReItem(/charset\s*=\s*(.*)\s*/gi, va, 1);
|
147
|
+
|
148
|
+
// Override XML encoding
|
149
|
+
if (tmp != "")
|
150
|
+
xmlEnc = tmp;
|
151
|
+
|
152
|
+
return;
|
153
|
+
}
|
154
|
+
|
155
|
+
if (e)
|
156
|
+
e.value = va;
|
157
|
+
});
|
158
|
+
|
159
|
+
selectByValue(f, 'doctypes', docType, true, true);
|
160
|
+
selectByValue(f, 'docencoding', xmlEnc, true, true);
|
161
|
+
selectByValue(f, 'langdir', doc.body.getAttribute('dir', 2) || '', true, true);
|
162
|
+
|
163
|
+
if (xmlVer != '')
|
164
|
+
el.xml_pi.checked = true;
|
165
|
+
|
166
|
+
// Parse appearance
|
167
|
+
|
168
|
+
// Parse primary stylesheet
|
169
|
+
tinymce.each(doc.getElementsByTagName("link"), function(l) {
|
170
|
+
var m = l.getAttribute('media', 2) || '', t = l.getAttribute('type', 2) || '';
|
171
|
+
|
172
|
+
if (t == "-mce-text/css" && (m == "" || m == "screen" || m == "all") && (l.getAttribute('rel', 2) || '') == "stylesheet") {
|
173
|
+
f.stylesheet.value = l.getAttribute('mce_href', 2) || '';
|
174
|
+
return false;
|
175
|
+
}
|
176
|
+
});
|
177
|
+
|
178
|
+
// Get from style elements
|
179
|
+
tinymce.each(doc.getElementsByTagName("style"), function(st) {
|
180
|
+
var tmp = parseStyleElement(st);
|
181
|
+
|
182
|
+
for (x=0; x<tmp.length; x++) {
|
183
|
+
if (tmp[x].rule.indexOf('a:visited') != -1 && tmp[x].data['color'])
|
184
|
+
f.visited_color.value = tmp[x].data['color'];
|
185
|
+
|
186
|
+
if (tmp[x].rule.indexOf('a:link') != -1 && tmp[x].data['color'])
|
187
|
+
f.link_color.value = tmp[x].data['color'];
|
188
|
+
|
189
|
+
if (tmp[x].rule.indexOf('a:active') != -1 && tmp[x].data['color'])
|
190
|
+
f.active_color.value = tmp[x].data['color'];
|
191
|
+
}
|
192
|
+
});
|
193
|
+
|
194
|
+
f.textcolor.value = tinyMCEPopup.dom.getAttrib(doc.body, "text");
|
195
|
+
f.active_color.value = tinyMCEPopup.dom.getAttrib(doc.body, "alink");
|
196
|
+
f.link_color.value = tinyMCEPopup.dom.getAttrib(doc.body, "link");
|
197
|
+
f.visited_color.value = tinyMCEPopup.dom.getAttrib(doc.body, "vlink");
|
198
|
+
f.bgcolor.value = tinyMCEPopup.dom.getAttrib(doc.body, "bgcolor");
|
199
|
+
f.bgimage.value = tinyMCEPopup.dom.getAttrib(doc.body, "background");
|
200
|
+
|
201
|
+
// Get from style info
|
202
|
+
style = tinyMCEPopup.dom.parseStyle(tinyMCEPopup.dom.getAttrib(doc.body, 'style'));
|
203
|
+
|
204
|
+
if (style['font-family'])
|
205
|
+
selectByValue(f, 'fontface', style['font-family'], true, true);
|
206
|
+
else
|
207
|
+
selectByValue(f, 'fontface', ed.getParam("fullpage_default_fontface", ""), true, true);
|
208
|
+
|
209
|
+
if (style['font-size'])
|
210
|
+
selectByValue(f, 'fontsize', style['font-size'], true, true);
|
211
|
+
else
|
212
|
+
selectByValue(f, 'fontsize', ed.getParam("fullpage_default_fontsize", ""), true, true);
|
213
|
+
|
214
|
+
if (style['color'])
|
215
|
+
f.textcolor.value = convertRGBToHex(style['color']);
|
216
|
+
|
217
|
+
if (style['background-image'])
|
218
|
+
f.bgimage.value = style['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
219
|
+
|
220
|
+
if (style['background-color'])
|
221
|
+
f.bgcolor.value = style['background-color'];
|
222
|
+
|
223
|
+
if (style['margin']) {
|
224
|
+
tmp = style['margin'].replace(/[^0-9 ]/g, '');
|
225
|
+
tmp = tmp.split(/ +/);
|
226
|
+
f.topmargin.value = tmp.length > 0 ? tmp[0] : '';
|
227
|
+
f.rightmargin.value = tmp.length > 1 ? tmp[1] : tmp[0];
|
228
|
+
f.bottommargin.value = tmp.length > 2 ? tmp[2] : tmp[0];
|
229
|
+
f.leftmargin.value = tmp.length > 3 ? tmp[3] : tmp[0];
|
230
|
+
}
|
231
|
+
|
232
|
+
if (style['margin-left'])
|
233
|
+
f.leftmargin.value = style['margin-left'].replace(/[^0-9]/g, '');
|
234
|
+
|
235
|
+
if (style['margin-right'])
|
236
|
+
f.rightmargin.value = style['margin-right'].replace(/[^0-9]/g, '');
|
237
|
+
|
238
|
+
if (style['margin-top'])
|
239
|
+
f.topmargin.value = style['margin-top'].replace(/[^0-9]/g, '');
|
240
|
+
|
241
|
+
if (style['margin-bottom'])
|
242
|
+
f.bottommargin.value = style['margin-bottom'].replace(/[^0-9]/g, '');
|
243
|
+
|
244
|
+
f.style.value = tinyMCEPopup.dom.serializeStyle(style);
|
245
|
+
|
246
|
+
// Update colors
|
247
|
+
updateColor('textcolor_pick', 'textcolor');
|
248
|
+
updateColor('bgcolor_pick', 'bgcolor');
|
249
|
+
updateColor('visited_color_pick', 'visited_color');
|
250
|
+
updateColor('active_color_pick', 'active_color');
|
251
|
+
updateColor('link_color_pick', 'link_color');
|
252
|
+
}
|
253
|
+
|
254
|
+
function getReItem(r, s, i) {
|
255
|
+
var c = r.exec(s);
|
256
|
+
|
257
|
+
if (c && c.length > i)
|
258
|
+
return c[i];
|
259
|
+
|
260
|
+
return '';
|
261
|
+
}
|
262
|
+
|
263
|
+
function updateAction() {
|
264
|
+
var f = document.forms[0], nl, i, h, v, s, head, html, l, tmp, addlink = true, ser;
|
265
|
+
|
266
|
+
head = doc.getElementsByTagName('head')[0];
|
267
|
+
|
268
|
+
// Fix scripts without a type
|
269
|
+
nl = doc.getElementsByTagName('script');
|
270
|
+
for (i=0; i<nl.length; i++) {
|
271
|
+
if (tinyMCEPopup.dom.getAttrib(nl[i], 'mce_type') == '')
|
272
|
+
nl[i].setAttribute('mce_type', 'text/javascript');
|
273
|
+
}
|
274
|
+
|
275
|
+
// Get primary stylesheet
|
276
|
+
nl = doc.getElementsByTagName("link");
|
277
|
+
for (i=0; i<nl.length; i++) {
|
278
|
+
l = nl[i];
|
279
|
+
|
280
|
+
tmp = tinyMCEPopup.dom.getAttrib(l, 'media');
|
281
|
+
|
282
|
+
if (tinyMCEPopup.dom.getAttrib(l, 'mce_type') == "text/css" && (tmp == "" || tmp == "screen" || tmp == "all") && tinyMCEPopup.dom.getAttrib(l, 'rel') == "stylesheet") {
|
283
|
+
addlink = false;
|
284
|
+
|
285
|
+
if (f.stylesheet.value == '')
|
286
|
+
l.parentNode.removeChild(l);
|
287
|
+
else
|
288
|
+
l.setAttribute('mce_href', f.stylesheet.value);
|
289
|
+
|
290
|
+
break;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
// Add new link
|
295
|
+
if (f.stylesheet.value != '') {
|
296
|
+
l = doc.createElement('link');
|
297
|
+
|
298
|
+
l.setAttribute('type', 'text/css');
|
299
|
+
l.setAttribute('mce_href', f.stylesheet.value);
|
300
|
+
l.setAttribute('rel', 'stylesheet');
|
301
|
+
|
302
|
+
head.appendChild(l);
|
303
|
+
}
|
304
|
+
|
305
|
+
setMeta(head, 'keywords', f.metakeywords.value);
|
306
|
+
setMeta(head, 'description', f.metadescription.value);
|
307
|
+
setMeta(head, 'author', f.metaauthor.value);
|
308
|
+
setMeta(head, 'copyright', f.metacopyright.value);
|
309
|
+
setMeta(head, 'robots', getSelectValue(f, 'metarobots'));
|
310
|
+
setMeta(head, 'Content-Type', getSelectValue(f, 'docencoding'));
|
311
|
+
|
312
|
+
doc.body.dir = getSelectValue(f, 'langdir');
|
313
|
+
doc.body.style.cssText = f.style.value;
|
314
|
+
|
315
|
+
doc.body.setAttribute('vLink', f.visited_color.value);
|
316
|
+
doc.body.setAttribute('link', f.link_color.value);
|
317
|
+
doc.body.setAttribute('text', f.textcolor.value);
|
318
|
+
doc.body.setAttribute('aLink', f.active_color.value);
|
319
|
+
|
320
|
+
doc.body.style.fontFamily = getSelectValue(f, 'fontface');
|
321
|
+
doc.body.style.fontSize = getSelectValue(f, 'fontsize');
|
322
|
+
doc.body.style.backgroundColor = f.bgcolor.value;
|
323
|
+
|
324
|
+
if (f.leftmargin.value != '')
|
325
|
+
doc.body.style.marginLeft = f.leftmargin.value + 'px';
|
326
|
+
|
327
|
+
if (f.rightmargin.value != '')
|
328
|
+
doc.body.style.marginRight = f.rightmargin.value + 'px';
|
329
|
+
|
330
|
+
if (f.bottommargin.value != '')
|
331
|
+
doc.body.style.marginBottom = f.bottommargin.value + 'px';
|
332
|
+
|
333
|
+
if (f.topmargin.value != '')
|
334
|
+
doc.body.style.marginTop = f.topmargin.value + 'px';
|
335
|
+
|
336
|
+
html = doc.getElementsByTagName('html')[0];
|
337
|
+
html.setAttribute('lang', f.langcode.value);
|
338
|
+
html.setAttribute('xml:lang', f.langcode.value);
|
339
|
+
|
340
|
+
if (f.bgimage.value != '')
|
341
|
+
doc.body.style.backgroundImage = "url('" + f.bgimage.value + "')";
|
342
|
+
else
|
343
|
+
doc.body.style.backgroundImage = '';
|
344
|
+
|
345
|
+
ser = tinyMCEPopup.editor.plugins.fullpage._createSerializer();
|
346
|
+
ser.setRules('-title,meta[http-equiv|name|content],base[href|target],link[href|rel|type|title|media],style[type],script[type|language|src],html[lang|xml::lang|xmlns],body[style|dir|vlink|link|text|alink],head');
|
347
|
+
|
348
|
+
h = ser.serialize(doc.documentElement);
|
349
|
+
h = h.substring(0, h.lastIndexOf('</body>'));
|
350
|
+
|
351
|
+
if (h.indexOf('<title>') == -1)
|
352
|
+
h = h.replace(/<head.*?>/, '$&\n' + '<title>' + tinyMCEPopup.dom.encode(f.metatitle.value) + '</title>');
|
353
|
+
else
|
354
|
+
h = h.replace(/<title>(.*?)<\/title>/, '<title>' + tinyMCEPopup.dom.encode(f.metatitle.value) + '</title>');
|
355
|
+
|
356
|
+
if ((v = getSelectValue(f, 'doctypes')) != '')
|
357
|
+
h = v + '\n' + h;
|
358
|
+
|
359
|
+
if (f.xml_pi.checked) {
|
360
|
+
s = '<?xml version="1.0"';
|
361
|
+
|
362
|
+
if ((v = getSelectValue(f, 'docencoding')) != '')
|
363
|
+
s += ' encoding="' + v + '"';
|
364
|
+
|
365
|
+
s += '?>\n';
|
366
|
+
h = s + h;
|
367
|
+
}
|
368
|
+
|
369
|
+
h = h.replace(/type=\"\-mce\-/gi, 'type="');
|
370
|
+
|
371
|
+
tinyMCEPopup.editor.plugins.fullpage.head = h;
|
372
|
+
tinyMCEPopup.editor.plugins.fullpage._setBodyAttribs(tinyMCEPopup.editor, {});
|
373
|
+
tinyMCEPopup.close();
|
374
|
+
}
|
375
|
+
|
376
|
+
function changedStyleField(field) {
|
377
|
+
}
|
378
|
+
|
379
|
+
function setMeta(he, k, v) {
|
380
|
+
var nl, i, m;
|
381
|
+
|
382
|
+
nl = he.getElementsByTagName('meta');
|
383
|
+
for (i=0; i<nl.length; i++) {
|
384
|
+
if (k == 'Content-Type' && tinyMCEPopup.dom.getAttrib(nl[i], 'http-equiv') == k) {
|
385
|
+
if (v == '')
|
386
|
+
nl[i].parentNode.removeChild(nl[i]);
|
387
|
+
else
|
388
|
+
nl[i].setAttribute('content', "text/html; charset=" + v);
|
389
|
+
|
390
|
+
return;
|
391
|
+
}
|
392
|
+
|
393
|
+
if (tinyMCEPopup.dom.getAttrib(nl[i], 'name') == k) {
|
394
|
+
if (v == '')
|
395
|
+
nl[i].parentNode.removeChild(nl[i]);
|
396
|
+
else
|
397
|
+
nl[i].setAttribute('content', v);
|
398
|
+
return;
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
if (v == '')
|
403
|
+
return;
|
404
|
+
|
405
|
+
m = doc.createElement('meta');
|
406
|
+
|
407
|
+
if (k == 'Content-Type')
|
408
|
+
m.httpEquiv = k;
|
409
|
+
else
|
410
|
+
m.setAttribute('name', k);
|
411
|
+
|
412
|
+
m.setAttribute('content', v);
|
413
|
+
he.appendChild(m);
|
414
|
+
}
|
415
|
+
|
416
|
+
function parseStyleElement(e) {
|
417
|
+
var v = e.innerHTML;
|
418
|
+
var p, i, r;
|
419
|
+
|
420
|
+
v = v.replace(/<!--/gi, '');
|
421
|
+
v = v.replace(/-->/gi, '');
|
422
|
+
v = v.replace(/[\n\r]/gi, '');
|
423
|
+
v = v.replace(/\s+/gi, ' ');
|
424
|
+
|
425
|
+
r = [];
|
426
|
+
p = v.split(/{|}/);
|
427
|
+
|
428
|
+
for (i=0; i<p.length; i+=2) {
|
429
|
+
if (p[i] != "")
|
430
|
+
r[r.length] = {rule : tinymce.trim(p[i]), data : tinyMCEPopup.dom.parseStyle(p[i+1])};
|
431
|
+
}
|
432
|
+
|
433
|
+
return r;
|
434
|
+
}
|
435
|
+
|
436
|
+
function serializeStyleElement(d) {
|
437
|
+
var i, s, st;
|
438
|
+
|
439
|
+
s = '<!--\n';
|
440
|
+
|
441
|
+
for (i=0; i<d.length; i++) {
|
442
|
+
s += d[i].rule + ' {\n';
|
443
|
+
|
444
|
+
st = tinyMCE.serializeStyle(d[i].data);
|
445
|
+
|
446
|
+
if (st != '')
|
447
|
+
st += ';';
|
448
|
+
|
449
|
+
s += st.replace(/;/g, ';\n');
|
450
|
+
s += '}\n';
|
451
|
+
|
452
|
+
if (i != d.length - 1)
|
453
|
+
s += '\n';
|
454
|
+
}
|
455
|
+
|
456
|
+
s += '\n-->';
|
457
|
+
|
458
|
+
return s;
|
459
|
+
}
|
460
|
+
|
461
|
+
tinyMCEPopup.onInit.add(init);
|