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,27 @@
|
|
1
|
+
/**
|
2
|
+
* @version Alpha 0.1 2008-05-10 23:28:43 $
|
3
|
+
* @package Silver skin for WYMeditor
|
4
|
+
* @copyright Copyright (C) 2008 Scott Edwin Lewis. All rights reserved.
|
5
|
+
* @license GNU/GPL, see COPYING
|
6
|
+
* Silver skin for WYMeditor is free software and is licensed under the
|
7
|
+
* GNU General Public License. See COPYING for copyright notices and details.
|
8
|
+
*/
|
9
|
+
|
10
|
+
Adds custom buttons and color palette to the WYMeditor XHTML Editor.
|
11
|
+
|
12
|
+
INSTALLATION:
|
13
|
+
|
14
|
+
1. Copy the entire /silver/ directory to /wymeditor/skins/
|
15
|
+
2. Initialize the WYMeditor 'skin' option as below:
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
jQuery(function() {
|
19
|
+
|
20
|
+
jQuery('.wymeditor').wymeditor({
|
21
|
+
skin: 'silver'
|
22
|
+
});
|
23
|
+
|
24
|
+
});
|
25
|
+
</script>
|
26
|
+
|
27
|
+
That's it. You're done.
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,297 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* screen.css
|
12
|
+
* main stylesheet for the default WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
17
|
+
* Scott Edwin Lewis
|
18
|
+
*/
|
19
|
+
|
20
|
+
/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
|
21
|
+
.wym_skin_silver p, .wym_skin_silver h2, .wym_skin_silver h3,
|
22
|
+
.wym_skin_silver ul, .wym_skin_silver li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
|
23
|
+
|
24
|
+
|
25
|
+
/*HIDDEN BY DEFAULT*/
|
26
|
+
.wym_skin_silver .wym_area_left { display: none; }
|
27
|
+
.wym_skin_silver .wym_area_right { display: block; }
|
28
|
+
|
29
|
+
|
30
|
+
/*TYPO*/
|
31
|
+
.wym_skin_silver { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
|
32
|
+
.wym_skin_silver h2 { font-size: 110%; /* = 11px */}
|
33
|
+
.wym_skin_silver h3 { font-size: 100%; /* = 10px */}
|
34
|
+
.wym_skin_silver li { font-size: 100%; /* = 10px */}
|
35
|
+
|
36
|
+
|
37
|
+
/*WYM_BOX*/
|
38
|
+
.wym_skin_silver { border: 1px solid gray; background: #f2f2f2; padding: 0px; margin: 0px;}
|
39
|
+
|
40
|
+
/*auto-clear the wym_box*/
|
41
|
+
.wym_skin_silver:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
42
|
+
* html .wym_skin_silver { height: 1%;}
|
43
|
+
|
44
|
+
|
45
|
+
/*WYM_HTML*/
|
46
|
+
.wym_skin_silver .wym_html { width: 98%;}
|
47
|
+
.wym_skin_silver .wym_html textarea { width: 100%; height: 200px; border: 1px solid gray; background: white; }
|
48
|
+
|
49
|
+
|
50
|
+
/*WYM_IFRAME*/
|
51
|
+
.wym_skin_silver .wym_iframe { width: 98%;}
|
52
|
+
.wym_skin_silver .wym_iframe iframe { width: 100%; height: 200px; border: 1px solid gray; background: white }
|
53
|
+
|
54
|
+
|
55
|
+
/*AREAS*/
|
56
|
+
.wym_skin_silver .wym_area_left { width: 150px; float: left;}
|
57
|
+
.wym_skin_silver .wym_area_right { width: 150px; float: right;}
|
58
|
+
.wym_skin_silver .wym_area_bottom { height: 1%; clear: both;}
|
59
|
+
* html .wym_skin_silver .wym_area_main { height: 1%;}
|
60
|
+
* html .wym_skin_silver .wym_area_top { height: 1%;}
|
61
|
+
*+html .wym_skin_silver .wym_area_top { height: 1%;}
|
62
|
+
|
63
|
+
/*SECTIONS SYSTEM*/
|
64
|
+
|
65
|
+
/*common defaults for all sections*/
|
66
|
+
.wym_skin_silver .wym_section { margin-bottom: 5px; }
|
67
|
+
.wym_skin_silver .wym_section h2,
|
68
|
+
.wym_skin_silver .wym_section h3 { padding: 1px 3px; margin: 0; cursor: pointer; }
|
69
|
+
.wym_skin_silver .wym_section a { padding: 5px 0px 0px 10px; display: block; text-decoration: none; color: black; }
|
70
|
+
.wym_skin_silver .wym_section a:hover { /*background-color: #DDD;*/}
|
71
|
+
/*hide section titles by default*/
|
72
|
+
.wym_skin_silver .wym_section h2 { display: none; }
|
73
|
+
/*disable any margin-collapse*/
|
74
|
+
.wym_skin_silver .wym_section { padding-top: 1px; padding-bottom: 1px; }
|
75
|
+
/*auto-clear sections*/
|
76
|
+
.wym_skin_silver .wym_section ul:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; padding: 0px; }
|
77
|
+
* html .wym_skin_silver .wym_section ul { height: 1%;}
|
78
|
+
.wym_skin_silver .wym_section li {}
|
79
|
+
|
80
|
+
/*option: add this class to a section to make it render as a panel*/
|
81
|
+
.wym_skin_silver .wym_panel { }
|
82
|
+
.wym_skin_silver .wym_panel h2 { display: block; font-size: 11px; }
|
83
|
+
|
84
|
+
/*option: add this class to a section to make it render as a dropdown menu*/
|
85
|
+
.wym_skin_silver .wym_dropdown h2 { display: block; font-size: 11px;}
|
86
|
+
.wym_skin_silver .wym_dropdown ul { position: absolute; background: white; padding: 0px;}
|
87
|
+
.wym_skin_silver .wym_dropdown:hover ul,
|
88
|
+
.wym_skin_silver .wym_dropdown.hover ul { cursor: pointer;}
|
89
|
+
.wym_skin_silver .wym_dropdown ul li a {/*border-bottom: 1px solid #AAA;*/}
|
90
|
+
|
91
|
+
/*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
|
92
|
+
.wym_skin_silver .wym_buttons li { float:left;}
|
93
|
+
.wym_skin_silver .wym_buttons a { width: 20px; height: 20px; overflow: hidden; padding: 2px; text-decoration: none !important; border: 1px solid #666; }
|
94
|
+
.wym_skin_silver .wym_buttons a:hover { text-decoration: none !important; border: 1px solid #000;}
|
95
|
+
/*image replacements*/
|
96
|
+
.wym_skin_silver .wym_buttons li a { background: url(images/icons.silver.gif) no-repeat; text-indent: -9999px;}
|
97
|
+
.wym_skin_silver .wym_buttons li.wym_tools_strong a { background-position: 0 -384px;}
|
98
|
+
.wym_skin_silver .wym_buttons li.wym_tools_emphasis a { background-position: 0 -24px;}
|
99
|
+
.wym_skin_silver .wym_buttons li.wym_tools_superscript a { background-position: 0 -432px;}
|
100
|
+
.wym_skin_silver .wym_buttons li.wym_tools_subscript a { background-position: 0 -456px;}
|
101
|
+
.wym_skin_silver .wym_buttons li.wym_tools_ordered_list a { background-position: 0 -48px;}
|
102
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
|
103
|
+
.wym_skin_silver .wym_buttons li.wym_tools_indent a { background-position: 0 -600px;}
|
104
|
+
.wym_skin_silver .wym_buttons li.wym_tools_outdent a { background-position: 0 -624px;}
|
105
|
+
.wym_skin_silver .wym_buttons li.wym_tools_undo a { background-position: 0 -504px;}
|
106
|
+
.wym_skin_silver .wym_buttons li.wym_tools_redo a { background-position: 0 -528px;}
|
107
|
+
.wym_skin_silver .wym_buttons li.wym_tools_link a { background-position: 0 -96px;}
|
108
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unlink a { background-position: 0 -168px;}
|
109
|
+
.wym_skin_silver .wym_buttons li.wym_tools_image a { background-position: 0 -120px;}
|
110
|
+
.wym_skin_silver .wym_buttons li.wym_tools_table a { background-position: 0 -144px;}
|
111
|
+
.wym_skin_silver .wym_buttons li.wym_tools_paste a { background-position: 0 -552px;}
|
112
|
+
.wym_skin_silver .wym_buttons li.wym_tools_html a { background-position: 0 -192px;}
|
113
|
+
.wym_skin_silver .wym_buttons li.wym_tools_preview a { background-position: 0 -408px;}
|
114
|
+
.wym_skin_silver .wym_buttons li.wym_tools_gadget a { background-position: 0 -576px;}
|
115
|
+
|
116
|
+
.wym_skin_silver .wym_buttons li.wym_tools_strong a:hover { background-position: -24px -384px;}
|
117
|
+
.wym_skin_silver .wym_buttons li.wym_tools_emphasis a:hover { background-position: -24px -24px;}
|
118
|
+
.wym_skin_silver .wym_buttons li.wym_tools_superscript a:hover { background-position: -24px -432px;}
|
119
|
+
.wym_skin_silver .wym_buttons li.wym_tools_subscript a:hover { background-position: -24px -456px;}
|
120
|
+
.wym_skin_silver .wym_buttons li.wym_tools_ordered_list a:hover { background-position: -24px -48px;}
|
121
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unordered_list a:hover{ background-position: -24px -72px;}
|
122
|
+
.wym_skin_silver .wym_buttons li.wym_tools_indent a:hover { background-position: -24px -600px;}
|
123
|
+
.wym_skin_silver .wym_buttons li.wym_tools_outdent a:hover { background-position: -24px -624px;}
|
124
|
+
.wym_skin_silver .wym_buttons li.wym_tools_undo a:hover { background-position: -24px -504px;}
|
125
|
+
.wym_skin_silver .wym_buttons li.wym_tools_redo a:hover { background-position: -24px -528px;}
|
126
|
+
.wym_skin_silver .wym_buttons li.wym_tools_link a:hover { background-position: -24px -96px;}
|
127
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unlink a:hover { background-position: -24px -168px;}
|
128
|
+
.wym_skin_silver .wym_buttons li.wym_tools_image a:hover { background-position: -24px -120px;}
|
129
|
+
.wym_skin_silver .wym_buttons li.wym_tools_table a:hover { background-position: -24px -144px;}
|
130
|
+
.wym_skin_silver .wym_buttons li.wym_tools_paste a:hover { background-position: -24px -552px;}
|
131
|
+
.wym_skin_silver .wym_buttons li.wym_tools_html a:hover { background-position: -24px -192px;}
|
132
|
+
.wym_skin_silver .wym_buttons li.wym_tools_preview a:hover { background-position: -24px -408px;}
|
133
|
+
.wym_skin_silver .wym_buttons li.wym_tools_gadget a:hover { background-position: -24px -576px;}
|
134
|
+
|
135
|
+
/*DECORATION*/
|
136
|
+
.wym_skin_silver .wym_section h2 { background: #ddd; border: none;}
|
137
|
+
.wym_skin_silver .wym_section h2 span { color: gray;}
|
138
|
+
.wym_skin_silver .wym_panel { padding: 0; border: solid gray; border-width: 0px;}
|
139
|
+
.wym_skin_silver .wym_panel ul { margin: 2px 0 5px; }
|
140
|
+
.wym_skin_silver .wym_dropdown { padding: 0; border: none; }
|
141
|
+
.wym_skin_silver .wym_dropdown ul { border: none; margin-left: -1px; padding: 0px;}
|
142
|
+
|
143
|
+
/*DIALOGS*/
|
144
|
+
.wym_dialog div.row { margin-bottom: 5px;}
|
145
|
+
.wym_dialog div.row input { margin-right: 5px;}
|
146
|
+
.wym_dialog div.row label { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
|
147
|
+
.wym_dialog div.row-indent { padding-left: 160px; }
|
148
|
+
/*autoclearing*/
|
149
|
+
.wym_dialog div.row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
150
|
+
.wym_dialog div.row { display: inline-block; }
|
151
|
+
/* Hides from IE-mac \*/
|
152
|
+
* html .wym_dialog div.row { height: 1%; }
|
153
|
+
.wym_dialog div.row { display: block; }
|
154
|
+
/* End hide from IE-mac */
|
155
|
+
|
156
|
+
/*WYMEDITOR_LINK*/
|
157
|
+
a.wym_wymeditor_link
|
158
|
+
{
|
159
|
+
text-indent: -9999px;
|
160
|
+
float: right;
|
161
|
+
display: block;
|
162
|
+
width: 50px;
|
163
|
+
height: 15px;
|
164
|
+
background: url(../wymeditor_icon.png);
|
165
|
+
background-position: 1px 1px;
|
166
|
+
background-repeat: no-repeat;
|
167
|
+
overflow: hidden;
|
168
|
+
text-decoration: none;
|
169
|
+
padding: 1px !important;
|
170
|
+
border: 1px solid #333 !important;
|
171
|
+
background-color: #FFF !important;
|
172
|
+
}
|
173
|
+
|
174
|
+
.wym_box
|
175
|
+
{
|
176
|
+
padding: 0px !important;
|
177
|
+
margin: 0px;
|
178
|
+
}
|
179
|
+
.wym_inner
|
180
|
+
{
|
181
|
+
border-left: 1px solid #FFF;
|
182
|
+
border-top: 1px solid #FFF;
|
183
|
+
border-right: 1px solid #FFF;
|
184
|
+
border-bottom: 1px solid #FFF;
|
185
|
+
padding: 5px;
|
186
|
+
background-color: #B8C1C4;
|
187
|
+
height: auto;
|
188
|
+
}
|
189
|
+
|
190
|
+
.clear {clear: both;}
|
191
|
+
|
192
|
+
div.wym_dropdown
|
193
|
+
{
|
194
|
+
cursor: pointer;
|
195
|
+
width: 138px !important;
|
196
|
+
margin: 0px 4px 10px 0px !important;
|
197
|
+
padding: 0px;
|
198
|
+
z-index: 1001;
|
199
|
+
display: block;
|
200
|
+
border: 1px solid red;
|
201
|
+
}
|
202
|
+
|
203
|
+
div.wym_dropdown ul
|
204
|
+
{
|
205
|
+
display: none;
|
206
|
+
width: 124px;
|
207
|
+
padding: 0px !important;
|
208
|
+
margin: 0px !important;
|
209
|
+
list-style-type: none;
|
210
|
+
list-style-image: none;
|
211
|
+
z-index: 1002;
|
212
|
+
position: absolute;
|
213
|
+
border-top: 1px solid #AAA;
|
214
|
+
}
|
215
|
+
|
216
|
+
div.wym_dropdown ul li
|
217
|
+
{
|
218
|
+
width: 146px;
|
219
|
+
height: 20px;
|
220
|
+
padding: 0px !important;
|
221
|
+
margin: 0px;
|
222
|
+
border: 1px solid #777;
|
223
|
+
border-top: none;
|
224
|
+
background: #DDD;
|
225
|
+
list-style-image: none;
|
226
|
+
}
|
227
|
+
|
228
|
+
div.wym_dropdown h2
|
229
|
+
{
|
230
|
+
width: 138px;
|
231
|
+
height: 16px;
|
232
|
+
color: #000 !important;
|
233
|
+
background-image: url(images/bg.selector.silver.gif) !important;
|
234
|
+
background-position: 0px -18px;
|
235
|
+
background-repeat: no-repeat;
|
236
|
+
border: none;
|
237
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
238
|
+
font-size: 12px !important;
|
239
|
+
font-weight: bold !important;
|
240
|
+
padding: 2px 0px 0px 10px !important;
|
241
|
+
margin: 0px !important;
|
242
|
+
}
|
243
|
+
|
244
|
+
.wym_skin_silver .wym_panel h2
|
245
|
+
{
|
246
|
+
width: 138px;
|
247
|
+
height: 16px;
|
248
|
+
color: #000 !important;
|
249
|
+
background-image: url(images/bg.header.gif) !important;
|
250
|
+
background-position: 0px 0px;
|
251
|
+
background-repeat: no-repeat;
|
252
|
+
border: none;
|
253
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
254
|
+
font-size: 12px !important;
|
255
|
+
font-weight: bold !important;
|
256
|
+
padding: 2px 0px 0px 10px !important;
|
257
|
+
margin: 0px !important;
|
258
|
+
}
|
259
|
+
|
260
|
+
.wym_skin_silver .wym_panel ul
|
261
|
+
{
|
262
|
+
margin-top: 0px !important;
|
263
|
+
}
|
264
|
+
|
265
|
+
.wym_skin_silver .wym_panel ul li
|
266
|
+
{
|
267
|
+
width: 146px;
|
268
|
+
height: 20px;
|
269
|
+
padding: 0px !important;
|
270
|
+
margin: 0px;
|
271
|
+
border: 1px solid #777;
|
272
|
+
border-top: none;
|
273
|
+
background: #DDD;
|
274
|
+
list-style-image: none;
|
275
|
+
}
|
276
|
+
|
277
|
+
.wym_skin_silver .wym_panel a,
|
278
|
+
div.wym_dropdown a
|
279
|
+
{
|
280
|
+
text-decoration: none;
|
281
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
282
|
+
font-size: 12px;
|
283
|
+
padding: 5px 0px 0px 10px !important;
|
284
|
+
display: block;
|
285
|
+
width: 136px;
|
286
|
+
height: 15px;
|
287
|
+
color: #000;
|
288
|
+
text-align: left !important;
|
289
|
+
margin-left: 0px !important;
|
290
|
+
}
|
291
|
+
|
292
|
+
div.wym_dropdown a:hover,
|
293
|
+
.wym_skin_silver .wym_panel a:hover
|
294
|
+
{
|
295
|
+
background: #BBB;
|
296
|
+
border-bottom: none !important;
|
297
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/* This file is part of the Silver skin for WYMeditor by Scott Edwin Lewis */
|
2
|
+
|
3
|
+
jQuery.fn.selectify = function() {
|
4
|
+
return this.each(function() {
|
5
|
+
jQuery(this).hover(
|
6
|
+
function() {
|
7
|
+
jQuery("h2", this).css("background-position", "0px -18px");
|
8
|
+
jQuery("ul", this).fadeIn("fast");
|
9
|
+
},
|
10
|
+
function() {
|
11
|
+
jQuery("h2", this).css("background-position", "");
|
12
|
+
jQuery("ul", this).fadeOut("fast");
|
13
|
+
}
|
14
|
+
);
|
15
|
+
});
|
16
|
+
};
|
17
|
+
|
18
|
+
WYMeditor.SKINS['silver'] = {
|
19
|
+
|
20
|
+
init: function(wym) {
|
21
|
+
|
22
|
+
//add some elements to improve the rendering
|
23
|
+
jQuery(wym._box)
|
24
|
+
.append('<div class="clear"></div>')
|
25
|
+
.wrapInner('<div class="wym_inner"></div>');
|
26
|
+
|
27
|
+
//render following sections as panels
|
28
|
+
jQuery(wym._box).find(wym._options.classesSelector)
|
29
|
+
.addClass("wym_panel");
|
30
|
+
|
31
|
+
//render following sections as buttons
|
32
|
+
jQuery(wym._box).find(wym._options.toolsSelector)
|
33
|
+
.addClass("wym_buttons");
|
34
|
+
|
35
|
+
//render following sections as dropdown menus
|
36
|
+
jQuery(wym._box).find(wym._options.containersSelector)
|
37
|
+
.addClass("wym_dropdown")
|
38
|
+
.selectify();
|
39
|
+
|
40
|
+
// auto add some margin to the main area sides if left area
|
41
|
+
// or right area are not empty (if they contain sections)
|
42
|
+
jQuery(wym._box).find("div.wym_area_right ul")
|
43
|
+
.parents("div.wym_area_right").show()
|
44
|
+
.parents(wym._options.boxSelector)
|
45
|
+
.find("div.wym_area_main")
|
46
|
+
.css({"margin-right": "155px"});
|
47
|
+
|
48
|
+
jQuery(wym._box).find("div.wym_area_left ul")
|
49
|
+
.parents("div.wym_area_left").show()
|
50
|
+
.parents(wym._options.boxSelector)
|
51
|
+
.find("div.wym_area_main")
|
52
|
+
.css({"margin-left": "155px"});
|
53
|
+
|
54
|
+
//make hover work under IE < 7
|
55
|
+
jQuery(wym._box).find(".wym_section").hover(function(){
|
56
|
+
jQuery(this).addClass("hover");
|
57
|
+
},function(){
|
58
|
+
jQuery(this).removeClass("hover");
|
59
|
+
});
|
60
|
+
}
|
61
|
+
};
|
Binary file
|
@@ -0,0 +1,134 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* screen.css
|
12
|
+
* main stylesheet for the WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
17
|
+
* Jean-Francois Hovinne
|
18
|
+
*/
|
19
|
+
|
20
|
+
/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
|
21
|
+
.wym_skin_twopanels p, .wym_skin_twopanels h2, .wym_skin_twopanels h3,
|
22
|
+
.wym_skin_twopanels ul, .wym_skin_twopanels li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
|
23
|
+
|
24
|
+
|
25
|
+
/*HIDDEN BY DEFAULT*/
|
26
|
+
.wym_skin_twopanels .wym_area_left { display: block; }
|
27
|
+
.wym_skin_twopanels .wym_area_right { display: block; }
|
28
|
+
|
29
|
+
|
30
|
+
/*TYPO*/
|
31
|
+
.wym_skin_twopanels { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
|
32
|
+
.wym_skin_twopanels h2 { font-size: 110%; /* = 11px */}
|
33
|
+
.wym_skin_twopanels h3 { font-size: 100%; /* = 10px */}
|
34
|
+
.wym_skin_twopanels li { font-size: 100%; /* = 10px */}
|
35
|
+
|
36
|
+
|
37
|
+
/*WYM_BOX*/
|
38
|
+
.wym_skin_twopanels { border: 1px solid gray; background: #f2f2f2; padding: 5px}
|
39
|
+
|
40
|
+
/*auto-clear the wym_box*/
|
41
|
+
.wym_skin_twopanels:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
42
|
+
* html .wym_skin_twopanels { height: 1%;}
|
43
|
+
|
44
|
+
|
45
|
+
/*WYM_HTML*/
|
46
|
+
.wym_skin_twopanels .wym_html { width: 98%;}
|
47
|
+
.wym_skin_twopanels .wym_html textarea { width: 100%; height: 200px; border: 1px solid gray; background: white; }
|
48
|
+
|
49
|
+
|
50
|
+
/*WYM_IFRAME*/
|
51
|
+
.wym_skin_twopanels .wym_iframe { width: 98%;}
|
52
|
+
.wym_skin_twopanels .wym_iframe iframe { width: 100%; height: 200px; border: 1px solid gray; background: white }
|
53
|
+
|
54
|
+
|
55
|
+
/*AREAS*/
|
56
|
+
.wym_skin_twopanels .wym_area_left { width: 100px; float: left;}
|
57
|
+
.wym_skin_twopanels .wym_area_right { width: 150px; float: right;}
|
58
|
+
.wym_skin_twopanels .wym_area_bottom { height: 1%; clear: both;}
|
59
|
+
* html .wym_skin_twopanels .wym_area_main { height: 1%;}
|
60
|
+
* html .wym_skin_twopanels .wym_area_top { height: 1%;}
|
61
|
+
*+html .wym_skin_twopanels .wym_area_top { height: 1%;}
|
62
|
+
|
63
|
+
/*SECTIONS SYSTEM*/
|
64
|
+
|
65
|
+
/*common defaults for all sections*/
|
66
|
+
.wym_skin_twopanels .wym_section { margin-bottom: 5px; }
|
67
|
+
.wym_skin_twopanels .wym_section h2,
|
68
|
+
.wym_skin_twopanels .wym_section h3 { padding: 1px 3px; margin: 0; }
|
69
|
+
.wym_skin_twopanels .wym_section a { padding: 0 3px; display: block; text-decoration: none; color: black; }
|
70
|
+
.wym_skin_twopanels .wym_section a:hover { background-color: yellow; }
|
71
|
+
/*hide section titles by default*/
|
72
|
+
.wym_skin_twopanels .wym_section h2 { display: none; }
|
73
|
+
/*disable any margin-collapse*/
|
74
|
+
.wym_skin_twopanels .wym_section { padding-top: 1px; padding-bottom: 1px; }
|
75
|
+
/*auto-clear sections*/
|
76
|
+
.wym_skin_twopanels .wym_section ul:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
77
|
+
* html .wym_skin_twopanels .wym_section ul { height: 1%;}
|
78
|
+
|
79
|
+
/*option: add this class to a section to make it render as a panel*/
|
80
|
+
.wym_skin_twopanels .wym_panel { }
|
81
|
+
.wym_skin_twopanels .wym_panel h2 { display: block; }
|
82
|
+
|
83
|
+
/*option: add this class to a section to make it render as a dropdown menu*/
|
84
|
+
.wym_skin_twopanels .wym_dropdown h2 { display: block; }
|
85
|
+
.wym_skin_twopanels .wym_dropdown ul { display: none; position: absolute; background: white; }
|
86
|
+
.wym_skin_twopanels .wym_dropdown:hover ul,
|
87
|
+
.wym_skin_twopanels .wym_dropdown.hover ul { display: block; }
|
88
|
+
|
89
|
+
/*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
|
90
|
+
.wym_skin_twopanels .wym_buttons li { float:left;}
|
91
|
+
.wym_skin_twopanels .wym_buttons a { width: 20px; height: 20px; overflow: hidden; padding: 2px }
|
92
|
+
/*image replacements*/
|
93
|
+
.wym_skin_twopanels .wym_buttons li a { background: url(icons.png) no-repeat; text-indent: -9999px;}
|
94
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_strong a { background-position: 0 -382px;}
|
95
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_emphasis a { background-position: 0 -22px;}
|
96
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_superscript a { background-position: 0 -430px;}
|
97
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_subscript a { background-position: 0 -454px;}
|
98
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_ordered_list a { background-position: 0 -48px;}
|
99
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
|
100
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_indent a { background-position: 0 -574px;}
|
101
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_outdent a { background-position: 0 -598px;}
|
102
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_undo a { background-position: 0 -502px;}
|
103
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_redo a { background-position: 0 -526px;}
|
104
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_link a { background-position: 0 -96px;}
|
105
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_unlink a { background-position: 0 -168px;}
|
106
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_image a { background-position: 0 -121px;}
|
107
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_table a { background-position: 0 -144px;}
|
108
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_paste a { background-position: 0 -552px;}
|
109
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_html a { background-position: 0 -193px;}
|
110
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_preview a { background-position: 0 -408px;}
|
111
|
+
|
112
|
+
/*DECORATION*/
|
113
|
+
.wym_skin_twopanels .wym_section h2 { background: #ddd; border: solid gray; border-width: 0 0 1px;}
|
114
|
+
.wym_skin_twopanels .wym_section h2 span { color: gray;}
|
115
|
+
.wym_skin_twopanels .wym_panel { padding: 0; border: solid gray; border-width: 1px; background: white;}
|
116
|
+
.wym_skin_twopanels .wym_panel ul { margin: 2px 0 5px; }
|
117
|
+
.wym_skin_twopanels .wym_dropdown { padding: 0; border: solid gray; border-width: 1px 1px 0 1px; }
|
118
|
+
.wym_skin_twopanels .wym_dropdown ul { border: solid gray; border-width: 0 1px 1px 1px; margin-left: -1px; padding: 5px 10px 5px 3px;}
|
119
|
+
|
120
|
+
/*DIALOGS*/
|
121
|
+
.wym_dialog div.row { margin-bottom: 5px;}
|
122
|
+
.wym_dialog div.row input { margin-right: 5px;}
|
123
|
+
.wym_dialog div.row label { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
|
124
|
+
.wym_dialog div.row-indent { padding-left: 160px; }
|
125
|
+
/*autoclearing*/
|
126
|
+
.wym_dialog div.row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
127
|
+
.wym_dialog div.row { display: inline-block; }
|
128
|
+
/* Hides from IE-mac \*/
|
129
|
+
* html .wym_dialog div.row { height: 1%; }
|
130
|
+
.wym_dialog div.row { display: block; }
|
131
|
+
/* End hide from IE-mac */
|
132
|
+
|
133
|
+
/*WYMEDITOR_LINK*/
|
134
|
+
a.wym_wymeditor_link { text-indent: -9999px; float: right; display: block; width: 50px; height: 15px; background: url(../wymeditor_icon.png); overflow: hidden; text-decoration: none; }
|
@@ -0,0 +1,39 @@
|
|
1
|
+
WYMeditor.SKINS['twopanels'] = {
|
2
|
+
|
3
|
+
init: function(wym) {
|
4
|
+
|
5
|
+
//move the containers panel to the left area
|
6
|
+
jQuery(wym._box).find(wym._options.containersSelector)
|
7
|
+
.appendTo("div.wym_area_left");
|
8
|
+
|
9
|
+
//render following sections as panels
|
10
|
+
jQuery(wym._box).find(wym._options.classesSelector + ', '
|
11
|
+
+ wym._options.containersSelector)
|
12
|
+
.addClass("wym_panel");
|
13
|
+
|
14
|
+
//render following sections as buttons
|
15
|
+
jQuery(wym._box).find(wym._options.toolsSelector)
|
16
|
+
.addClass("wym_buttons");
|
17
|
+
|
18
|
+
// auto add some margin to the main area sides if left area
|
19
|
+
// or right area are not empty (if they contain sections)
|
20
|
+
jQuery(wym._box).find("div.wym_area_right ul")
|
21
|
+
.parents("div.wym_area_right").show()
|
22
|
+
.parents(wym._options.boxSelector)
|
23
|
+
.find("div.wym_area_main")
|
24
|
+
.css({"margin-right": "155px"});
|
25
|
+
|
26
|
+
jQuery(wym._box).find("div.wym_area_left ul")
|
27
|
+
.parents("div.wym_area_left").show()
|
28
|
+
.parents(wym._options.boxSelector)
|
29
|
+
.find("div.wym_area_main")
|
30
|
+
.css({"margin-left": "115px"});
|
31
|
+
|
32
|
+
//make hover work under IE < 7
|
33
|
+
jQuery(wym._box).find(".wym_section").hover(function(){
|
34
|
+
jQuery(this).addClass("hover");
|
35
|
+
},function(){
|
36
|
+
jQuery(this).removeClass("hover");
|
37
|
+
});
|
38
|
+
}
|
39
|
+
};
|
Binary file
|
@@ -29,9 +29,17 @@
|
|
29
29
|
z-index: 101;
|
30
30
|
display: block !important;
|
31
31
|
}
|
32
|
-
.yui-toolbar-imageUpload {
|
32
|
+
.yui-toolbar-imageUpload .first-child {
|
33
33
|
background: url("/images/upload_image.png") no-repeat scroll 50% 50% transparent !important;
|
34
34
|
}
|
35
|
-
.yui-toolbar-fileUpload {
|
35
|
+
.yui-toolbar-fileUpload .first-child {
|
36
36
|
background: url("/images/upload_file.png") no-repeat scroll 50% 50% transparent !important;
|
37
37
|
}
|
38
|
+
|
39
|
+
.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading {
|
40
|
+
width: 120px;
|
41
|
+
}
|
42
|
+
|
43
|
+
.yui-toolbar-group-undoredo h3, .yui-toolbar-group-insertitem h3, .yui-toolbar-group-indentlist h3 {
|
44
|
+
width: auto;
|
45
|
+
}
|
data/spree_editor.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = 'spree_editor'
|
4
|
-
s.version = '0.
|
5
|
-
s.summary = '
|
6
|
-
|
4
|
+
s.version = '0.40.0'
|
5
|
+
s.summary = 'Adds support of several WYSIWYG editors to Spree'
|
6
|
+
s.description = 'Atm supported: YUIRichEditor, WYMEditor, TinyMCE'
|
7
7
|
s.required_ruby_version = '>= 1.8.7'
|
8
8
|
|
9
|
-
s.
|
9
|
+
s.authors = ['Alexander Shuhin', 'Roman Smirnov', 'divineforest']
|
10
10
|
# s.email = 'david@loudthinking.com'
|
11
|
-
s.homepage = 'http://github.com/
|
11
|
+
s.homepage = 'http://github.com/romul/spree_editor'
|
12
12
|
# s.rubyforge_project = 'actionmailer'
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.has_rdoc = true
|
20
20
|
|
21
|
-
s.add_dependency('spree_core', '>= 0.
|
21
|
+
s.add_dependency('spree_core', '>= 0.40.0')
|
22
22
|
end
|