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,110 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title></title>
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
+
<script type="text/javascript" src="../../tiny_mce.js"></script>
|
7
|
+
<script type="text/javascript">
|
8
|
+
function patchCallback(settings, key) {
|
9
|
+
if (settings[key])
|
10
|
+
settings[key] = "window.opener." + settings[key];
|
11
|
+
}
|
12
|
+
|
13
|
+
var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
|
14
|
+
|
15
|
+
// Clone array
|
16
|
+
for (var n in paSe)
|
17
|
+
settings[n] = paSe[n];
|
18
|
+
|
19
|
+
// Override options for fullscreen
|
20
|
+
for (var n in paSe.fullscreen_settings)
|
21
|
+
settings[n] = paSe.fullscreen_settings[n];
|
22
|
+
|
23
|
+
// Patch callbacks, make them point to window.opener
|
24
|
+
patchCallback(settings, 'urlconverter_callback');
|
25
|
+
patchCallback(settings, 'insertlink_callback');
|
26
|
+
patchCallback(settings, 'insertimage_callback');
|
27
|
+
patchCallback(settings, 'setupcontent_callback');
|
28
|
+
patchCallback(settings, 'save_callback');
|
29
|
+
patchCallback(settings, 'onchange_callback');
|
30
|
+
patchCallback(settings, 'init_instance_callback');
|
31
|
+
patchCallback(settings, 'file_browser_callback');
|
32
|
+
patchCallback(settings, 'cleanup_callback');
|
33
|
+
patchCallback(settings, 'execcommand_callback');
|
34
|
+
patchCallback(settings, 'oninit');
|
35
|
+
|
36
|
+
// Set options
|
37
|
+
delete settings.id;
|
38
|
+
settings['mode'] = 'exact';
|
39
|
+
settings['elements'] = 'fullscreenarea';
|
40
|
+
settings['add_unload_trigger'] = false;
|
41
|
+
settings['ask'] = false;
|
42
|
+
settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
|
43
|
+
settings['fullscreen_is_enabled'] = true;
|
44
|
+
settings['fullscreen_editor_id'] = oeID;
|
45
|
+
settings['theme_advanced_resizing'] = false;
|
46
|
+
settings['strict_loading_mode'] = true;
|
47
|
+
|
48
|
+
settings.save_onsavecallback = function() {
|
49
|
+
window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
|
50
|
+
window.opener.tinyMCE.get(oeID).execCommand('mceSave');
|
51
|
+
window.close();
|
52
|
+
};
|
53
|
+
|
54
|
+
function unloadHandler(e) {
|
55
|
+
moveContent();
|
56
|
+
}
|
57
|
+
|
58
|
+
function moveContent() {
|
59
|
+
window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
|
60
|
+
}
|
61
|
+
|
62
|
+
function closeFullscreen() {
|
63
|
+
moveContent();
|
64
|
+
window.close();
|
65
|
+
}
|
66
|
+
|
67
|
+
function doParentSubmit() {
|
68
|
+
moveContent();
|
69
|
+
|
70
|
+
if (window.opener.tinyMCE.selectedInstance.formElement.form)
|
71
|
+
window.opener.tinyMCE.selectedInstance.formElement.form.submit();
|
72
|
+
|
73
|
+
window.close();
|
74
|
+
|
75
|
+
return false;
|
76
|
+
}
|
77
|
+
|
78
|
+
function render() {
|
79
|
+
var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
|
80
|
+
|
81
|
+
e.value = window.opener.tinyMCE.get(oeID).getContent();
|
82
|
+
|
83
|
+
vp = dom.getViewPort();
|
84
|
+
settings.width = vp.w;
|
85
|
+
settings.height = vp.h - 15;
|
86
|
+
|
87
|
+
tinymce.dom.Event.add(window, 'resize', function() {
|
88
|
+
var vp = dom.getViewPort();
|
89
|
+
|
90
|
+
tinyMCE.activeEditor.theme.resizeTo(vp.w, vp.h);
|
91
|
+
});
|
92
|
+
|
93
|
+
tinyMCE.init(settings);
|
94
|
+
}
|
95
|
+
|
96
|
+
// Add onunload
|
97
|
+
tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
|
98
|
+
</script>
|
99
|
+
</head>
|
100
|
+
<body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
|
101
|
+
<form onsubmit="doParentSubmit();">
|
102
|
+
<textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
|
103
|
+
</form>
|
104
|
+
|
105
|
+
<script type="text/javascript">
|
106
|
+
render();
|
107
|
+
</script>
|
108
|
+
|
109
|
+
</body>
|
110
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})();
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* editor_plugin_src.js
|
3
|
+
*
|
4
|
+
* Copyright 2009, Moxiecode Systems AB
|
5
|
+
* Released under LGPL License.
|
6
|
+
*
|
7
|
+
* License: http://tinymce.moxiecode.com/license
|
8
|
+
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function() {
|
12
|
+
tinymce.create('tinymce.plugins.IESpell', {
|
13
|
+
init : function(ed, url) {
|
14
|
+
var t = this, sp;
|
15
|
+
|
16
|
+
if (!tinymce.isIE)
|
17
|
+
return;
|
18
|
+
|
19
|
+
t.editor = ed;
|
20
|
+
|
21
|
+
// Register commands
|
22
|
+
ed.addCommand('mceIESpell', function() {
|
23
|
+
try {
|
24
|
+
sp = new ActiveXObject("ieSpell.ieSpellExtension");
|
25
|
+
sp.CheckDocumentNode(ed.getDoc().documentElement);
|
26
|
+
} catch (e) {
|
27
|
+
if (e.number == -2146827859) {
|
28
|
+
ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {
|
29
|
+
if (s)
|
30
|
+
window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
|
31
|
+
});
|
32
|
+
} else
|
33
|
+
ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);
|
34
|
+
}
|
35
|
+
});
|
36
|
+
|
37
|
+
// Register buttons
|
38
|
+
ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});
|
39
|
+
},
|
40
|
+
|
41
|
+
getInfo : function() {
|
42
|
+
return {
|
43
|
+
longname : 'IESpell (IE Only)',
|
44
|
+
author : 'Moxiecode Systems AB',
|
45
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
46
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
|
47
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
48
|
+
};
|
49
|
+
}
|
50
|
+
});
|
51
|
+
|
52
|
+
// Register plugin
|
53
|
+
tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);
|
54
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(s,j){var z=this,i,k="",r=z.editor,g=0,v=0,h,m,o,q,l,x,y,n;s=s||{};j=j||{};if(!s.inline){return z.parent(s,j)}n=z._frontWindow();if(n&&d.get(n.id+"_ifr")){n.focussedElement=d.get(n.id+"_ifr").contentWindow.document.activeElement}if(!s.type){z.bookmark=r.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();s.width=parseInt(s.width||320);s.height=parseInt(s.height||240)+(tinymce.isIE?8:0);s.min_width=parseInt(s.min_width||150);s.min_height=parseInt(s.min_height||100);s.max_width=parseInt(s.max_width||2000);s.max_height=parseInt(s.max_height||2000);s.left=s.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(s.width/2)));s.top=s.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(s.height/2)));s.movable=s.resizable=true;j.mce_width=s.width;j.mce_height=s.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=s.auto_focus;z.features=s;z.params=j;z.onOpen.dispatch(z,s,j);if(s.type){k+=" mceModal";if(s.type){k+=" mce"+s.type.substring(0,1).toUpperCase()+s.type.substring(1)}s.resizable=false}if(s.statusbar){k+=" mceStatusbar"}if(s.resizable){k+=" mceResizable"}if(s.minimizable){k+=" mceMinimizable"}if(s.maximizable){k+=" mceMaximizable"}if(s.movable){k+=" mceMovable"}z._addAll(d.doc.body,["div",{id:i,role:"dialog","aria-labelledby":s.type?i+"_content":i+"_title","class":(r.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},s.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft",tabindex:"0"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight",tabindex:"0"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!s.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;v+=d.get(i+"_top").clientHeight;v+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:s.top,left:s.left,width:s.width+g,height:s.height+v});y=s.url||s.file;if(y){if(tinymce.relaxedDomain){y+=(y.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}y=tinymce._addVer(y)}if(!s.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:s.width,height:s.height});d.setAttrib(i+"_ifr","src",y)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(s.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",s.content.replace("\n","<br />"));a.add(i,"keyup",function(f){var p=27;if(f.keyCode===p){s.button_func(false);return a.cancel(f)}});a.add(i,"keydown",function(f){var t,p=9;if(f.keyCode===p){t=d.select("a.mceCancel",i+"_wrapper")[0];if(t&&t!==f.target){t.focus()}else{d.get(i+"_ok").focus()}return a.cancel(f)}})}o=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=z.windows[i];z.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceClose"){z.close(null,i);return a.cancel(t)}else{if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return z._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return z._startDrag(i,t,u.className.substring(13))}}}}}}});q=a.add(i,"click",function(f){var p=f.target;z.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":z.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":s.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});a.add([i+"_left",i+"_right"],"focus",function(p){var t=d.get(i+"_ifr");if(t){var f=t.contentWindow.document.body;var u=d.select(":input:enabled,*[tabindex=0]",f);if(p.target.id===(i+"_left")){u[u.length-1].focus()}else{u[0].focus()}}else{d.get(i+"_ok").focus()}});x=z.windows[i]={id:i,mousedown_func:o,click_func:q,element:new b(i,{blocker:1,container:r.getContainer()}),iframeElement:new b(i+"_ifr"),features:s,deltaWidth:g,deltaHeight:v};x.iframeElement.on("focus",function(){z.focus(i)});if(z.count==0&&z.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(z.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:z.zIndex-1}});d.show("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","true")}else{d.setStyle("mceModalBlocker","z-index",z.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}d.setAttrib(i,"aria-hidden","false");z.focus(i);z._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}z.count++;return x},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h;if(f.focussedElement){f.focussedElement.focus()}else{if(d.get(h+"_ok")){d.get(f.id+"_ok").focus()}else{if(d.get(f.id+"_ifr")){d.get(f.id+"_ifr").focus()}}}}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;g<h.length;g++){f._addAll(k,h[g])}}}},_startDrag:function(v,G,E){var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;g={x:0,y:0};A=d.getViewPort();A.w-=2;A.h-=2;j=G.screenX;i=G.screenY;m=k=n=B=0;u=a.add(C,"mouseup",function(p){a.remove(C,"mouseup",u);a.remove(C,"mousemove",z);if(f){f.remove()}h.moveBy(m,k);h.resizeBy(n,B);q=h.getSize();d.setStyles(v+"_ifr",{width:q.w-l.deltaWidth,height:q.h-l.deltaHeight});o._fixIELayout(v,1);return a.cancel(p)});if(E!="Move"){D()}function D(){if(f){return}o._fixIELayout(v,0);d.add(C.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:o.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceEventBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}f=new b("mceEventBlocker");f.update();x=h.getXY();q=h.getSize();s=g.x+x.x-A.x;r=g.y+x.y-A.y;d.add(f.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:s,top:r,width:q.w,height:q.h}});F=new b("mcePlaceHolder")}z=a.add(C,"mousemove",function(w){var p,H,t;D();p=w.screenX-j;H=w.screenY-i;switch(E){case"ResizeW":m=p;n=0-p;break;case"ResizeE":n=p;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(E=="ResizeNW"){m=p;n=0-p}else{if(E=="ResizeNE"){n=p}}k=H;B=0-H;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(E=="ResizeSW"){m=p;n=0-p}else{if(E=="ResizeSE"){n=p}}B=H;break;case"mceMove":m=p;k=H;break}if(n<(t=l.features.min_width-q.w)){if(m!==0){m+=n-t}n=t}if(B<(t=l.features.min_height-q.h)){if(k!==0){k+=B-t}B=t}n=Math.min(n,l.features.max_width-q.w);B=Math.min(B,l.features.max_height-q.h);m=Math.max(m,A.x-(s+A.x));k=Math.max(k,A.y-(r+A.y));m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));if(m+k!==0){if(s+m<0){m=0}if(r+k<0){k=0}F.moveTo(s+m,r+k)}if(n+B!==0){F.resizeTo(q.w+n,q.h+B)}return a.cancel(w)});return a.cancel(G)},resizeBy:function(g,h,i){var f=this.windows[i];if(f){f.element.resizeBy(g,h);f.iframeElement.resizeBy(g,h)}},close:function(i,k){var g=this,f,j=d.doc,h,k;k=g._findId(k||i);if(!g.windows[k]){g.parent(i);return}g.count--;if(g.count==0){d.remove("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","false");g.editor.focus()}if(f=g.windows[k]){g.onClose.dispatch(g);a.remove(j,"mousedown",f.mousedownFunc);a.remove(j,"click",f.clickFunc);a.clear(k);a.clear(k+"_ifr");d.setAttrib(k+"_ifr","src",'javascript:""');f.element.remove();delete g.windows[k];h=g._frontWindow();if(h){g.focus(h.id)}}},_frontWindow:function(){var g,f=0;e(this.windows,function(h){if(h.zIndex>f){g=h;f=h.zIndex}});return g},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();
|