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,25 @@
|
|
1
|
+
/**
|
2
|
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3
|
+
*
|
4
|
+
* @author Moxiecode - based on work by Andrew Tetlaw
|
5
|
+
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
6
|
+
*/
|
7
|
+
|
8
|
+
function init() {
|
9
|
+
SXE.initElementDialog('abbr');
|
10
|
+
if (SXE.currentAction == "update") {
|
11
|
+
SXE.showRemoveButton();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
function insertAbbr() {
|
16
|
+
SXE.insertElement(tinymce.isIE ? 'html:abbr' : 'abbr');
|
17
|
+
tinyMCEPopup.close();
|
18
|
+
}
|
19
|
+
|
20
|
+
function removeAbbr() {
|
21
|
+
SXE.removeElement('abbr');
|
22
|
+
tinyMCEPopup.close();
|
23
|
+
}
|
24
|
+
|
25
|
+
tinyMCEPopup.onInit.add(init);
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3
|
+
*
|
4
|
+
* @author Moxiecode - based on work by Andrew Tetlaw
|
5
|
+
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
6
|
+
*/
|
7
|
+
|
8
|
+
function init() {
|
9
|
+
SXE.initElementDialog('acronym');
|
10
|
+
if (SXE.currentAction == "update") {
|
11
|
+
SXE.showRemoveButton();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
function insertAcronym() {
|
16
|
+
SXE.insertElement('acronym');
|
17
|
+
tinyMCEPopup.close();
|
18
|
+
}
|
19
|
+
|
20
|
+
function removeAcronym() {
|
21
|
+
SXE.removeElement('acronym');
|
22
|
+
tinyMCEPopup.close();
|
23
|
+
}
|
24
|
+
|
25
|
+
tinyMCEPopup.onInit.add(init);
|
@@ -0,0 +1,123 @@
|
|
1
|
+
/**
|
2
|
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3
|
+
*
|
4
|
+
* @author Moxiecode - based on work by Andrew Tetlaw
|
5
|
+
* @copyright Copyright � 2004-2006, Moxiecode Systems AB, All rights reserved.
|
6
|
+
*/
|
7
|
+
|
8
|
+
function init() {
|
9
|
+
tinyMCEPopup.resizeToInnerSize();
|
10
|
+
var inst = tinyMCEPopup.editor;
|
11
|
+
var dom = inst.dom;
|
12
|
+
var elm = inst.selection.getNode();
|
13
|
+
var f = document.forms[0];
|
14
|
+
var onclick = dom.getAttrib(elm, 'onclick');
|
15
|
+
|
16
|
+
setFormValue('title', dom.getAttrib(elm, 'title'));
|
17
|
+
setFormValue('id', dom.getAttrib(elm, 'id'));
|
18
|
+
setFormValue('style', dom.getAttrib(elm, "style"));
|
19
|
+
setFormValue('dir', dom.getAttrib(elm, 'dir'));
|
20
|
+
setFormValue('lang', dom.getAttrib(elm, 'lang'));
|
21
|
+
setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
|
22
|
+
setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
|
23
|
+
setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
|
24
|
+
setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
|
25
|
+
setFormValue('onclick', onclick);
|
26
|
+
setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
|
27
|
+
setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
|
28
|
+
setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
|
29
|
+
setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
|
30
|
+
setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
|
31
|
+
setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
|
32
|
+
setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
|
33
|
+
setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
|
34
|
+
setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
|
35
|
+
className = dom.getAttrib(elm, 'class');
|
36
|
+
|
37
|
+
addClassesToList('classlist', 'advlink_styles');
|
38
|
+
selectByValue(f, 'classlist', className, true);
|
39
|
+
|
40
|
+
TinyMCE_EditableSelects.init();
|
41
|
+
}
|
42
|
+
|
43
|
+
function setFormValue(name, value) {
|
44
|
+
if(value && document.forms[0].elements[name]){
|
45
|
+
document.forms[0].elements[name].value = value;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
function insertAction() {
|
50
|
+
var inst = tinyMCEPopup.editor;
|
51
|
+
var elm = inst.selection.getNode();
|
52
|
+
|
53
|
+
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
54
|
+
setAllAttribs(elm);
|
55
|
+
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
56
|
+
tinyMCEPopup.close();
|
57
|
+
}
|
58
|
+
|
59
|
+
function setAttrib(elm, attrib, value) {
|
60
|
+
var formObj = document.forms[0];
|
61
|
+
var valueElm = formObj.elements[attrib.toLowerCase()];
|
62
|
+
var inst = tinyMCEPopup.editor;
|
63
|
+
var dom = inst.dom;
|
64
|
+
|
65
|
+
if (typeof(value) == "undefined" || value == null) {
|
66
|
+
value = "";
|
67
|
+
|
68
|
+
if (valueElm)
|
69
|
+
value = valueElm.value;
|
70
|
+
}
|
71
|
+
|
72
|
+
if (value != "") {
|
73
|
+
dom.setAttrib(elm, attrib.toLowerCase(), value);
|
74
|
+
|
75
|
+
if (attrib == "style")
|
76
|
+
attrib = "style.cssText";
|
77
|
+
|
78
|
+
if (attrib.substring(0, 2) == 'on')
|
79
|
+
value = 'return true;' + value;
|
80
|
+
|
81
|
+
if (attrib == "class")
|
82
|
+
attrib = "className";
|
83
|
+
|
84
|
+
elm[attrib]=value;
|
85
|
+
} else
|
86
|
+
elm.removeAttribute(attrib);
|
87
|
+
}
|
88
|
+
|
89
|
+
function setAllAttribs(elm) {
|
90
|
+
var f = document.forms[0];
|
91
|
+
|
92
|
+
setAttrib(elm, 'title');
|
93
|
+
setAttrib(elm, 'id');
|
94
|
+
setAttrib(elm, 'style');
|
95
|
+
setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
|
96
|
+
setAttrib(elm, 'dir');
|
97
|
+
setAttrib(elm, 'lang');
|
98
|
+
setAttrib(elm, 'tabindex');
|
99
|
+
setAttrib(elm, 'accesskey');
|
100
|
+
setAttrib(elm, 'onfocus');
|
101
|
+
setAttrib(elm, 'onblur');
|
102
|
+
setAttrib(elm, 'onclick');
|
103
|
+
setAttrib(elm, 'ondblclick');
|
104
|
+
setAttrib(elm, 'onmousedown');
|
105
|
+
setAttrib(elm, 'onmouseup');
|
106
|
+
setAttrib(elm, 'onmouseover');
|
107
|
+
setAttrib(elm, 'onmousemove');
|
108
|
+
setAttrib(elm, 'onmouseout');
|
109
|
+
setAttrib(elm, 'onkeypress');
|
110
|
+
setAttrib(elm, 'onkeydown');
|
111
|
+
setAttrib(elm, 'onkeyup');
|
112
|
+
|
113
|
+
// Refresh in old MSIE
|
114
|
+
// if (tinyMCE.isMSIE5)
|
115
|
+
// elm.outerHTML = elm.outerHTML;
|
116
|
+
}
|
117
|
+
|
118
|
+
function insertAttribute() {
|
119
|
+
tinyMCEPopup.close();
|
120
|
+
}
|
121
|
+
|
122
|
+
tinyMCEPopup.onInit.add(init);
|
123
|
+
tinyMCEPopup.requireLangPack();
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3
|
+
*
|
4
|
+
* @author Moxiecode - based on work by Andrew Tetlaw
|
5
|
+
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
6
|
+
*/
|
7
|
+
|
8
|
+
function init() {
|
9
|
+
SXE.initElementDialog('cite');
|
10
|
+
if (SXE.currentAction == "update") {
|
11
|
+
SXE.showRemoveButton();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
function insertCite() {
|
16
|
+
SXE.insertElement('cite');
|
17
|
+
tinyMCEPopup.close();
|
18
|
+
}
|
19
|
+
|
20
|
+
function removeCite() {
|
21
|
+
SXE.removeElement('cite');
|
22
|
+
tinyMCEPopup.close();
|
23
|
+
}
|
24
|
+
|
25
|
+
tinyMCEPopup.onInit.add(init);
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/**
|
2
|
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3
|
+
*
|
4
|
+
* @author Moxiecode - based on work by Andrew Tetlaw
|
5
|
+
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
6
|
+
*/
|
7
|
+
|
8
|
+
function init() {
|
9
|
+
SXE.initElementDialog('del');
|
10
|
+
if (SXE.currentAction == "update") {
|
11
|
+
setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
|
12
|
+
setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
|
13
|
+
SXE.showRemoveButton();
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
function setElementAttribs(elm) {
|
18
|
+
setAllCommonAttribs(elm);
|
19
|
+
setAttrib(elm, 'datetime');
|
20
|
+
setAttrib(elm, 'cite');
|
21
|
+
}
|
22
|
+
|
23
|
+
function insertDel() {
|
24
|
+
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
|
25
|
+
|
26
|
+
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
27
|
+
if (elm == null) {
|
28
|
+
var s = SXE.inst.selection.getContent();
|
29
|
+
if(s.length > 0) {
|
30
|
+
insertInlineElement('del');
|
31
|
+
var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';});
|
32
|
+
for (var i=0; i<elementArray.length; i++) {
|
33
|
+
var elm = elementArray[i];
|
34
|
+
setElementAttribs(elm);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
} else {
|
38
|
+
setElementAttribs(elm);
|
39
|
+
}
|
40
|
+
tinyMCEPopup.editor.nodeChanged();
|
41
|
+
tinyMCEPopup.execCommand('mceEndUndoLevel');
|
42
|
+
tinyMCEPopup.close();
|
43
|
+
}
|
44
|
+
|
45
|
+
function insertInlineElement(en) {
|
46
|
+
var ed = tinyMCEPopup.editor, dom = ed.dom;
|
47
|
+
|
48
|
+
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
49
|
+
tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
|
50
|
+
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
51
|
+
dom.replace(dom.create(en), n, 1);
|
52
|
+
});
|
53
|
+
}
|
54
|
+
|
55
|
+
function removeDel() {
|
56
|
+
SXE.removeElement('del');
|
57
|
+
tinyMCEPopup.close();
|
58
|
+
}
|
59
|
+
|
60
|
+
tinyMCEPopup.onInit.add(init);
|
data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
/**
|
2
|
+
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
3
|
+
*
|
4
|
+
* @author Moxiecode - based on work by Andrew Tetlaw
|
5
|
+
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
6
|
+
*/
|
7
|
+
|
8
|
+
tinyMCEPopup.requireLangPack();
|
9
|
+
|
10
|
+
function initCommonAttributes(elm) {
|
11
|
+
var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
|
12
|
+
|
13
|
+
// Setup form data for common element attributes
|
14
|
+
setFormValue('title', dom.getAttrib(elm, 'title'));
|
15
|
+
setFormValue('id', dom.getAttrib(elm, 'id'));
|
16
|
+
selectByValue(formObj, 'class', dom.getAttrib(elm, 'class'), true);
|
17
|
+
setFormValue('style', dom.getAttrib(elm, 'style'));
|
18
|
+
selectByValue(formObj, 'dir', dom.getAttrib(elm, 'dir'));
|
19
|
+
setFormValue('lang', dom.getAttrib(elm, 'lang'));
|
20
|
+
setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
|
21
|
+
setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
|
22
|
+
setFormValue('onclick', dom.getAttrib(elm, 'onclick'));
|
23
|
+
setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
|
24
|
+
setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
|
25
|
+
setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
|
26
|
+
setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
|
27
|
+
setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
|
28
|
+
setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
|
29
|
+
setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
|
30
|
+
setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
|
31
|
+
setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
|
32
|
+
}
|
33
|
+
|
34
|
+
function setFormValue(name, value) {
|
35
|
+
if(document.forms[0].elements[name]) document.forms[0].elements[name].value = value;
|
36
|
+
}
|
37
|
+
|
38
|
+
function insertDateTime(id) {
|
39
|
+
document.getElementById(id).value = getDateTime(new Date(), "%Y-%m-%dT%H:%M:%S");
|
40
|
+
}
|
41
|
+
|
42
|
+
function getDateTime(d, fmt) {
|
43
|
+
fmt = fmt.replace("%D", "%m/%d/%y");
|
44
|
+
fmt = fmt.replace("%r", "%I:%M:%S %p");
|
45
|
+
fmt = fmt.replace("%Y", "" + d.getFullYear());
|
46
|
+
fmt = fmt.replace("%y", "" + d.getYear());
|
47
|
+
fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
|
48
|
+
fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
|
49
|
+
fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
|
50
|
+
fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
|
51
|
+
fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
|
52
|
+
fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
|
53
|
+
fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
|
54
|
+
fmt = fmt.replace("%%", "%");
|
55
|
+
|
56
|
+
return fmt;
|
57
|
+
}
|
58
|
+
|
59
|
+
function addZeros(value, len) {
|
60
|
+
var i;
|
61
|
+
|
62
|
+
value = "" + value;
|
63
|
+
|
64
|
+
if (value.length < len) {
|
65
|
+
for (i=0; i<(len-value.length); i++)
|
66
|
+
value = "0" + value;
|
67
|
+
}
|
68
|
+
|
69
|
+
return value;
|
70
|
+
}
|
71
|
+
|
72
|
+
function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
|
73
|
+
if (!form_obj || !form_obj.elements[field_name])
|
74
|
+
return;
|
75
|
+
|
76
|
+
var sel = form_obj.elements[field_name];
|
77
|
+
|
78
|
+
var found = false;
|
79
|
+
for (var i=0; i<sel.options.length; i++) {
|
80
|
+
var option = sel.options[i];
|
81
|
+
|
82
|
+
if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
|
83
|
+
option.selected = true;
|
84
|
+
found = true;
|
85
|
+
} else
|
86
|
+
option.selected = false;
|
87
|
+
}
|
88
|
+
|
89
|
+
if (!found && add_custom && value != '') {
|
90
|
+
var option = new Option('Value: ' + value, value);
|
91
|
+
option.selected = true;
|
92
|
+
sel.options[sel.options.length] = option;
|
93
|
+
}
|
94
|
+
|
95
|
+
return found;
|
96
|
+
}
|
97
|
+
|
98
|
+
function setAttrib(elm, attrib, value) {
|
99
|
+
var formObj = document.forms[0];
|
100
|
+
var valueElm = formObj.elements[attrib.toLowerCase()];
|
101
|
+
tinyMCEPopup.editor.dom.setAttrib(elm, attrib, value || valueElm.value);
|
102
|
+
}
|
103
|
+
|
104
|
+
function setAllCommonAttribs(elm) {
|
105
|
+
setAttrib(elm, 'title');
|
106
|
+
setAttrib(elm, 'id');
|
107
|
+
setAttrib(elm, 'class');
|
108
|
+
setAttrib(elm, 'style');
|
109
|
+
setAttrib(elm, 'dir');
|
110
|
+
setAttrib(elm, 'lang');
|
111
|
+
/*setAttrib(elm, 'onfocus');
|
112
|
+
setAttrib(elm, 'onblur');
|
113
|
+
setAttrib(elm, 'onclick');
|
114
|
+
setAttrib(elm, 'ondblclick');
|
115
|
+
setAttrib(elm, 'onmousedown');
|
116
|
+
setAttrib(elm, 'onmouseup');
|
117
|
+
setAttrib(elm, 'onmouseover');
|
118
|
+
setAttrib(elm, 'onmousemove');
|
119
|
+
setAttrib(elm, 'onmouseout');
|
120
|
+
setAttrib(elm, 'onkeypress');
|
121
|
+
setAttrib(elm, 'onkeydown');
|
122
|
+
setAttrib(elm, 'onkeyup');*/
|
123
|
+
}
|
124
|
+
|
125
|
+
SXE = {
|
126
|
+
currentAction : "insert",
|
127
|
+
inst : tinyMCEPopup.editor,
|
128
|
+
updateElement : null
|
129
|
+
}
|
130
|
+
|
131
|
+
SXE.focusElement = SXE.inst.selection.getNode();
|
132
|
+
|
133
|
+
SXE.initElementDialog = function(element_name) {
|
134
|
+
addClassesToList('class', 'xhtmlxtras_styles');
|
135
|
+
TinyMCE_EditableSelects.init();
|
136
|
+
|
137
|
+
element_name = element_name.toLowerCase();
|
138
|
+
var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
|
139
|
+
if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) {
|
140
|
+
SXE.currentAction = "update";
|
141
|
+
}
|
142
|
+
|
143
|
+
if (SXE.currentAction == "update") {
|
144
|
+
initCommonAttributes(elm);
|
145
|
+
SXE.updateElement = elm;
|
146
|
+
}
|
147
|
+
|
148
|
+
document.forms[0].insert.value = tinyMCEPopup.getLang(SXE.currentAction, 'Insert', true);
|
149
|
+
}
|
150
|
+
|
151
|
+
SXE.insertElement = function(element_name) {
|
152
|
+
var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName;
|
153
|
+
|
154
|
+
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
155
|
+
if (elm == null) {
|
156
|
+
var s = SXE.inst.selection.getContent();
|
157
|
+
if(s.length > 0) {
|
158
|
+
tagName = element_name;
|
159
|
+
|
160
|
+
if (tinymce.isIE && element_name.indexOf('html:') == 0)
|
161
|
+
element_name = element_name.substring(5).toLowerCase();
|
162
|
+
|
163
|
+
insertInlineElement(element_name);
|
164
|
+
var elementArray = tinymce.grep(SXE.inst.dom.select(element_name));
|
165
|
+
for (var i=0; i<elementArray.length; i++) {
|
166
|
+
var elm = elementArray[i];
|
167
|
+
|
168
|
+
if (SXE.inst.dom.getAttrib(elm, '_mce_new')) {
|
169
|
+
elm.id = '';
|
170
|
+
elm.setAttribute('id', '');
|
171
|
+
elm.removeAttribute('id');
|
172
|
+
elm.removeAttribute('_mce_new');
|
173
|
+
|
174
|
+
setAllCommonAttribs(elm);
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
} else {
|
179
|
+
setAllCommonAttribs(elm);
|
180
|
+
}
|
181
|
+
SXE.inst.nodeChanged();
|
182
|
+
tinyMCEPopup.execCommand('mceEndUndoLevel');
|
183
|
+
}
|
184
|
+
|
185
|
+
SXE.removeElement = function(element_name){
|
186
|
+
element_name = element_name.toLowerCase();
|
187
|
+
elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
|
188
|
+
if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
|
189
|
+
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
190
|
+
tinyMCE.execCommand('mceRemoveNode', false, elm);
|
191
|
+
SXE.inst.nodeChanged();
|
192
|
+
tinyMCEPopup.execCommand('mceEndUndoLevel');
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
SXE.showRemoveButton = function() {
|
197
|
+
document.getElementById("remove").style.display = 'block';
|
198
|
+
}
|
199
|
+
|
200
|
+
SXE.containsClass = function(elm,cl) {
|
201
|
+
return (elm.className.indexOf(cl) > -1) ? true : false;
|
202
|
+
}
|
203
|
+
|
204
|
+
SXE.removeClass = function(elm,cl) {
|
205
|
+
if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) {
|
206
|
+
return true;
|
207
|
+
}
|
208
|
+
var classNames = elm.className.split(" ");
|
209
|
+
var newClassNames = "";
|
210
|
+
for (var x = 0, cnl = classNames.length; x < cnl; x++) {
|
211
|
+
if (classNames[x] != cl) {
|
212
|
+
newClassNames += (classNames[x] + " ");
|
213
|
+
}
|
214
|
+
}
|
215
|
+
elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end
|
216
|
+
}
|
217
|
+
|
218
|
+
SXE.addClass = function(elm,cl) {
|
219
|
+
if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl;
|
220
|
+
return true;
|
221
|
+
}
|
222
|
+
|
223
|
+
function insertInlineElement(en) {
|
224
|
+
var ed = tinyMCEPopup.editor, dom = ed.dom;
|
225
|
+
|
226
|
+
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
227
|
+
tinymce.each(dom.select('span,font'), function(n) {
|
228
|
+
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
229
|
+
dom.replace(dom.create(en, {_mce_new : 1}), n, 1);
|
230
|
+
});
|
231
|
+
}
|