locomotive-tinymce-rails 3.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +18 -0
- data/README.md +67 -0
- data/Rakefile +65 -0
- data/app/assets/javascripts/tinymce/preinit.js.erb +5 -0
- data/app/assets/javascripts/tinymce-jquery.js +3 -0
- data/app/assets/javascripts/tinymce.js +2 -0
- data/lib/tinymce/rails/engine.rb +9 -0
- data/lib/tinymce/rails/sprockets_monkeypatch.rb +13 -0
- data/lib/tinymce/rails/version.rb +7 -0
- data/lib/tinymce/rails.rb +3 -0
- data/lib/tinymce-rails.rb +1 -0
- data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +1 -0
- data/vendor/assets/javascripts/tinymce/langs/en.js +1 -0
- data/vendor/assets/javascripts/tinymce/license.txt +504 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/css/advhr.css +5 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +57 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/js/rule.js +43 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/rule.htm +58 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/css/advimage.css +13 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +50 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/image.htm +235 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/js/image.js +462 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/css/advlink.css +8 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +61 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/js/advlink.js +532 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/link.htm +338 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlist/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +176 -0
- data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +172 -0
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +137 -0
- data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +431 -0
- data/vendor/assets/javascripts/tinymce/plugins/autosave/langs/en.js +4 -0
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +120 -0
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +160 -0
- data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +82 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +43 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/emotions.htm +42 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/js/emotions.js +43 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/dialog.htm +22 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/editor_plugin_src.js +84 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/img/example.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/js/dialog.js +19 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/langs/en.js +3 -0
- data/vendor/assets/javascripts/tinymce/plugins/example/langs/en_dlg.js +3 -0
- data/vendor/assets/javascripts/tinymce/plugins/example_dependency/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/example_dependency/editor_plugin_src.js +50 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/css/fullpage.css +143 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +405 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/fullpage.htm +259 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/js/fullpage.js +232 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +159 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +110 -0
- data/vendor/assets/javascripts/tinymce/plugins/iespell/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +54 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +699 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/vendor/assets/javascripts/tinymce/plugins/inlinepopups/template.htm +387 -0
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +83 -0
- data/vendor/assets/javascripts/tinymce/plugins/layer/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/layer/editor_plugin_src.js +262 -0
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin_src.js +925 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/css/media.css +17 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin_src.js +890 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/js/embed.js +73 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/js/media.js +464 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/media.htm +922 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +54 -0
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +95 -0
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin_src.js +871 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/js/pastetext.js +36 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/js/pasteword.js +51 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/pastetext.htm +27 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/pasteword.htm +21 -0
- data/vendor/assets/javascripts/tinymce/plugins/preview/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/preview/editor_plugin_src.js +53 -0
- data/vendor/assets/javascripts/tinymce/plugins/preview/example.html +28 -0
- data/vendor/assets/javascripts/tinymce/plugins/preview/jscripts/embed.js +73 -0
- data/vendor/assets/javascripts/tinymce/plugins/preview/preview.html +17 -0
- data/vendor/assets/javascripts/tinymce/plugins/print/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/print/editor_plugin_src.js +34 -0
- data/vendor/assets/javascripts/tinymce/plugins/save/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/save/editor_plugin_src.js +101 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +61 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +142 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +100 -0
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/css/content.css +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +436 -0
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/img/wline.gif +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/css/props.css +13 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin_src.js +55 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/js/props.js +635 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/props.htm +840 -0
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +122 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/cell.htm +180 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/css/cell.css +17 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/css/row.css +25 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/css/table.css +13 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin_src.js +1408 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/js/cell.js +319 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/js/merge_cells.js +27 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/js/row.js +237 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/js/table.js +484 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/merge_cells.htm +32 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/row.htm +158 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/table.htm +188 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/blank.htm +12 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/css/template.css +23 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/editor_plugin_src.js +159 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/js/template.js +106 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/template.htm +31 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +83 -0
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +114 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +142 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +142 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +149 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +142 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/del.htm +162 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +162 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +28 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +28 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +111 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +28 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +53 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +229 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +53 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/about.htm +52 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/anchor.htm +26 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/charmap.htm +55 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/color_picker.htm +74 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template_src.js +1362 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/image.htm +80 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/trans.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/about.js +73 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js +43 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/charmap.js +363 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/image.js +251 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/link.js +153 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/link.htm +57 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/content.css +50 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/dialog.css +117 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/ui.css +214 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/content.css +24 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +105 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +102 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +48 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +117 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +217 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/source_editor.htm +25 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/editor_template.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/editor_template_src.js +84 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/en.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/default/content.css +25 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/default/ui.css +32 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/content.css +17 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +35 -0
- data/vendor/assets/javascripts/tinymce/tiny_mce.js +1 -0
- data/vendor/assets/javascripts/tinymce/tiny_mce_jquery.js +1 -0
- data/vendor/assets/javascripts/tinymce/tiny_mce_jquery_src.js +15905 -0
- data/vendor/assets/javascripts/tinymce/tiny_mce_popup.js +5 -0
- data/vendor/assets/javascripts/tinymce/tiny_mce_src.js +16728 -0
- data/vendor/assets/javascripts/tinymce/utils/editable_selects.js +70 -0
- data/vendor/assets/javascripts/tinymce/utils/form_utils.js +210 -0
- data/vendor/assets/javascripts/tinymce/utils/mctabs.js +162 -0
- data/vendor/assets/javascripts/tinymce/utils/validate.js +252 -0
- metadata +334 -0
@@ -0,0 +1,484 @@
|
|
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(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
|
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
|
+
dom.setAttrib(elm, 'cellPadding', cellpadding, true);
|
62
|
+
dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
|
63
|
+
|
64
|
+
if (!isCssSize(border)) {
|
65
|
+
dom.setAttrib(elm, 'border', border);
|
66
|
+
} else {
|
67
|
+
dom.setAttrib(elm, 'border', '');
|
68
|
+
}
|
69
|
+
|
70
|
+
if (border == '') {
|
71
|
+
dom.setStyle(elm, 'border-width', '');
|
72
|
+
dom.setStyle(elm, 'border', '');
|
73
|
+
dom.setAttrib(elm, 'border', '');
|
74
|
+
}
|
75
|
+
|
76
|
+
dom.setAttrib(elm, 'align', align);
|
77
|
+
dom.setAttrib(elm, 'frame', frame);
|
78
|
+
dom.setAttrib(elm, 'rules', rules);
|
79
|
+
dom.setAttrib(elm, 'class', className);
|
80
|
+
dom.setAttrib(elm, 'style', style);
|
81
|
+
dom.setAttrib(elm, 'id', id);
|
82
|
+
dom.setAttrib(elm, 'summary', summary);
|
83
|
+
dom.setAttrib(elm, 'dir', dir);
|
84
|
+
dom.setAttrib(elm, 'lang', lang);
|
85
|
+
|
86
|
+
capEl = inst.dom.select('caption', elm)[0];
|
87
|
+
|
88
|
+
if (capEl && !caption)
|
89
|
+
capEl.parentNode.removeChild(capEl);
|
90
|
+
|
91
|
+
if (!capEl && caption) {
|
92
|
+
capEl = elm.ownerDocument.createElement('caption');
|
93
|
+
|
94
|
+
if (!tinymce.isIE)
|
95
|
+
capEl.innerHTML = '<br data-mce-bogus="1"/>';
|
96
|
+
|
97
|
+
elm.insertBefore(capEl, elm.firstChild);
|
98
|
+
}
|
99
|
+
|
100
|
+
if (width && inst.settings.inline_styles) {
|
101
|
+
dom.setStyle(elm, 'width', width);
|
102
|
+
dom.setAttrib(elm, 'width', '');
|
103
|
+
} else {
|
104
|
+
dom.setAttrib(elm, 'width', width, true);
|
105
|
+
dom.setStyle(elm, 'width', '');
|
106
|
+
}
|
107
|
+
|
108
|
+
// Remove these since they are not valid XHTML
|
109
|
+
dom.setAttrib(elm, 'borderColor', '');
|
110
|
+
dom.setAttrib(elm, 'bgColor', '');
|
111
|
+
dom.setAttrib(elm, 'background', '');
|
112
|
+
|
113
|
+
if (height && inst.settings.inline_styles) {
|
114
|
+
dom.setStyle(elm, 'height', height);
|
115
|
+
dom.setAttrib(elm, 'height', '');
|
116
|
+
} else {
|
117
|
+
dom.setAttrib(elm, 'height', height, true);
|
118
|
+
dom.setStyle(elm, 'height', '');
|
119
|
+
}
|
120
|
+
|
121
|
+
if (background != '')
|
122
|
+
elm.style.backgroundImage = "url('" + background + "')";
|
123
|
+
else
|
124
|
+
elm.style.backgroundImage = '';
|
125
|
+
|
126
|
+
/* if (tinyMCEPopup.getParam("inline_styles")) {
|
127
|
+
if (width != '')
|
128
|
+
elm.style.width = getCSSSize(width);
|
129
|
+
}*/
|
130
|
+
|
131
|
+
if (bordercolor != "") {
|
132
|
+
elm.style.borderColor = bordercolor;
|
133
|
+
elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle;
|
134
|
+
elm.style.borderWidth = cssSize(border);
|
135
|
+
} else
|
136
|
+
elm.style.borderColor = '';
|
137
|
+
|
138
|
+
elm.style.backgroundColor = bgcolor;
|
139
|
+
elm.style.height = getCSSSize(height);
|
140
|
+
|
141
|
+
inst.addVisual();
|
142
|
+
|
143
|
+
// Fix for stange MSIE align bug
|
144
|
+
//elm.outerHTML = elm.outerHTML;
|
145
|
+
|
146
|
+
inst.nodeChanged();
|
147
|
+
inst.execCommand('mceEndUndoLevel');
|
148
|
+
|
149
|
+
// Repaint if dimensions changed
|
150
|
+
if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
|
151
|
+
inst.execCommand('mceRepaint');
|
152
|
+
|
153
|
+
tinyMCEPopup.close();
|
154
|
+
return true;
|
155
|
+
}
|
156
|
+
|
157
|
+
// Create new table
|
158
|
+
html += '<table';
|
159
|
+
|
160
|
+
html += makeAttrib('id', id);
|
161
|
+
if (!isCssSize(border)) {
|
162
|
+
html += makeAttrib('border', border);
|
163
|
+
}
|
164
|
+
|
165
|
+
html += makeAttrib('cellpadding', cellpadding);
|
166
|
+
html += makeAttrib('cellspacing', cellspacing);
|
167
|
+
html += makeAttrib('data-mce-new', '1');
|
168
|
+
|
169
|
+
if (width && inst.settings.inline_styles) {
|
170
|
+
if (style)
|
171
|
+
style += '; ';
|
172
|
+
|
173
|
+
// Force px
|
174
|
+
if (/^[0-9\.]+$/.test(width))
|
175
|
+
width += 'px';
|
176
|
+
|
177
|
+
style += 'width: ' + width;
|
178
|
+
} else
|
179
|
+
html += makeAttrib('width', width);
|
180
|
+
|
181
|
+
/* if (height) {
|
182
|
+
if (style)
|
183
|
+
style += '; ';
|
184
|
+
|
185
|
+
style += 'height: ' + height;
|
186
|
+
}*/
|
187
|
+
|
188
|
+
//html += makeAttrib('height', height);
|
189
|
+
//html += makeAttrib('bordercolor', bordercolor);
|
190
|
+
//html += makeAttrib('bgcolor', bgcolor);
|
191
|
+
html += makeAttrib('align', align);
|
192
|
+
html += makeAttrib('frame', frame);
|
193
|
+
html += makeAttrib('rules', rules);
|
194
|
+
html += makeAttrib('class', className);
|
195
|
+
html += makeAttrib('style', style);
|
196
|
+
html += makeAttrib('summary', summary);
|
197
|
+
html += makeAttrib('dir', dir);
|
198
|
+
html += makeAttrib('lang', lang);
|
199
|
+
html += '>';
|
200
|
+
|
201
|
+
if (caption) {
|
202
|
+
if (!tinymce.isIE)
|
203
|
+
html += '<caption><br data-mce-bogus="1"/></caption>';
|
204
|
+
else
|
205
|
+
html += '<caption></caption>';
|
206
|
+
}
|
207
|
+
|
208
|
+
for (var y=0; y<rows; y++) {
|
209
|
+
html += "<tr>";
|
210
|
+
|
211
|
+
for (var x=0; x<cols; x++) {
|
212
|
+
if (!tinymce.isIE)
|
213
|
+
html += '<td><br data-mce-bogus="1"/></td>';
|
214
|
+
else
|
215
|
+
html += '<td></td>';
|
216
|
+
}
|
217
|
+
|
218
|
+
html += "</tr>";
|
219
|
+
}
|
220
|
+
|
221
|
+
html += "</table>";
|
222
|
+
|
223
|
+
// Move table
|
224
|
+
if (inst.settings.fix_table_elements) {
|
225
|
+
var patt = '';
|
226
|
+
|
227
|
+
inst.focus();
|
228
|
+
inst.selection.setContent('<br class="_mce_marker" />');
|
229
|
+
|
230
|
+
tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) {
|
231
|
+
if (patt)
|
232
|
+
patt += ',';
|
233
|
+
|
234
|
+
patt += n + ' ._mce_marker';
|
235
|
+
});
|
236
|
+
|
237
|
+
tinymce.each(inst.dom.select(patt), function(n) {
|
238
|
+
inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n);
|
239
|
+
});
|
240
|
+
|
241
|
+
dom.setOuterHTML(dom.select('br._mce_marker')[0], html);
|
242
|
+
} else
|
243
|
+
inst.execCommand('mceInsertContent', false, html);
|
244
|
+
|
245
|
+
tinymce.each(dom.select('table[data-mce-new]'), function(node) {
|
246
|
+
var tdorth = dom.select('td,th', node);
|
247
|
+
|
248
|
+
try {
|
249
|
+
// IE9 might fail to do this selection
|
250
|
+
inst.selection.setCursorLocation(tdorth[0], 0);
|
251
|
+
} catch (ex) {
|
252
|
+
// Ignore
|
253
|
+
}
|
254
|
+
|
255
|
+
dom.setAttrib(node, 'data-mce-new', '');
|
256
|
+
});
|
257
|
+
|
258
|
+
inst.addVisual();
|
259
|
+
inst.execCommand('mceEndUndoLevel');
|
260
|
+
|
261
|
+
tinyMCEPopup.close();
|
262
|
+
}
|
263
|
+
|
264
|
+
function makeAttrib(attrib, value) {
|
265
|
+
var formObj = document.forms[0];
|
266
|
+
var valueElm = formObj.elements[attrib];
|
267
|
+
|
268
|
+
if (typeof(value) == "undefined" || value == null) {
|
269
|
+
value = "";
|
270
|
+
|
271
|
+
if (valueElm)
|
272
|
+
value = valueElm.value;
|
273
|
+
}
|
274
|
+
|
275
|
+
if (value == "")
|
276
|
+
return "";
|
277
|
+
|
278
|
+
// XML encode it
|
279
|
+
value = value.replace(/&/g, '&');
|
280
|
+
value = value.replace(/\"/g, '"');
|
281
|
+
value = value.replace(/</g, '<');
|
282
|
+
value = value.replace(/>/g, '>');
|
283
|
+
|
284
|
+
return ' ' + attrib + '="' + value + '"';
|
285
|
+
}
|
286
|
+
|
287
|
+
function init() {
|
288
|
+
tinyMCEPopup.resizeToInnerSize();
|
289
|
+
|
290
|
+
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
291
|
+
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
|
292
|
+
document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
|
293
|
+
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
|
294
|
+
|
295
|
+
var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', '');
|
296
|
+
var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
|
297
|
+
var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules = "", frame = "";
|
298
|
+
var inst = tinyMCEPopup.editor, dom = inst.dom;
|
299
|
+
var formObj = document.forms[0];
|
300
|
+
var elm = dom.getParent(inst.selection.getNode(), "table");
|
301
|
+
|
302
|
+
action = tinyMCEPopup.getWindowArg('action');
|
303
|
+
|
304
|
+
if (!action)
|
305
|
+
action = elm ? "update" : "insert";
|
306
|
+
|
307
|
+
if (elm && action != "insert") {
|
308
|
+
var rowsAr = elm.rows;
|
309
|
+
var cols = 0;
|
310
|
+
for (var i=0; i<rowsAr.length; i++)
|
311
|
+
if (rowsAr[i].cells.length > cols)
|
312
|
+
cols = rowsAr[i].cells.length;
|
313
|
+
|
314
|
+
cols = cols;
|
315
|
+
rows = rowsAr.length;
|
316
|
+
|
317
|
+
st = dom.parseStyle(dom.getAttrib(elm, "style"));
|
318
|
+
border = trimSize(getStyle(elm, 'border', 'borderWidth'));
|
319
|
+
cellpadding = dom.getAttrib(elm, 'cellpadding', "");
|
320
|
+
cellspacing = dom.getAttrib(elm, 'cellspacing', "");
|
321
|
+
width = trimSize(getStyle(elm, 'width', 'width'));
|
322
|
+
height = trimSize(getStyle(elm, 'height', 'height'));
|
323
|
+
bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));
|
324
|
+
bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));
|
325
|
+
align = dom.getAttrib(elm, 'align', align);
|
326
|
+
frame = dom.getAttrib(elm, 'frame');
|
327
|
+
rules = dom.getAttrib(elm, 'rules');
|
328
|
+
className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, ''));
|
329
|
+
id = dom.getAttrib(elm, 'id');
|
330
|
+
summary = dom.getAttrib(elm, 'summary');
|
331
|
+
style = dom.serializeStyle(st);
|
332
|
+
dir = dom.getAttrib(elm, 'dir');
|
333
|
+
lang = dom.getAttrib(elm, 'lang');
|
334
|
+
background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
|
335
|
+
formObj.caption.checked = elm.getElementsByTagName('caption').length > 0;
|
336
|
+
|
337
|
+
orgTableWidth = width;
|
338
|
+
orgTableHeight = height;
|
339
|
+
|
340
|
+
action = "update";
|
341
|
+
formObj.insert.value = inst.getLang('update');
|
342
|
+
}
|
343
|
+
|
344
|
+
addClassesToList('class', "table_styles");
|
345
|
+
TinyMCE_EditableSelects.init();
|
346
|
+
|
347
|
+
// Update form
|
348
|
+
selectByValue(formObj, 'align', align);
|
349
|
+
selectByValue(formObj, 'tframe', frame);
|
350
|
+
selectByValue(formObj, 'rules', rules);
|
351
|
+
selectByValue(formObj, 'class', className, true, true);
|
352
|
+
formObj.cols.value = cols;
|
353
|
+
formObj.rows.value = rows;
|
354
|
+
formObj.border.value = border;
|
355
|
+
formObj.cellpadding.value = cellpadding;
|
356
|
+
formObj.cellspacing.value = cellspacing;
|
357
|
+
formObj.width.value = width;
|
358
|
+
formObj.height.value = height;
|
359
|
+
formObj.bordercolor.value = bordercolor;
|
360
|
+
formObj.bgcolor.value = bgcolor;
|
361
|
+
formObj.id.value = id;
|
362
|
+
formObj.summary.value = summary;
|
363
|
+
formObj.style.value = style;
|
364
|
+
formObj.dir.value = dir;
|
365
|
+
formObj.lang.value = lang;
|
366
|
+
formObj.backgroundimage.value = background;
|
367
|
+
|
368
|
+
updateColor('bordercolor_pick', 'bordercolor');
|
369
|
+
updateColor('bgcolor_pick', 'bgcolor');
|
370
|
+
|
371
|
+
// Resize some elements
|
372
|
+
if (isVisible('backgroundimagebrowser'))
|
373
|
+
document.getElementById('backgroundimage').style.width = '180px';
|
374
|
+
|
375
|
+
// Disable some fields in update mode
|
376
|
+
if (action == "update") {
|
377
|
+
formObj.cols.disabled = true;
|
378
|
+
formObj.rows.disabled = true;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
function changedSize() {
|
383
|
+
var formObj = document.forms[0];
|
384
|
+
var st = dom.parseStyle(formObj.style.value);
|
385
|
+
|
386
|
+
/* var width = formObj.width.value;
|
387
|
+
if (width != "")
|
388
|
+
st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : "";
|
389
|
+
else
|
390
|
+
st['width'] = "";*/
|
391
|
+
|
392
|
+
var height = formObj.height.value;
|
393
|
+
if (height != "")
|
394
|
+
st['height'] = getCSSSize(height);
|
395
|
+
else
|
396
|
+
st['height'] = "";
|
397
|
+
|
398
|
+
formObj.style.value = dom.serializeStyle(st);
|
399
|
+
}
|
400
|
+
|
401
|
+
function isCssSize(value) {
|
402
|
+
return /^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)$/.test(value);
|
403
|
+
}
|
404
|
+
|
405
|
+
function cssSize(value, def) {
|
406
|
+
value = tinymce.trim(value || def);
|
407
|
+
|
408
|
+
if (!isCssSize(value)) {
|
409
|
+
return parseInt(value, 10) + 'px';
|
410
|
+
}
|
411
|
+
|
412
|
+
return value;
|
413
|
+
}
|
414
|
+
|
415
|
+
function changedBackgroundImage() {
|
416
|
+
var formObj = document.forms[0];
|
417
|
+
var st = dom.parseStyle(formObj.style.value);
|
418
|
+
|
419
|
+
st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
|
420
|
+
|
421
|
+
formObj.style.value = dom.serializeStyle(st);
|
422
|
+
}
|
423
|
+
|
424
|
+
function changedBorder() {
|
425
|
+
var formObj = document.forms[0];
|
426
|
+
var st = dom.parseStyle(formObj.style.value);
|
427
|
+
|
428
|
+
// Update border width if the element has a color
|
429
|
+
if (formObj.border.value != "" && (isCssSize(formObj.border.value) || formObj.bordercolor.value != ""))
|
430
|
+
st['border-width'] = cssSize(formObj.border.value);
|
431
|
+
else {
|
432
|
+
if (!formObj.border.value) {
|
433
|
+
st['border'] = '';
|
434
|
+
st['border-width'] = '';
|
435
|
+
}
|
436
|
+
}
|
437
|
+
|
438
|
+
formObj.style.value = dom.serializeStyle(st);
|
439
|
+
}
|
440
|
+
|
441
|
+
function changedColor() {
|
442
|
+
var formObj = document.forms[0];
|
443
|
+
var st = dom.parseStyle(formObj.style.value);
|
444
|
+
|
445
|
+
st['background-color'] = formObj.bgcolor.value;
|
446
|
+
|
447
|
+
if (formObj.bordercolor.value != "") {
|
448
|
+
st['border-color'] = formObj.bordercolor.value;
|
449
|
+
|
450
|
+
// Add border-width if it's missing
|
451
|
+
if (!st['border-width'])
|
452
|
+
st['border-width'] = cssSize(formObj.border.value, 1);
|
453
|
+
}
|
454
|
+
|
455
|
+
formObj.style.value = dom.serializeStyle(st);
|
456
|
+
}
|
457
|
+
|
458
|
+
function changedStyle() {
|
459
|
+
var formObj = document.forms[0];
|
460
|
+
var st = dom.parseStyle(formObj.style.value);
|
461
|
+
|
462
|
+
if (st['background-image'])
|
463
|
+
formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
|
464
|
+
else
|
465
|
+
formObj.backgroundimage.value = '';
|
466
|
+
|
467
|
+
if (st['width'])
|
468
|
+
formObj.width.value = trimSize(st['width']);
|
469
|
+
|
470
|
+
if (st['height'])
|
471
|
+
formObj.height.value = trimSize(st['height']);
|
472
|
+
|
473
|
+
if (st['background-color']) {
|
474
|
+
formObj.bgcolor.value = st['background-color'];
|
475
|
+
updateColor('bgcolor_pick','bgcolor');
|
476
|
+
}
|
477
|
+
|
478
|
+
if (st['border-color']) {
|
479
|
+
formObj.bordercolor.value = st['border-color'];
|
480
|
+
updateColor('bordercolor_pick','bordercolor');
|
481
|
+
}
|
482
|
+
}
|
483
|
+
|
484
|
+
tinyMCEPopup.onInit.add(init);
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('en.table_dlg',{"rules_border":"border","rules_box":"box","rules_vsides":"vsides","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"hsides","rules_below":"below","rules_above":"above","rules_void":"void",rules:"Rules","frame_all":"all","frame_cols":"cols","frame_rows":"rows","frame_groups":"groups","frame_none":"none",frame:"Frame",caption:"Table Caption","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.","cell_limit":"You\'ve exceeded the maximum number of cells of {$cells}.","row_limit":"You\'ve exceeded the maximum number of rows of {$rows}.","col_limit":"You\'ve exceeded the maximum number of columns of {$cols}.",colgroup:"Col Group",rowgroup:"Row Group",scope:"Scope",tfoot:"Footer",tbody:"Body",thead:"Header","row_all":"Update All Rows in Table","row_even":"Update Even Rows in Table","row_odd":"Update Odd Rows in Table","row_row":"Update Current Row","cell_all":"Update All Cells in Table","cell_row":"Update All Cells in Row","cell_cell":"Update Current Cell",th:"Header",td:"Data",summary:"Summary",bgimage:"Background Image",rtl:"Right to Left",ltr:"Left to Right",mime:"Target MIME Type",langcode:"Language Code",langdir:"Language Direction",style:"Style",id:"ID","merge_cells_title":"Merge Table Cells",bgcolor:"Background Color",bordercolor:"Border Color","align_bottom":"Bottom","align_top":"Top",valign:"Vertical Alignment","cell_type":"Cell Type","cell_title":"Table Cell Properties","row_title":"Table Row Properties","align_middle":"Center","align_right":"Right","align_left":"Left","align_default":"Default",align:"Alignment",border:"Border",cellpadding:"Cell Padding",cellspacing:"Cell Spacing",rows:"Rows",cols:"Columns",height:"Height",width:"Width",title:"Insert/Edit Table",rowtype:"Row Type","advanced_props":"Advanced Properties","general_props":"General Properties","advanced_tab":"Advanced","general_tab":"General","cell_col":"Update all cells in column"});
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title>{#table_dlg.merge_cells_title}</title>
|
5
|
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
+
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
+
<script type="text/javascript" src="../../utils/validate.js"></script>
|
8
|
+
<script type="text/javascript" src="js/merge_cells.js"></script>
|
9
|
+
</head>
|
10
|
+
<body style="margin: 8px" role="application">
|
11
|
+
<form onsubmit="MergeCellsDialog.merge();return false;" action="#">
|
12
|
+
<fieldset>
|
13
|
+
<legend>{#table_dlg.merge_cells_title}</legend>
|
14
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="3" width="100%">
|
15
|
+
<tr>
|
16
|
+
<td><label for="numcols">{#table_dlg.cols}</label>:</td>
|
17
|
+
<td align="right"><input type="text" id="numcols" name="numcols" value="" class="number min1 mceFocus" style="width: 30px" aria-required="true" /></td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<td><label for="numrows">{#table_dlg.rows}</label>:</td>
|
21
|
+
<td align="right"><input type="text" id="numrows" name="numrows" value="" class="number min1" style="width: 30px" aria-required="true" /></td>
|
22
|
+
</tr>
|
23
|
+
</table>
|
24
|
+
</fieldset>
|
25
|
+
|
26
|
+
<div class="mceActionPanel">
|
27
|
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
28
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
29
|
+
</div>
|
30
|
+
</form>
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,158 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title>{#table_dlg.row_title}</title>
|
5
|
+
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
+
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
+
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
8
|
+
<script type="text/javascript" src="../../utils/validate.js"></script>
|
9
|
+
<script type="text/javascript" src="../../utils/editable_selects.js"></script>
|
10
|
+
<script type="text/javascript" src="js/row.js"></script>
|
11
|
+
<link href="css/row.css" rel="stylesheet" type="text/css" />
|
12
|
+
</head>
|
13
|
+
<body id="tablerow" style="display: none" role="application">
|
14
|
+
<form onsubmit="updateAction();return false;" action="#">
|
15
|
+
<div class="tabs">
|
16
|
+
<ul>
|
17
|
+
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
18
|
+
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="panel_wrapper">
|
23
|
+
<div id="general_panel" class="panel current">
|
24
|
+
<fieldset>
|
25
|
+
<legend>{#table_dlg.general_props}</legend>
|
26
|
+
|
27
|
+
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
28
|
+
<tr>
|
29
|
+
<td><label for="rowtype">{#table_dlg.rowtype}</label></td>
|
30
|
+
<td class="col2">
|
31
|
+
<select id="rowtype" name="rowtype" class="mceFocus">
|
32
|
+
<option value="thead">{#table_dlg.thead}</option>
|
33
|
+
<option value="tbody">{#table_dlg.tbody}</option>
|
34
|
+
<option value="tfoot">{#table_dlg.tfoot}</option>
|
35
|
+
</select>
|
36
|
+
</td>
|
37
|
+
</tr>
|
38
|
+
|
39
|
+
<tr>
|
40
|
+
<td><label for="align">{#table_dlg.align}</label></td>
|
41
|
+
<td class="col2">
|
42
|
+
<select id="align" name="align">
|
43
|
+
<option value="">{#not_set}</option>
|
44
|
+
<option value="center">{#table_dlg.align_middle}</option>
|
45
|
+
<option value="left">{#table_dlg.align_left}</option>
|
46
|
+
<option value="right">{#table_dlg.align_right}</option>
|
47
|
+
</select>
|
48
|
+
</td>
|
49
|
+
</tr>
|
50
|
+
|
51
|
+
<tr>
|
52
|
+
<td><label for="valign">{#table_dlg.valign}</label></td>
|
53
|
+
<td class="col2">
|
54
|
+
<select id="valign" name="valign">
|
55
|
+
<option value="">{#not_set}</option>
|
56
|
+
<option value="top">{#table_dlg.align_top}</option>
|
57
|
+
<option value="middle">{#table_dlg.align_middle}</option>
|
58
|
+
<option value="bottom">{#table_dlg.align_bottom}</option>
|
59
|
+
</select>
|
60
|
+
</td>
|
61
|
+
</tr>
|
62
|
+
|
63
|
+
<tr id="styleSelectRow">
|
64
|
+
<td><label for="class">{#class_name}</label></td>
|
65
|
+
<td class="col2">
|
66
|
+
<select id="class" name="class" class="mceEditableSelect">
|
67
|
+
<option value="" selected="selected">{#not_set}</option>
|
68
|
+
</select>
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
|
72
|
+
<tr>
|
73
|
+
<td><label for="height">{#table_dlg.height}</label></td>
|
74
|
+
<td class="col2"><input name="height" type="text" id="height" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
75
|
+
</tr>
|
76
|
+
</table>
|
77
|
+
</fieldset>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<div id="advanced_panel" class="panel">
|
81
|
+
<fieldset>
|
82
|
+
<legend>{#table_dlg.advanced_props}</legend>
|
83
|
+
|
84
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
85
|
+
<tr>
|
86
|
+
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
87
|
+
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
88
|
+
</tr>
|
89
|
+
|
90
|
+
<tr>
|
91
|
+
<td><label for="style">{#table_dlg.style}</label></td>
|
92
|
+
<td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
|
93
|
+
</tr>
|
94
|
+
|
95
|
+
<tr>
|
96
|
+
<td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
|
97
|
+
<td>
|
98
|
+
<select id="dir" name="dir" style="width: 200px">
|
99
|
+
<option value="">{#not_set}</option>
|
100
|
+
<option value="ltr">{#table_dlg.ltr}</option>
|
101
|
+
<option value="rtl">{#table_dlg.rtl}</option>
|
102
|
+
</select>
|
103
|
+
</td>
|
104
|
+
</tr>
|
105
|
+
|
106
|
+
<tr>
|
107
|
+
<td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
|
108
|
+
<td>
|
109
|
+
<input id="lang" name="lang" type="text" value="" style="width: 200px" />
|
110
|
+
</td>
|
111
|
+
</tr>
|
112
|
+
|
113
|
+
<tr>
|
114
|
+
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
115
|
+
<td>
|
116
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
117
|
+
<tr>
|
118
|
+
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
119
|
+
<td id="backgroundimagebrowsercontainer"> </td>
|
120
|
+
</tr>
|
121
|
+
</table>
|
122
|
+
</td>
|
123
|
+
</tr>
|
124
|
+
|
125
|
+
<tr>
|
126
|
+
<td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
|
127
|
+
<td>
|
128
|
+
<span role="group" aria-labelledby="bgcolor_label">
|
129
|
+
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
130
|
+
<tr>
|
131
|
+
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
132
|
+
<td id="bgcolor_pickcontainer"> </td>
|
133
|
+
</tr>
|
134
|
+
</table>
|
135
|
+
</span>
|
136
|
+
</td>
|
137
|
+
</tr>
|
138
|
+
</table>
|
139
|
+
</fieldset>
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div class="mceActionPanel">
|
144
|
+
<div>
|
145
|
+
<select id="action" name="action">
|
146
|
+
<option value="row">{#table_dlg.row_row}</option>
|
147
|
+
<option value="odd">{#table_dlg.row_odd}</option>
|
148
|
+
<option value="even">{#table_dlg.row_even}</option>
|
149
|
+
<option value="all">{#table_dlg.row_all}</option>
|
150
|
+
</select>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<input type="submit" id="insert" name="insert" value="{#update}" />
|
154
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
155
|
+
</div>
|
156
|
+
</form>
|
157
|
+
</body>
|
158
|
+
</html>
|