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,440 @@
|
|
1
|
+
tinyMCEPopup.requireLangPack();
|
2
|
+
|
3
|
+
var action, orgTableWidth, orgTableHeight, dom = tinyMCEPopup.editor.dom;
|
4
|
+
|
5
|
+
function insertTable() {
|
6
|
+
var formObj = document.forms[0];
|
7
|
+
var inst = tinyMCEPopup.editor, dom = inst.dom;
|
8
|
+
var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className, caption, frame, rules;
|
9
|
+
var html = '', capEl, elm;
|
10
|
+
var cellLimit, rowLimit, colLimit;
|
11
|
+
|
12
|
+
tinyMCEPopup.restoreSelection();
|
13
|
+
|
14
|
+
if (!AutoValidator.validate(formObj)) {
|
15
|
+
tinyMCEPopup.alert(inst.getLang('invalid_data'));
|
16
|
+
return false;
|
17
|
+
}
|
18
|
+
|
19
|
+
elm = dom.getParent(inst.selection.getNode(), 'table');
|
20
|
+
|
21
|
+
// Get form data
|
22
|
+
cols = formObj.elements['cols'].value;
|
23
|
+
rows = formObj.elements['rows'].value;
|
24
|
+
border = formObj.elements['border'].value != "" ? formObj.elements['border'].value : 0;
|
25
|
+
cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : "";
|
26
|
+
cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : "";
|
27
|
+
align = getSelectValue(formObj, "align");
|
28
|
+
frame = getSelectValue(formObj, "tframe");
|
29
|
+
rules = getSelectValue(formObj, "rules");
|
30
|
+
width = formObj.elements['width'].value;
|
31
|
+
height = formObj.elements['height'].value;
|
32
|
+
bordercolor = formObj.elements['bordercolor'].value;
|
33
|
+
bgcolor = formObj.elements['bgcolor'].value;
|
34
|
+
className = getSelectValue(formObj, "class");
|
35
|
+
id = formObj.elements['id'].value;
|
36
|
+
summary = formObj.elements['summary'].value;
|
37
|
+
style = formObj.elements['style'].value;
|
38
|
+
dir = formObj.elements['dir'].value;
|
39
|
+
lang = formObj.elements['lang'].value;
|
40
|
+
background = formObj.elements['backgroundimage'].value;
|
41
|
+
caption = formObj.elements['caption'].checked;
|
42
|
+
|
43
|
+
cellLimit = tinyMCEPopup.getParam('table_cell_limit', false);
|
44
|
+
rowLimit = tinyMCEPopup.getParam('table_row_limit', false);
|
45
|
+
colLimit = tinyMCEPopup.getParam('table_col_limit', false);
|
46
|
+
|
47
|
+
// Validate table size
|
48
|
+
if (colLimit && cols > colLimit) {
|
49
|
+
tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit));
|
50
|
+
return false;
|
51
|
+
} else if (rowLimit && rows > rowLimit) {
|
52
|
+
tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit));
|
53
|
+
return false;
|
54
|
+
} else if (cellLimit && cols * rows > cellLimit) {
|
55
|
+
tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit));
|
56
|
+
return false;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Update table
|
60
|
+
if (action == "update") {
|
61
|
+
inst.execCommand('mceBeginUndoLevel');
|
62
|
+
|
63
|
+
dom.setAttrib(elm, 'cellPadding', cellpadding, true);
|
64
|
+
dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
|
65
|
+
dom.setAttrib(elm, 'border', border);
|
66
|
+
dom.setAttrib(elm, 'align', align);
|
67
|
+
dom.setAttrib(elm, 'frame', frame);
|
68
|
+
dom.setAttrib(elm, 'rules', rules);
|
69
|
+
dom.setAttrib(elm, 'class', className);
|
70
|
+
dom.setAttrib(elm, 'style', style);
|
71
|
+
dom.setAttrib(elm, 'id', id);
|
72
|
+
dom.setAttrib(elm, 'summary', summary);
|
73
|
+
dom.setAttrib(elm, 'dir', dir);
|
74
|
+
dom.setAttrib(elm, 'lang', lang);
|
75
|
+
|
76
|
+
capEl = inst.dom.select('caption', elm)[0];
|
77
|
+
|
78
|
+
if (capEl && !caption)
|
79
|
+
capEl.parentNode.removeChild(capEl);
|
80
|
+
|
81
|
+
if (!capEl && caption) {
|
82
|
+
capEl = elm.ownerDocument.createElement('caption');
|
83
|
+
|
84
|
+
if (!tinymce.isIE)
|
85
|
+
capEl.innerHTML = '<br mce_bogus="1"/>';
|
86
|
+
|
87
|
+
elm.insertBefore(capEl, elm.firstChild);
|
88
|
+
}
|
89
|
+
|
90
|
+
if (width && inst.settings.inline_styles) {
|
91
|
+
dom.setStyle(elm, 'width', width);
|
92
|
+
dom.setAttrib(elm, 'width', '');
|
93
|
+
} else {
|
94
|
+
dom.setAttrib(elm, 'width', width, true);
|
95
|
+
dom.setStyle(elm, 'width', '');
|
96
|
+
}
|
97
|
+
|
98
|
+
// Remove these since they are not valid XHTML
|
99
|
+
dom.setAttrib(elm, 'borderColor', '');
|
100
|
+
dom.setAttrib(elm, 'bgColor', '');
|
101
|
+
dom.setAttrib(elm, 'background', '');
|
102
|
+
|
103
|
+
if (height && inst.settings.inline_styles) {
|
104
|
+
dom.setStyle(elm, 'height', height);
|
105
|
+
dom.setAttrib(elm, 'height', '');
|
106
|
+
} else {
|
107
|
+
dom.setAttrib(elm, 'height', height, true);
|
108
|
+
dom.setStyle(elm, 'height', '');
|
109
|
+
}
|
110
|
+
|
111
|
+
if (background != '')
|
112
|
+
elm.style.backgroundImage = "url('" + background + "')";
|
113
|
+
else
|
114
|
+
elm.style.backgroundImage = '';
|
115
|
+
|
116
|
+
/* if (tinyMCEPopup.getParam("inline_styles")) {
|
117
|
+
if (width != '')
|
118
|
+
elm.style.width = getCSSSize(width);
|
119
|
+
}*/
|
120
|
+
|
121
|
+
if (bordercolor != "") {
|
122
|
+
elm.style.borderColor = bordercolor;
|
123
|
+
elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle;
|
124
|
+
elm.style.borderWidth = border == "" ? "1px" : border;
|
125
|
+
} else
|
126
|
+
elm.style.borderColor = '';
|
127
|
+
|
128
|
+
elm.style.backgroundColor = bgcolor;
|
129
|
+
elm.style.height = getCSSSize(height);
|
130
|
+
|
131
|
+
inst.addVisual();
|
132
|
+
|
133
|
+
// Fix for stange MSIE align bug
|
134
|
+
//elm.outerHTML = elm.outerHTML;
|
135
|
+
|
136
|
+
inst.nodeChanged();
|
137
|
+
inst.execCommand('mceEndUndoLevel');
|
138
|
+
|
139
|
+
// Repaint if dimensions changed
|
140
|
+
if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
|
141
|
+
inst.execCommand('mceRepaint');
|
142
|
+
|
143
|
+
tinyMCEPopup.close();
|
144
|
+
return true;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Create new table
|
148
|
+
html += '<table';
|
149
|
+
|
150
|
+
html += makeAttrib('id', id);
|
151
|
+
html += makeAttrib('border', border);
|
152
|
+
html += makeAttrib('cellpadding', cellpadding);
|
153
|
+
html += makeAttrib('cellspacing', cellspacing);
|
154
|
+
|
155
|
+
if (width && inst.settings.inline_styles) {
|
156
|
+
if (style)
|
157
|
+
style += '; ';
|
158
|
+
|
159
|
+
// Force px
|
160
|
+
if (/^[0-9\.]+$/.test(width))
|
161
|
+
width += 'px';
|
162
|
+
|
163
|
+
style += 'width: ' + width;
|
164
|
+
} else
|
165
|
+
html += makeAttrib('width', width);
|
166
|
+
|
167
|
+
/* if (height) {
|
168
|
+
if (style)
|
169
|
+
style += '; ';
|
170
|
+
|
171
|
+
style += 'height: ' + height;
|
172
|
+
}*/
|
173
|
+
|
174
|
+
//html += makeAttrib('height', height);
|
175
|
+
//html += makeAttrib('bordercolor', bordercolor);
|
176
|
+
//html += makeAttrib('bgcolor', bgcolor);
|
177
|
+
html += makeAttrib('align', align);
|
178
|
+
html += makeAttrib('frame', frame);
|
179
|
+
html += makeAttrib('rules', rules);
|
180
|
+
html += makeAttrib('class', className);
|
181
|
+
html += makeAttrib('style', style);
|
182
|
+
html += makeAttrib('summary', summary);
|
183
|
+
html += makeAttrib('dir', dir);
|
184
|
+
html += makeAttrib('lang', lang);
|
185
|
+
html += '>';
|
186
|
+
|
187
|
+
if (caption) {
|
188
|
+
if (!tinymce.isIE)
|
189
|
+
html += '<caption><br mce_bogus="1"/></caption>';
|
190
|
+
else
|
191
|
+
html += '<caption></caption>';
|
192
|
+
}
|
193
|
+
|
194
|
+
for (var y=0; y<rows; y++) {
|
195
|
+
html += "<tr>";
|
196
|
+
|
197
|
+
for (var x=0; x<cols; x++) {
|
198
|
+
if (!tinymce.isIE)
|
199
|
+
html += '<td><br mce_bogus="1"/></td>';
|
200
|
+
else
|
201
|
+
html += '<td></td>';
|
202
|
+
}
|
203
|
+
|
204
|
+
html += "</tr>";
|
205
|
+
}
|
206
|
+
|
207
|
+
html += "</table>";
|
208
|
+
|
209
|
+
inst.execCommand('mceBeginUndoLevel');
|
210
|
+
|
211
|
+
// Move table
|
212
|
+
if (inst.settings.fix_table_elements) {
|
213
|
+
var bm = inst.selection.getBookmark(), patt = '';
|
214
|
+
|
215
|
+
inst.execCommand('mceInsertContent', false, '<br class="_mce_marker" />');
|
216
|
+
|
217
|
+
tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) {
|
218
|
+
if (patt)
|
219
|
+
patt += ',';
|
220
|
+
|
221
|
+
patt += n + ' ._mce_marker';
|
222
|
+
});
|
223
|
+
|
224
|
+
tinymce.each(inst.dom.select(patt), function(n) {
|
225
|
+
inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n);
|
226
|
+
});
|
227
|
+
|
228
|
+
dom.setOuterHTML(dom.select('._mce_marker')[0], html);
|
229
|
+
|
230
|
+
inst.selection.moveToBookmark(bm);
|
231
|
+
} else
|
232
|
+
inst.execCommand('mceInsertContent', false, html);
|
233
|
+
|
234
|
+
inst.addVisual();
|
235
|
+
inst.execCommand('mceEndUndoLevel');
|
236
|
+
|
237
|
+
tinyMCEPopup.close();
|
238
|
+
}
|
239
|
+
|
240
|
+
function makeAttrib(attrib, value) {
|
241
|
+
var formObj = document.forms[0];
|
242
|
+
var valueElm = formObj.elements[attrib];
|
243
|
+
|
244
|
+
if (typeof(value) == "undefined" || value == null) {
|
245
|
+
value = "";
|
246
|
+
|
247
|
+
if (valueElm)
|
248
|
+
value = valueElm.value;
|
249
|
+
}
|
250
|
+
|
251
|
+
if (value == "")
|
252
|
+
return "";
|
253
|
+
|
254
|
+
// XML encode it
|
255
|
+
value = value.replace(/&/g, '&');
|
256
|
+
value = value.replace(/\"/g, '"');
|
257
|
+
value = value.replace(/</g, '<');
|
258
|
+
value = value.replace(/>/g, '>');
|
259
|
+
|
260
|
+
return ' ' + attrib + '="' + value + '"';
|
261
|
+
}
|
262
|
+
|
263
|
+
function init() {
|
264
|
+
tinyMCEPopup.resizeToInnerSize();
|
265
|
+
|
266
|
+
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
267
|
+
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
268
|
+
document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
|
269
|
+
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
270
|
+
|
271
|
+
var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', '');
|
272
|
+
var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
|
273
|
+
var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules, frame;
|
274
|
+
var inst = tinyMCEPopup.editor, dom = inst.dom;
|
275
|
+
var formObj = document.forms[0];
|
276
|
+
var elm = dom.getParent(inst.selection.getNode(), "table");
|
277
|
+
|
278
|
+
action = tinyMCEPopup.getWindowArg('action');
|
279
|
+
|
280
|
+
if (!action)
|
281
|
+
action = elm ? "update" : "insert";
|
282
|
+
|
283
|
+
if (elm && action != "insert") {
|
284
|
+
var rowsAr = elm.rows;
|
285
|
+
var cols = 0;
|
286
|
+
for (var i=0; i<rowsAr.length; i++)
|
287
|
+
if (rowsAr[i].cells.length > cols)
|
288
|
+
cols = rowsAr[i].cells.length;
|
289
|
+
|
290
|
+
cols = cols;
|
291
|
+
rows = rowsAr.length;
|
292
|
+
|
293
|
+
st = dom.parseStyle(dom.getAttrib(elm, "style"));
|
294
|
+
border = trimSize(getStyle(elm, 'border', 'borderWidth'));
|
295
|
+
cellpadding = dom.getAttrib(elm, 'cellpadding', "");
|
296
|
+
cellspacing = dom.getAttrib(elm, 'cellspacing', "");
|
297
|
+
width = trimSize(getStyle(elm, 'width', 'width'));
|
298
|
+
height = trimSize(getStyle(elm, 'height', 'height'));
|
299
|
+
bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));
|
300
|
+
bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));
|
301
|
+
align = dom.getAttrib(elm, 'align', align);
|
302
|
+
frame = dom.getAttrib(elm, 'frame');
|
303
|
+
rules = dom.getAttrib(elm, 'rules');
|
304
|
+
className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, ''));
|
305
|
+
id = dom.getAttrib(elm, 'id');
|
306
|
+
summary = dom.getAttrib(elm, 'summary');
|
307
|
+
style = dom.serializeStyle(st);
|
308
|
+
dir = dom.getAttrib(elm, 'dir');
|
309
|
+
lang = dom.getAttrib(elm, 'lang');
|
310
|
+
background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
311
|
+
formObj.caption.checked = elm.getElementsByTagName('caption').length > 0;
|
312
|
+
|
313
|
+
orgTableWidth = width;
|
314
|
+
orgTableHeight = height;
|
315
|
+
|
316
|
+
action = "update";
|
317
|
+
formObj.insert.value = inst.getLang('update');
|
318
|
+
}
|
319
|
+
|
320
|
+
addClassesToList('class', "table_styles");
|
321
|
+
TinyMCE_EditableSelects.init();
|
322
|
+
|
323
|
+
// Update form
|
324
|
+
selectByValue(formObj, 'align', align);
|
325
|
+
selectByValue(formObj, 'tframe', frame);
|
326
|
+
selectByValue(formObj, 'rules', rules);
|
327
|
+
selectByValue(formObj, 'class', className, true, true);
|
328
|
+
formObj.cols.value = cols;
|
329
|
+
formObj.rows.value = rows;
|
330
|
+
formObj.border.value = border;
|
331
|
+
formObj.cellpadding.value = cellpadding;
|
332
|
+
formObj.cellspacing.value = cellspacing;
|
333
|
+
formObj.width.value = width;
|
334
|
+
formObj.height.value = height;
|
335
|
+
formObj.bordercolor.value = bordercolor;
|
336
|
+
formObj.bgcolor.value = bgcolor;
|
337
|
+
formObj.id.value = id;
|
338
|
+
formObj.summary.value = summary;
|
339
|
+
formObj.style.value = style;
|
340
|
+
formObj.dir.value = dir;
|
341
|
+
formObj.lang.value = lang;
|
342
|
+
formObj.backgroundimage.value = background;
|
343
|
+
|
344
|
+
updateColor('bordercolor_pick', 'bordercolor');
|
345
|
+
updateColor('bgcolor_pick', 'bgcolor');
|
346
|
+
|
347
|
+
// Resize some elements
|
348
|
+
if (isVisible('backgroundimagebrowser'))
|
349
|
+
document.getElementById('backgroundimage').style.width = '180px';
|
350
|
+
|
351
|
+
// Disable some fields in update mode
|
352
|
+
if (action == "update") {
|
353
|
+
formObj.cols.disabled = true;
|
354
|
+
formObj.rows.disabled = true;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
function changedSize() {
|
359
|
+
var formObj = document.forms[0];
|
360
|
+
var st = dom.parseStyle(formObj.style.value);
|
361
|
+
|
362
|
+
/* var width = formObj.width.value;
|
363
|
+
if (width != "")
|
364
|
+
st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : "";
|
365
|
+
else
|
366
|
+
st['width'] = "";*/
|
367
|
+
|
368
|
+
var height = formObj.height.value;
|
369
|
+
if (height != "")
|
370
|
+
st['height'] = getCSSSize(height);
|
371
|
+
else
|
372
|
+
st['height'] = "";
|
373
|
+
|
374
|
+
formObj.style.value = dom.serializeStyle(st);
|
375
|
+
}
|
376
|
+
|
377
|
+
function changedBackgroundImage() {
|
378
|
+
var formObj = document.forms[0];
|
379
|
+
var st = dom.parseStyle(formObj.style.value);
|
380
|
+
|
381
|
+
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
382
|
+
|
383
|
+
formObj.style.value = dom.serializeStyle(st);
|
384
|
+
}
|
385
|
+
|
386
|
+
function changedBorder() {
|
387
|
+
var formObj = document.forms[0];
|
388
|
+
var st = dom.parseStyle(formObj.style.value);
|
389
|
+
|
390
|
+
// Update border width if the element has a color
|
391
|
+
if (formObj.border.value != "" && formObj.bordercolor.value != "")
|
392
|
+
st['border-width'] = formObj.border.value + "px";
|
393
|
+
|
394
|
+
formObj.style.value = dom.serializeStyle(st);
|
395
|
+
}
|
396
|
+
|
397
|
+
function changedColor() {
|
398
|
+
var formObj = document.forms[0];
|
399
|
+
var st = dom.parseStyle(formObj.style.value);
|
400
|
+
|
401
|
+
st['background-color'] = formObj.bgcolor.value;
|
402
|
+
|
403
|
+
if (formObj.bordercolor.value != "") {
|
404
|
+
st['border-color'] = formObj.bordercolor.value;
|
405
|
+
|
406
|
+
// Add border-width if it's missing
|
407
|
+
if (!st['border-width'])
|
408
|
+
st['border-width'] = formObj.border.value == "" ? "1px" : formObj.border.value + "px";
|
409
|
+
}
|
410
|
+
|
411
|
+
formObj.style.value = dom.serializeStyle(st);
|
412
|
+
}
|
413
|
+
|
414
|
+
function changedStyle() {
|
415
|
+
var formObj = document.forms[0];
|
416
|
+
var st = dom.parseStyle(formObj.style.value);
|
417
|
+
|
418
|
+
if (st['background-image'])
|
419
|
+
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
|
420
|
+
else
|
421
|
+
formObj.backgroundimage.value = '';
|
422
|
+
|
423
|
+
if (st['width'])
|
424
|
+
formObj.width.value = trimSize(st['width']);
|
425
|
+
|
426
|
+
if (st['height'])
|
427
|
+
formObj.height.value = trimSize(st['height']);
|
428
|
+
|
429
|
+
if (st['background-color']) {
|
430
|
+
formObj.bgcolor.value = st['background-color'];
|
431
|
+
updateColor('bgcolor_pick','bgcolor');
|
432
|
+
}
|
433
|
+
|
434
|
+
if (st['border-color']) {
|
435
|
+
formObj.bordercolor.value = st['border-color'];
|
436
|
+
updateColor('bordercolor_pick','bordercolor');
|
437
|
+
}
|
438
|
+
}
|
439
|
+
|
440
|
+
tinyMCEPopup.onInit.add(init);
|
@@ -0,0 +1,74 @@
|
|
1
|
+
tinyMCE.addI18n('en.table_dlg',{
|
2
|
+
general_tab:"General",
|
3
|
+
advanced_tab:"Advanced",
|
4
|
+
general_props:"General properties",
|
5
|
+
advanced_props:"Advanced properties",
|
6
|
+
rowtype:"Row in table part",
|
7
|
+
title:"Insert/Modify table",
|
8
|
+
width:"Width",
|
9
|
+
height:"Height",
|
10
|
+
cols:"Cols",
|
11
|
+
rows:"Rows",
|
12
|
+
cellspacing:"Cellspacing",
|
13
|
+
cellpadding:"Cellpadding",
|
14
|
+
border:"Border",
|
15
|
+
align:"Alignment",
|
16
|
+
align_default:"Default",
|
17
|
+
align_left:"Left",
|
18
|
+
align_right:"Right",
|
19
|
+
align_middle:"Center",
|
20
|
+
row_title:"Table row properties",
|
21
|
+
cell_title:"Table cell properties",
|
22
|
+
cell_type:"Cell type",
|
23
|
+
valign:"Vertical alignment",
|
24
|
+
align_top:"Top",
|
25
|
+
align_bottom:"Bottom",
|
26
|
+
bordercolor:"Border color",
|
27
|
+
bgcolor:"Background color",
|
28
|
+
merge_cells_title:"Merge table cells",
|
29
|
+
id:"Id",
|
30
|
+
style:"Style",
|
31
|
+
langdir:"Language direction",
|
32
|
+
langcode:"Language code",
|
33
|
+
mime:"Target MIME type",
|
34
|
+
ltr:"Left to right",
|
35
|
+
rtl:"Right to left",
|
36
|
+
bgimage:"Background image",
|
37
|
+
summary:"Summary",
|
38
|
+
td:"Data",
|
39
|
+
th:"Header",
|
40
|
+
cell_cell:"Update current cell",
|
41
|
+
cell_row:"Update all cells in row",
|
42
|
+
cell_all:"Update all cells in table",
|
43
|
+
row_row:"Update current row",
|
44
|
+
row_odd:"Update odd rows in table",
|
45
|
+
row_even:"Update even rows in table",
|
46
|
+
row_all:"Update all rows in table",
|
47
|
+
thead:"Table Head",
|
48
|
+
tbody:"Table Body",
|
49
|
+
tfoot:"Table Foot",
|
50
|
+
scope:"Scope",
|
51
|
+
rowgroup:"Row Group",
|
52
|
+
colgroup:"Col Group",
|
53
|
+
col_limit:"You've exceeded the maximum number of columns of {$cols}.",
|
54
|
+
row_limit:"You've exceeded the maximum number of rows of {$rows}.",
|
55
|
+
cell_limit:"You've exceeded the maximum number of cells of {$cells}.",
|
56
|
+
missing_scope:"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.",
|
57
|
+
caption:"Table caption",
|
58
|
+
frame:"Frame",
|
59
|
+
frame_none:"none",
|
60
|
+
frame_groups:"groups",
|
61
|
+
frame_rows:"rows",
|
62
|
+
frame_cols:"cols",
|
63
|
+
frame_all:"all",
|
64
|
+
rules:"Rules",
|
65
|
+
rules_void:"void",
|
66
|
+
rules_above:"above",
|
67
|
+
rules_below:"below",
|
68
|
+
rules_hsides:"hsides",
|
69
|
+
rules_lhs:"lhs",
|
70
|
+
rules_rhs:"rhs",
|
71
|
+
rules_vsides:"vsides",
|
72
|
+
rules_box:"box",
|
73
|
+
rules_border:"border"
|
74
|
+
});
|