spree_editor 0.30.1 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +4 -10
- data/app/controllers/admin/editor_settings_controller.rb +14 -0
- data/app/views/admin/editor_settings/edit.html.erb +23 -0
- data/app/views/admin/editor_settings/show.html.erb +20 -0
- data/app/views/shared/_rich_editor_javascript.html.erb +8 -0
- data/app/views/shared/editor_engines/_tiny_mce.html.erb +56 -0
- data/app/views/shared/editor_engines/_wym_editor.html.erb +8 -0
- data/app/views/shared/editor_engines/_yui_rich_editor.html.erb +172 -0
- data/config/locales/en.yml +36 -11
- data/config/locales/ru.yml +41 -16
- data/config/routes.rb +3 -1
- data/lib/editor_configuration.rb +5 -0
- data/lib/spree/editor/config.rb +22 -0
- data/lib/spree_editor.rb +1 -5
- data/lib/spree_editor_hooks.rb +16 -1
- data/public/javascripts/jquery.ocupload.js +7 -6
- data/public/javascripts/tinymce/jquery.tinymce.js +1 -0
- data/public/javascripts/tinymce/langs/en.js +170 -0
- data/public/javascripts/tinymce/license.txt +504 -0
- data/public/javascripts/tinymce/plugins/advhr/css/advhr.css +5 -0
- data/public/javascripts/tinymce/plugins/advhr/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +57 -0
- data/public/javascripts/tinymce/plugins/advhr/js/rule.js +43 -0
- data/public/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +5 -0
- data/public/javascripts/tinymce/plugins/advhr/rule.htm +57 -0
- data/public/javascripts/tinymce/plugins/advimage/css/advimage.css +13 -0
- data/public/javascripts/tinymce/plugins/advimage/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +50 -0
- data/public/javascripts/tinymce/plugins/advimage/image.htm +232 -0
- data/public/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/public/javascripts/tinymce/plugins/advimage/js/image.js +443 -0
- data/public/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +43 -0
- data/public/javascripts/tinymce/plugins/advlink/css/advlink.css +8 -0
- data/public/javascripts/tinymce/plugins/advlink/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +61 -0
- data/public/javascripts/tinymce/plugins/advlink/js/advlink.js +528 -0
- data/public/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +52 -0
- data/public/javascripts/tinymce/plugins/advlink/link.htm +333 -0
- data/public/javascripts/tinymce/plugins/advlist/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +154 -0
- data/public/javascripts/tinymce/plugins/autoresize/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +119 -0
- data/public/javascripts/tinymce/plugins/autosave/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +422 -0
- data/public/javascripts/tinymce/plugins/autosave/langs/en.js +4 -0
- data/public/javascripts/tinymce/plugins/bbcode/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +120 -0
- data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +147 -0
- data/public/javascripts/tinymce/plugins/directionality/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +82 -0
- data/public/javascripts/tinymce/plugins/emotions/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +43 -0
- data/public/javascripts/tinymce/plugins/emotions/emotions.htm +40 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/public/javascripts/tinymce/plugins/emotions/js/emotions.js +22 -0
- data/public/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +20 -0
- data/public/javascripts/tinymce/plugins/example/dialog.htm +22 -0
- data/public/javascripts/tinymce/plugins/example/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/example/editor_plugin_src.js +84 -0
- data/public/javascripts/tinymce/plugins/example/img/example.gif +0 -0
- data/public/javascripts/tinymce/plugins/example/js/dialog.js +19 -0
- data/public/javascripts/tinymce/plugins/example/langs/en.js +3 -0
- data/public/javascripts/tinymce/plugins/example/langs/en_dlg.js +3 -0
- data/public/javascripts/tinymce/plugins/fullpage/css/fullpage.css +182 -0
- data/public/javascripts/tinymce/plugins/fullpage/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +153 -0
- data/public/javascripts/tinymce/plugins/fullpage/fullpage.htm +571 -0
- data/public/javascripts/tinymce/plugins/fullpage/js/fullpage.js +471 -0
- data/public/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +85 -0
- data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +151 -0
- data/public/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +109 -0
- data/public/javascripts/tinymce/plugins/iespell/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +54 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +635 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +100 -0
- data/public/javascripts/tinymce/plugins/inlinepopups/template.htm +387 -0
- data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +83 -0
- data/public/javascripts/tinymce/plugins/layer/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/layer/editor_plugin_src.js +212 -0
- data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +136 -0
- data/public/javascripts/tinymce/plugins/media/css/content.css +6 -0
- data/public/javascripts/tinymce/plugins/media/css/media.css +16 -0
- data/public/javascripts/tinymce/plugins/media/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/media/editor_plugin_src.js +414 -0
- data/public/javascripts/tinymce/plugins/media/img/flash.gif +0 -0
- data/public/javascripts/tinymce/plugins/media/img/flv_player.swf +0 -0
- data/public/javascripts/tinymce/plugins/media/img/quicktime.gif +0 -0
- data/public/javascripts/tinymce/plugins/media/img/realmedia.gif +0 -0
- data/public/javascripts/tinymce/plugins/media/img/shockwave.gif +0 -0
- data/public/javascripts/tinymce/plugins/media/img/trans.gif +0 -0
- data/public/javascripts/tinymce/plugins/media/img/windowsmedia.gif +0 -0
- data/public/javascripts/tinymce/plugins/media/js/embed.js +73 -0
- data/public/javascripts/tinymce/plugins/media/js/media.js +630 -0
- data/public/javascripts/tinymce/plugins/media/langs/en_dlg.js +103 -0
- data/public/javascripts/tinymce/plugins/media/media.htm +817 -0
- data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +53 -0
- data/public/javascripts/tinymce/plugins/noneditable/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +90 -0
- data/public/javascripts/tinymce/plugins/pagebreak/css/content.css +1 -0
- data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +77 -0
- data/public/javascripts/tinymce/plugins/pagebreak/img/pagebreak.gif +0 -0
- data/public/javascripts/tinymce/plugins/pagebreak/img/trans.gif +0 -0
- data/public/javascripts/tinymce/plugins/paste/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/paste/editor_plugin_src.js +952 -0
- data/public/javascripts/tinymce/plugins/paste/js/pastetext.js +36 -0
- data/public/javascripts/tinymce/plugins/paste/js/pasteword.js +51 -0
- data/public/javascripts/tinymce/plugins/paste/langs/en_dlg.js +5 -0
- data/public/javascripts/tinymce/plugins/paste/pastetext.htm +27 -0
- data/public/javascripts/tinymce/plugins/paste/pasteword.htm +21 -0
- data/public/javascripts/tinymce/plugins/preview/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/preview/editor_plugin_src.js +53 -0
- data/public/javascripts/tinymce/plugins/preview/example.html +28 -0
- data/public/javascripts/tinymce/plugins/preview/jscripts/embed.js +73 -0
- data/public/javascripts/tinymce/plugins/preview/preview.html +17 -0
- data/public/javascripts/tinymce/plugins/print/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/print/editor_plugin_src.js +34 -0
- data/public/javascripts/tinymce/plugins/save/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/save/editor_plugin_src.js +101 -0
- data/public/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +57 -0
- data/public/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +138 -0
- data/public/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +16 -0
- data/public/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +99 -0
- data/public/javascripts/tinymce/plugins/spellchecker/css/content.css +1 -0
- data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +417 -0
- data/public/javascripts/tinymce/plugins/spellchecker/img/wline.gif +0 -0
- data/public/javascripts/tinymce/plugins/style/css/props.css +13 -0
- data/public/javascripts/tinymce/plugins/style/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/style/editor_plugin_src.js +55 -0
- data/public/javascripts/tinymce/plugins/style/js/props.js +641 -0
- data/public/javascripts/tinymce/plugins/style/langs/en_dlg.js +63 -0
- data/public/javascripts/tinymce/plugins/style/props.htm +723 -0
- data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +112 -0
- data/public/javascripts/tinymce/plugins/table/cell.htm +178 -0
- data/public/javascripts/tinymce/plugins/table/css/cell.css +17 -0
- data/public/javascripts/tinymce/plugins/table/css/row.css +25 -0
- data/public/javascripts/tinymce/plugins/table/css/table.css +13 -0
- data/public/javascripts/tinymce/plugins/table/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/table/editor_plugin_src.js +1139 -0
- data/public/javascripts/tinymce/plugins/table/js/cell.js +286 -0
- data/public/javascripts/tinymce/plugins/table/js/merge_cells.js +27 -0
- data/public/javascripts/tinymce/plugins/table/js/row.js +237 -0
- data/public/javascripts/tinymce/plugins/table/js/table.js +454 -0
- data/public/javascripts/tinymce/plugins/table/langs/en_dlg.js +74 -0
- data/public/javascripts/tinymce/plugins/table/merge_cells.htm +32 -0
- data/public/javascripts/tinymce/plugins/table/row.htm +155 -0
- data/public/javascripts/tinymce/plugins/table/table.htm +187 -0
- data/public/javascripts/tinymce/plugins/template/blank.htm +12 -0
- data/public/javascripts/tinymce/plugins/template/css/template.css +23 -0
- data/public/javascripts/tinymce/plugins/template/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/template/editor_plugin_src.js +159 -0
- data/public/javascripts/tinymce/plugins/template/js/template.js +106 -0
- data/public/javascripts/tinymce/plugins/template/langs/en_dlg.js +15 -0
- data/public/javascripts/tinymce/plugins/template/template.htm +31 -0
- data/public/javascripts/tinymce/plugins/visualchars/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +83 -0
- data/public/javascripts/tinymce/plugins/wordcount/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +98 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +141 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +141 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +148 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +141 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/del.htm +161 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +161 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +28 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +28 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +126 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +28 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +53 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +231 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +52 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
- data/public/javascripts/tinymce/themes/advanced/about.htm +54 -0
- data/public/javascripts/tinymce/themes/advanced/anchor.htm +26 -0
- data/public/javascripts/tinymce/themes/advanced/charmap.htm +52 -0
- data/public/javascripts/tinymce/themes/advanced/color_picker.htm +73 -0
- data/public/javascripts/tinymce/themes/advanced/editor_template.js +1 -0
- data/public/javascripts/tinymce/themes/advanced/editor_template_src.js +1229 -0
- data/public/javascripts/tinymce/themes/advanced/image.htm +80 -0
- data/public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/public/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/js/about.js +72 -0
- data/public/javascripts/tinymce/themes/advanced/js/anchor.js +37 -0
- data/public/javascripts/tinymce/themes/advanced/js/charmap.js +335 -0
- data/public/javascripts/tinymce/themes/advanced/js/color_picker.js +253 -0
- data/public/javascripts/tinymce/themes/advanced/js/image.js +245 -0
- data/public/javascripts/tinymce/themes/advanced/js/link.js +156 -0
- data/public/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -0
- data/public/javascripts/tinymce/themes/advanced/langs/en.js +62 -0
- data/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +51 -0
- data/public/javascripts/tinymce/themes/advanced/link.htm +58 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/content.css +36 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/dialog.css +117 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/default/ui.css +213 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +36 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +116 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +215 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/public/javascripts/tinymce/themes/advanced/source_editor.htm +25 -0
- data/public/javascripts/tinymce/themes/simple/editor_template.js +1 -0
- data/public/javascripts/tinymce/themes/simple/editor_template_src.js +85 -0
- data/public/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
- data/public/javascripts/tinymce/themes/simple/langs/en.js +11 -0
- data/public/javascripts/tinymce/themes/simple/skins/default/content.css +25 -0
- data/public/javascripts/tinymce/themes/simple/skins/default/ui.css +32 -0
- data/public/javascripts/tinymce/themes/simple/skins/o2k7/content.css +17 -0
- data/public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +35 -0
- data/public/javascripts/tinymce/tiny_mce.js +1 -0
- data/public/javascripts/tinymce/tiny_mce_popup.js +5 -0
- data/public/javascripts/tinymce/tiny_mce_src.js +13394 -0
- data/public/javascripts/tinymce/utils/editable_selects.js +70 -0
- data/public/javascripts/tinymce/utils/form_utils.js +200 -0
- data/public/javascripts/tinymce/utils/mctabs.js +77 -0
- data/public/javascripts/tinymce/utils/validate.js +220 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-p.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/public/javascripts/wymeditor/iframe/default/wymiframe.css +90 -0
- data/public/javascripts/wymeditor/iframe/default/wymiframe.html +26 -0
- data/public/javascripts/wymeditor/jquery.wymeditor.js +4688 -0
- data/public/javascripts/wymeditor/jquery.wymeditor.min.js +1 -0
- data/public/javascripts/wymeditor/jquery.wymeditor.pack.js +1 -0
- data/public/javascripts/wymeditor/lang/bg.js +45 -0
- data/public/javascripts/wymeditor/lang/ca.js +45 -0
- data/public/javascripts/wymeditor/lang/cs.js +45 -0
- data/public/javascripts/wymeditor/lang/cy.js +45 -0
- data/public/javascripts/wymeditor/lang/de.js +45 -0
- data/public/javascripts/wymeditor/lang/en.js +45 -0
- data/public/javascripts/wymeditor/lang/es.js +45 -0
- data/public/javascripts/wymeditor/lang/fa.js +46 -0
- data/public/javascripts/wymeditor/lang/fi.js +44 -0
- data/public/javascripts/wymeditor/lang/fr.js +45 -0
- data/public/javascripts/wymeditor/lang/gl.js +45 -0
- data/public/javascripts/wymeditor/lang/he.js +45 -0
- data/public/javascripts/wymeditor/lang/hr.js +45 -0
- data/public/javascripts/wymeditor/lang/hu.js +45 -0
- data/public/javascripts/wymeditor/lang/it.js +45 -0
- data/public/javascripts/wymeditor/lang/nb.js +45 -0
- data/public/javascripts/wymeditor/lang/nl.js +45 -0
- data/public/javascripts/wymeditor/lang/nn.js +45 -0
- data/public/javascripts/wymeditor/lang/pl.js +45 -0
- data/public/javascripts/wymeditor/lang/pt-br.js +45 -0
- data/public/javascripts/wymeditor/lang/pt.js +45 -0
- data/public/javascripts/wymeditor/lang/ru.js +45 -0
- data/public/javascripts/wymeditor/lang/sv.js +45 -0
- data/public/javascripts/wymeditor/lang/tr.js +45 -0
- data/public/javascripts/wymeditor/lang/zh_cn.js +47 -0
- data/public/javascripts/wymeditor/plugins/embed/jquery.wymeditor.embed.js +52 -0
- data/public/javascripts/wymeditor/plugins/fullscreen/icon_fullscreen.gif +0 -0
- data/public/javascripts/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js +127 -0
- data/public/javascripts/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +57 -0
- data/public/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
- data/public/javascripts/wymeditor/plugins/resizable/readme.txt +124 -0
- data/public/javascripts/wymeditor/plugins/tidy/README +19 -0
- data/public/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +82 -0
- data/public/javascripts/wymeditor/plugins/tidy/tidy.php +36 -0
- data/public/javascripts/wymeditor/plugins/tidy/wand.png +0 -0
- data/public/javascripts/wymeditor/skins/compact/icons.png +0 -0
- data/public/javascripts/wymeditor/skins/compact/skin.css +134 -0
- data/public/javascripts/wymeditor/skins/compact/skin.js +35 -0
- data/public/javascripts/wymeditor/skins/default/icons.png +0 -0
- data/public/javascripts/wymeditor/skins/default/skin.css +133 -0
- data/public/javascripts/wymeditor/skins/default/skin.js +40 -0
- data/public/javascripts/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/public/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/public/javascripts/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/minimal/skin.css +131 -0
- data/public/javascripts/wymeditor/skins/minimal/skin.js +30 -0
- data/public/javascripts/wymeditor/skins/silver/COPYING +674 -0
- data/public/javascripts/wymeditor/skins/silver/README +27 -0
- data/public/javascripts/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/public/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/public/javascripts/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/silver/skin.css +297 -0
- data/public/javascripts/wymeditor/skins/silver/skin.js +61 -0
- data/public/javascripts/wymeditor/skins/twopanels/icons.png +0 -0
- data/public/javascripts/wymeditor/skins/twopanels/skin.css +134 -0
- data/public/javascripts/wymeditor/skins/twopanels/skin.js +39 -0
- data/public/javascripts/wymeditor/skins/wymeditor_icon.png +0 -0
- data/public/stylesheets/editor.css +10 -2
- data/spree_editor.gemspec +6 -6
- metadata +338 -11
- data/app/views/shared/_editor.html.erb +0 -208
- data/lib/helpers/editor_helper.rb +0 -10
@@ -0,0 +1,333 @@
|
|
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>{#advlink_dlg.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="js/advlink.js"></script>
|
10
|
+
<link href="css/advlink.css" rel="stylesheet" type="text/css" />
|
11
|
+
</head>
|
12
|
+
<body id="advlink" style="display: none">
|
13
|
+
<form onsubmit="insertAction();return false;" action="#">
|
14
|
+
<div class="tabs">
|
15
|
+
<ul>
|
16
|
+
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
|
17
|
+
<li id="popup_tab"><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
|
18
|
+
<li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
|
19
|
+
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
|
20
|
+
</ul>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="panel_wrapper">
|
24
|
+
<div id="general_panel" class="panel current">
|
25
|
+
<fieldset>
|
26
|
+
<legend>{#advlink_dlg.general_props}</legend>
|
27
|
+
|
28
|
+
<table border="0" cellpadding="4" cellspacing="0">
|
29
|
+
<tr>
|
30
|
+
<td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
|
31
|
+
<td><table border="0" cellspacing="0" cellpadding="0">
|
32
|
+
<tr>
|
33
|
+
<td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td>
|
34
|
+
<td id="hrefbrowsercontainer"> </td>
|
35
|
+
</tr>
|
36
|
+
</table></td>
|
37
|
+
</tr>
|
38
|
+
<tr id="linklisthrefrow">
|
39
|
+
<td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
|
40
|
+
<td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
|
44
|
+
<td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
|
48
|
+
<td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
|
52
|
+
<td><input id="title" name="title" type="text" value="" /></td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<td><label id="classlabel" for="classlist">{#class_name}</label></td>
|
56
|
+
<td>
|
57
|
+
<select id="classlist" name="classlist" onchange="changeClass();">
|
58
|
+
<option value="" selected="selected">{#not_set}</option>
|
59
|
+
</select>
|
60
|
+
</td>
|
61
|
+
</tr>
|
62
|
+
</table>
|
63
|
+
</fieldset>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div id="popup_panel" class="panel">
|
67
|
+
<fieldset>
|
68
|
+
<legend>{#advlink_dlg.popup_props}</legend>
|
69
|
+
|
70
|
+
<input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
|
71
|
+
<label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
|
72
|
+
|
73
|
+
<table border="0" cellpadding="0" cellspacing="4">
|
74
|
+
<tr>
|
75
|
+
<td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td>
|
76
|
+
<td>
|
77
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
78
|
+
<tr>
|
79
|
+
<td><input type="text" name="popupurl" id="popupurl" value="" onchange="buildOnClick();" /></td>
|
80
|
+
<td id="popupurlbrowsercontainer"> </td>
|
81
|
+
</tr>
|
82
|
+
</table>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
<tr>
|
86
|
+
<td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label> </td>
|
87
|
+
<td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
|
88
|
+
</tr>
|
89
|
+
<tr>
|
90
|
+
<td class="nowrap"><label>{#advlink_dlg.popup_size}</label> </td>
|
91
|
+
<td class="nowrap">
|
92
|
+
<input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x
|
93
|
+
<input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px
|
94
|
+
</td>
|
95
|
+
</tr>
|
96
|
+
<tr>
|
97
|
+
<td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label> </td>
|
98
|
+
<td class="nowrap">
|
99
|
+
<input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> /
|
100
|
+
<input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center)
|
101
|
+
</td>
|
102
|
+
</tr>
|
103
|
+
</table>
|
104
|
+
|
105
|
+
<fieldset>
|
106
|
+
<legend>{#advlink_dlg.popup_opts}</legend>
|
107
|
+
|
108
|
+
<table border="0" cellpadding="0" cellspacing="4">
|
109
|
+
<tr>
|
110
|
+
<td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
|
111
|
+
<td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
|
112
|
+
<td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
|
113
|
+
<td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
|
114
|
+
</tr>
|
115
|
+
<tr>
|
116
|
+
<td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
|
117
|
+
<td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
|
118
|
+
<td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
|
119
|
+
<td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
|
120
|
+
</tr>
|
121
|
+
<tr>
|
122
|
+
<td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
|
123
|
+
<td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
|
124
|
+
<td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
|
125
|
+
<td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
|
126
|
+
</tr>
|
127
|
+
<tr>
|
128
|
+
<td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
|
129
|
+
<td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
|
130
|
+
<td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
|
131
|
+
<td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
|
132
|
+
</tr>
|
133
|
+
</table>
|
134
|
+
</fieldset>
|
135
|
+
</fieldset>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div id="advanced_panel" class="panel">
|
139
|
+
<fieldset>
|
140
|
+
<legend>{#advlink_dlg.advanced_props}</legend>
|
141
|
+
|
142
|
+
<table border="0" cellpadding="0" cellspacing="4">
|
143
|
+
<tr>
|
144
|
+
<td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
|
145
|
+
<td><input id="id" name="id" type="text" value="" /></td>
|
146
|
+
</tr>
|
147
|
+
|
148
|
+
<tr>
|
149
|
+
<td><label id="stylelabel" for="style">{#advlink_dlg.style}</label></td>
|
150
|
+
<td><input type="text" id="style" name="style" value="" /></td>
|
151
|
+
</tr>
|
152
|
+
|
153
|
+
<tr>
|
154
|
+
<td><label id="classeslabel" for="classes">{#advlink_dlg.classes}</label></td>
|
155
|
+
<td><input type="text" id="classes" name="classes" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
|
156
|
+
</tr>
|
157
|
+
|
158
|
+
<tr>
|
159
|
+
<td><label id="targetlabel" for="target">{#advlink_dlg.target_name}</label></td>
|
160
|
+
<td><input type="text" id="target" name="target" value="" onchange="selectByValue(this.form,'targetlist',this.value,true);" /></td>
|
161
|
+
</tr>
|
162
|
+
|
163
|
+
<tr>
|
164
|
+
<td class="column1"><label id="dirlabel" for="dir">{#advlink_dlg.langdir}</label></td>
|
165
|
+
<td>
|
166
|
+
<select id="dir" name="dir">
|
167
|
+
<option value="">{#not_set}</option>
|
168
|
+
<option value="ltr">{#advlink_dlg.ltr}</option>
|
169
|
+
<option value="rtl">{#advlink_dlg.rtl}</option>
|
170
|
+
</select>
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
|
174
|
+
<tr>
|
175
|
+
<td><label id="hreflanglabel" for="hreflang">{#advlink_dlg.target_langcode}</label></td>
|
176
|
+
<td><input type="text" id="hreflang" name="hreflang" value="" /></td>
|
177
|
+
</tr>
|
178
|
+
|
179
|
+
<tr>
|
180
|
+
<td class="column1"><label id="langlabel" for="lang">{#advlink_dlg.langcode}</label></td>
|
181
|
+
<td>
|
182
|
+
<input id="lang" name="lang" type="text" value="" />
|
183
|
+
</td>
|
184
|
+
</tr>
|
185
|
+
|
186
|
+
<tr>
|
187
|
+
<td><label id="charsetlabel" for="charset">{#advlink_dlg.encoding}</label></td>
|
188
|
+
<td><input type="text" id="charset" name="charset" value="" /></td>
|
189
|
+
</tr>
|
190
|
+
|
191
|
+
<tr>
|
192
|
+
<td><label id="typelabel" for="type">{#advlink_dlg.mime}</label></td>
|
193
|
+
<td><input type="text" id="type" name="type" value="" /></td>
|
194
|
+
</tr>
|
195
|
+
|
196
|
+
<tr>
|
197
|
+
<td><label id="rellabel" for="rel">{#advlink_dlg.rel}</label></td>
|
198
|
+
<td><select id="rel" name="rel">
|
199
|
+
<option value="">{#not_set}</option>
|
200
|
+
<option value="lightbox">Lightbox</option>
|
201
|
+
<option value="alternate">Alternate</option>
|
202
|
+
<option value="designates">Designates</option>
|
203
|
+
<option value="stylesheet">Stylesheet</option>
|
204
|
+
<option value="start">Start</option>
|
205
|
+
<option value="next">Next</option>
|
206
|
+
<option value="prev">Prev</option>
|
207
|
+
<option value="contents">Contents</option>
|
208
|
+
<option value="index">Index</option>
|
209
|
+
<option value="glossary">Glossary</option>
|
210
|
+
<option value="copyright">Copyright</option>
|
211
|
+
<option value="chapter">Chapter</option>
|
212
|
+
<option value="subsection">Subsection</option>
|
213
|
+
<option value="appendix">Appendix</option>
|
214
|
+
<option value="help">Help</option>
|
215
|
+
<option value="bookmark">Bookmark</option>
|
216
|
+
<option value="nofollow">No Follow</option>
|
217
|
+
<option value="tag">Tag</option>
|
218
|
+
</select>
|
219
|
+
</td>
|
220
|
+
</tr>
|
221
|
+
|
222
|
+
<tr>
|
223
|
+
<td><label id="revlabel" for="rev">{#advlink_dlg.rev}</label></td>
|
224
|
+
<td><select id="rev" name="rev">
|
225
|
+
<option value="">{#not_set}</option>
|
226
|
+
<option value="alternate">Alternate</option>
|
227
|
+
<option value="designates">Designates</option>
|
228
|
+
<option value="stylesheet">Stylesheet</option>
|
229
|
+
<option value="start">Start</option>
|
230
|
+
<option value="next">Next</option>
|
231
|
+
<option value="prev">Prev</option>
|
232
|
+
<option value="contents">Contents</option>
|
233
|
+
<option value="index">Index</option>
|
234
|
+
<option value="glossary">Glossary</option>
|
235
|
+
<option value="copyright">Copyright</option>
|
236
|
+
<option value="chapter">Chapter</option>
|
237
|
+
<option value="subsection">Subsection</option>
|
238
|
+
<option value="appendix">Appendix</option>
|
239
|
+
<option value="help">Help</option>
|
240
|
+
<option value="bookmark">Bookmark</option>
|
241
|
+
</select>
|
242
|
+
</td>
|
243
|
+
</tr>
|
244
|
+
|
245
|
+
<tr>
|
246
|
+
<td><label id="tabindexlabel" for="tabindex">{#advlink_dlg.tabindex}</label></td>
|
247
|
+
<td><input type="text" id="tabindex" name="tabindex" value="" /></td>
|
248
|
+
</tr>
|
249
|
+
|
250
|
+
<tr>
|
251
|
+
<td><label id="accesskeylabel" for="accesskey">{#advlink_dlg.accesskey}</label></td>
|
252
|
+
<td><input type="text" id="accesskey" name="accesskey" value="" /></td>
|
253
|
+
</tr>
|
254
|
+
</table>
|
255
|
+
</fieldset>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
<div id="events_panel" class="panel">
|
259
|
+
<fieldset>
|
260
|
+
<legend>{#advlink_dlg.event_props}</legend>
|
261
|
+
|
262
|
+
<table border="0" cellpadding="0" cellspacing="4">
|
263
|
+
<tr>
|
264
|
+
<td class="column1"><label for="onfocus">onfocus</label></td>
|
265
|
+
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
|
266
|
+
</tr>
|
267
|
+
|
268
|
+
<tr>
|
269
|
+
<td class="column1"><label for="onblur">onblur</label></td>
|
270
|
+
<td><input id="onblur" name="onblur" type="text" value="" /></td>
|
271
|
+
</tr>
|
272
|
+
|
273
|
+
<tr>
|
274
|
+
<td class="column1"><label for="onclick">onclick</label></td>
|
275
|
+
<td><input id="onclick" name="onclick" type="text" value="" /></td>
|
276
|
+
</tr>
|
277
|
+
|
278
|
+
<tr>
|
279
|
+
<td class="column1"><label for="ondblclick">ondblclick</label></td>
|
280
|
+
<td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
|
281
|
+
</tr>
|
282
|
+
|
283
|
+
<tr>
|
284
|
+
<td class="column1"><label for="onmousedown">onmousedown</label></td>
|
285
|
+
<td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
|
286
|
+
</tr>
|
287
|
+
|
288
|
+
<tr>
|
289
|
+
<td class="column1"><label for="onmouseup">onmouseup</label></td>
|
290
|
+
<td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
|
291
|
+
</tr>
|
292
|
+
|
293
|
+
<tr>
|
294
|
+
<td class="column1"><label for="onmouseover">onmouseover</label></td>
|
295
|
+
<td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
|
296
|
+
</tr>
|
297
|
+
|
298
|
+
<tr>
|
299
|
+
<td class="column1"><label for="onmousemove">onmousemove</label></td>
|
300
|
+
<td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
|
301
|
+
</tr>
|
302
|
+
|
303
|
+
<tr>
|
304
|
+
<td class="column1"><label for="onmouseout">onmouseout</label></td>
|
305
|
+
<td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
|
306
|
+
</tr>
|
307
|
+
|
308
|
+
<tr>
|
309
|
+
<td class="column1"><label for="onkeypress">onkeypress</label></td>
|
310
|
+
<td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
|
311
|
+
</tr>
|
312
|
+
|
313
|
+
<tr>
|
314
|
+
<td class="column1"><label for="onkeydown">onkeydown</label></td>
|
315
|
+
<td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
|
316
|
+
</tr>
|
317
|
+
|
318
|
+
<tr>
|
319
|
+
<td class="column1"><label for="onkeyup">onkeyup</label></td>
|
320
|
+
<td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
|
321
|
+
</tr>
|
322
|
+
</table>
|
323
|
+
</fieldset>
|
324
|
+
</div>
|
325
|
+
</div>
|
326
|
+
|
327
|
+
<div class="mceActionPanel">
|
328
|
+
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
329
|
+
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
330
|
+
</div>
|
331
|
+
</form>
|
332
|
+
</body>
|
333
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})();
|
@@ -0,0 +1,154 @@
|
|
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
|
+
var each = tinymce.each;
|
13
|
+
|
14
|
+
tinymce.create('tinymce.plugins.AdvListPlugin', {
|
15
|
+
init : function(ed, url) {
|
16
|
+
var t = this;
|
17
|
+
|
18
|
+
t.editor = ed;
|
19
|
+
|
20
|
+
function buildFormats(str) {
|
21
|
+
var formats = [];
|
22
|
+
|
23
|
+
each(str.split(/,/), function(type) {
|
24
|
+
formats.push({
|
25
|
+
title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')),
|
26
|
+
styles : {
|
27
|
+
listStyleType : type == 'default' ? '' : type
|
28
|
+
}
|
29
|
+
});
|
30
|
+
});
|
31
|
+
|
32
|
+
return formats;
|
33
|
+
};
|
34
|
+
|
35
|
+
// Setup number formats from config or default
|
36
|
+
t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");
|
37
|
+
t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square");
|
38
|
+
},
|
39
|
+
|
40
|
+
createControl: function(name, cm) {
|
41
|
+
var t = this, btn, format;
|
42
|
+
|
43
|
+
if (name == 'numlist' || name == 'bullist') {
|
44
|
+
// Default to first item if it's a default item
|
45
|
+
if (t[name][0].title == 'advlist.def')
|
46
|
+
format = t[name][0];
|
47
|
+
|
48
|
+
function hasFormat(node, format) {
|
49
|
+
var state = true;
|
50
|
+
|
51
|
+
each(format.styles, function(value, name) {
|
52
|
+
// Format doesn't match
|
53
|
+
if (t.editor.dom.getStyle(node, name) != value) {
|
54
|
+
state = false;
|
55
|
+
return false;
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
return state;
|
60
|
+
};
|
61
|
+
|
62
|
+
function applyListFormat() {
|
63
|
+
var list, ed = t.editor, dom = ed.dom, sel = ed.selection;
|
64
|
+
|
65
|
+
// Check for existing list element
|
66
|
+
list = dom.getParent(sel.getNode(), 'ol,ul');
|
67
|
+
|
68
|
+
// Switch/add list type if needed
|
69
|
+
if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format))
|
70
|
+
ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList');
|
71
|
+
|
72
|
+
// Append styles to new list element
|
73
|
+
if (format) {
|
74
|
+
list = dom.getParent(sel.getNode(), 'ol,ul');
|
75
|
+
|
76
|
+
if (list) {
|
77
|
+
dom.setStyles(list, format.styles);
|
78
|
+
list.removeAttribute('_mce_style');
|
79
|
+
}
|
80
|
+
}
|
81
|
+
};
|
82
|
+
|
83
|
+
btn = cm.createSplitButton(name, {
|
84
|
+
title : 'advanced.' + name + '_desc',
|
85
|
+
'class' : 'mce_' + name,
|
86
|
+
onclick : function() {
|
87
|
+
applyListFormat();
|
88
|
+
}
|
89
|
+
});
|
90
|
+
|
91
|
+
btn.onRenderMenu.add(function(btn, menu) {
|
92
|
+
menu.onShowMenu.add(function() {
|
93
|
+
var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList;
|
94
|
+
|
95
|
+
if (list || format) {
|
96
|
+
fmtList = t[name];
|
97
|
+
|
98
|
+
// Unselect existing items
|
99
|
+
each(menu.items, function(item) {
|
100
|
+
var state = true;
|
101
|
+
|
102
|
+
item.setSelected(0);
|
103
|
+
|
104
|
+
if (list && !item.isDisabled()) {
|
105
|
+
each(fmtList, function(fmt) {
|
106
|
+
if (fmt.id == item.id) {
|
107
|
+
if (!hasFormat(list, fmt)) {
|
108
|
+
state = false;
|
109
|
+
return false;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
});
|
113
|
+
|
114
|
+
if (state)
|
115
|
+
item.setSelected(1);
|
116
|
+
}
|
117
|
+
});
|
118
|
+
|
119
|
+
// Select the current format
|
120
|
+
if (!list)
|
121
|
+
menu.items[format.id].setSelected(1);
|
122
|
+
}
|
123
|
+
});
|
124
|
+
|
125
|
+
menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
|
126
|
+
|
127
|
+
each(t[name], function(item) {
|
128
|
+
item.id = t.editor.dom.uniqueId();
|
129
|
+
|
130
|
+
menu.add({id : item.id, title : item.title, onclick : function() {
|
131
|
+
format = item;
|
132
|
+
applyListFormat();
|
133
|
+
}});
|
134
|
+
});
|
135
|
+
});
|
136
|
+
|
137
|
+
return btn;
|
138
|
+
}
|
139
|
+
},
|
140
|
+
|
141
|
+
getInfo : function() {
|
142
|
+
return {
|
143
|
+
longname : 'Advanced lists',
|
144
|
+
author : 'Moxiecode Systems AB',
|
145
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
146
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist',
|
147
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
148
|
+
};
|
149
|
+
}
|
150
|
+
});
|
151
|
+
|
152
|
+
// Register plugin
|
153
|
+
tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin);
|
154
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)})}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})();
|
@@ -0,0 +1,119 @@
|
|
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
|
+
/**
|
13
|
+
* Auto Resize
|
14
|
+
*
|
15
|
+
* This plugin automatically resizes the content area to fit its content height.
|
16
|
+
* It will retain a minimum height, which is the height of the content area when
|
17
|
+
* it's initialized.
|
18
|
+
*/
|
19
|
+
tinymce.create('tinymce.plugins.AutoResizePlugin', {
|
20
|
+
/**
|
21
|
+
* Initializes the plugin, this will be executed after the plugin has been created.
|
22
|
+
* This call is done before the editor instance has finished it's initialization so use the onInit event
|
23
|
+
* of the editor instance to intercept that event.
|
24
|
+
*
|
25
|
+
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
|
26
|
+
* @param {string} url Absolute URL to where the plugin is located.
|
27
|
+
*/
|
28
|
+
init : function(ed, url) {
|
29
|
+
var t = this;
|
30
|
+
|
31
|
+
if (ed.getParam('fullscreen_is_enabled'))
|
32
|
+
return;
|
33
|
+
|
34
|
+
/**
|
35
|
+
* This method gets executed each time the editor needs to resize.
|
36
|
+
*/
|
37
|
+
function resize() {
|
38
|
+
var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight;
|
39
|
+
|
40
|
+
// Get height differently depending on the browser used
|
41
|
+
myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight;
|
42
|
+
|
43
|
+
// Don't make it smaller than the minimum height
|
44
|
+
if (myHeight > t.autoresize_min_height)
|
45
|
+
resizeHeight = myHeight;
|
46
|
+
|
47
|
+
// Resize content element
|
48
|
+
DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
|
49
|
+
|
50
|
+
// if we're throbbing, we'll re-throb to match the new size
|
51
|
+
if (t.throbbing) {
|
52
|
+
ed.setProgressState(false);
|
53
|
+
ed.setProgressState(true);
|
54
|
+
}
|
55
|
+
};
|
56
|
+
|
57
|
+
t.editor = ed;
|
58
|
+
|
59
|
+
// Define minimum height
|
60
|
+
t.autoresize_min_height = ed.getElement().offsetHeight;
|
61
|
+
|
62
|
+
// Add appropriate listeners for resizing content area
|
63
|
+
ed.onChange.add(resize);
|
64
|
+
ed.onSetContent.add(resize);
|
65
|
+
ed.onPaste.add(resize);
|
66
|
+
ed.onKeyUp.add(resize);
|
67
|
+
ed.onPostRender.add(resize);
|
68
|
+
|
69
|
+
if (ed.getParam('autoresize_on_init', true)) {
|
70
|
+
// Things to do when the editor is ready
|
71
|
+
ed.onInit.add(function(ed, l) {
|
72
|
+
// Show throbber until content area is resized properly
|
73
|
+
ed.setProgressState(true);
|
74
|
+
t.throbbing = true;
|
75
|
+
|
76
|
+
// Hide scrollbars
|
77
|
+
ed.getBody().style.overflowY = "hidden";
|
78
|
+
});
|
79
|
+
|
80
|
+
ed.onLoadContent.add(function(ed, l) {
|
81
|
+
resize();
|
82
|
+
|
83
|
+
// Because the content area resizes when its content CSS loads,
|
84
|
+
// and we can't easily add a listener to its onload event,
|
85
|
+
// we'll just trigger a resize after a short loading period
|
86
|
+
setTimeout(function() {
|
87
|
+
resize();
|
88
|
+
|
89
|
+
// Disable throbber
|
90
|
+
ed.setProgressState(false);
|
91
|
+
t.throbbing = false;
|
92
|
+
}, 1250);
|
93
|
+
});
|
94
|
+
}
|
95
|
+
|
96
|
+
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
|
97
|
+
ed.addCommand('mceAutoResize', resize);
|
98
|
+
},
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Returns information about the plugin as a name/value array.
|
102
|
+
* The current keys are longname, author, authorurl, infourl and version.
|
103
|
+
*
|
104
|
+
* @return {Object} Name/value array containing information about the plugin.
|
105
|
+
*/
|
106
|
+
getInfo : function() {
|
107
|
+
return {
|
108
|
+
longname : 'Auto Resize',
|
109
|
+
author : 'Moxiecode Systems AB',
|
110
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
111
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize',
|
112
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
113
|
+
};
|
114
|
+
}
|
115
|
+
});
|
116
|
+
|
117
|
+
// Register plugin
|
118
|
+
tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin);
|
119
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|<br[^>]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()<i.getTime()){return b}h.removeDraft()}else{return b}}}return false},removeDraft:function(){var h=this,k=h.storage,i=h.key,j;if(k){j=k.getItem(i);k.removeItem(i);k.removeItem(i+"_expires");if(j){h.onRemoveDraft.dispatch(h,{content:j})}}},"static":{_beforeUnloadHandler:function(h){var i;e.each(tinyMCE.editors,function(j){if(j.plugins.autosave){j.plugins.autosave.storeDraft()}if(j.getParam("fullscreen_is_enabled")){return}if(!i&&j.isDirty()&&j.getParam("autosave_ask_before_unload")){i=j.getLang("autosave.unload_msg")}});return i}}});e.PluginManager.add("autosave",e.plugins.AutoSave)})(tinymce);
|