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,182 @@
|
|
1
|
+
/* Hide the advanced tab */
|
2
|
+
#advanced_tab {
|
3
|
+
display: none;
|
4
|
+
}
|
5
|
+
|
6
|
+
#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright {
|
7
|
+
width: 280px;
|
8
|
+
}
|
9
|
+
|
10
|
+
#doctype, #docencoding {
|
11
|
+
width: 200px;
|
12
|
+
}
|
13
|
+
|
14
|
+
#langcode {
|
15
|
+
width: 30px;
|
16
|
+
}
|
17
|
+
|
18
|
+
#bgimage {
|
19
|
+
width: 220px;
|
20
|
+
}
|
21
|
+
|
22
|
+
#fontface {
|
23
|
+
width: 240px;
|
24
|
+
}
|
25
|
+
|
26
|
+
#leftmargin, #rightmargin, #topmargin, #bottommargin {
|
27
|
+
width: 50px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.panel_wrapper div.current {
|
31
|
+
height: 400px;
|
32
|
+
}
|
33
|
+
|
34
|
+
#stylesheet, #style {
|
35
|
+
width: 240px;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Head list classes */
|
39
|
+
|
40
|
+
.headlistwrapper {
|
41
|
+
width: 100%;
|
42
|
+
}
|
43
|
+
|
44
|
+
.addbutton, .removebutton, .moveupbutton, .movedownbutton {
|
45
|
+
border-top: 1px solid;
|
46
|
+
border-left: 1px solid;
|
47
|
+
border-bottom: 1px solid;
|
48
|
+
border-right: 1px solid;
|
49
|
+
border-color: #F0F0EE;
|
50
|
+
cursor: default;
|
51
|
+
display: block;
|
52
|
+
width: 20px;
|
53
|
+
height: 20px;
|
54
|
+
}
|
55
|
+
|
56
|
+
#doctypes {
|
57
|
+
width: 200px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover {
|
61
|
+
border: 1px solid #0A246A;
|
62
|
+
background-color: #B6BDD2;
|
63
|
+
}
|
64
|
+
|
65
|
+
.addbutton {
|
66
|
+
background-image: url('../images/add.gif');
|
67
|
+
float: left;
|
68
|
+
margin-right: 3px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.removebutton {
|
72
|
+
background-image: url('../images/remove.gif');
|
73
|
+
float: left;
|
74
|
+
}
|
75
|
+
|
76
|
+
.moveupbutton {
|
77
|
+
background-image: url('../images/move_up.gif');
|
78
|
+
float: left;
|
79
|
+
margin-right: 3px;
|
80
|
+
}
|
81
|
+
|
82
|
+
.movedownbutton {
|
83
|
+
background-image: url('../images/move_down.gif');
|
84
|
+
float: left;
|
85
|
+
}
|
86
|
+
|
87
|
+
.selected {
|
88
|
+
border: 1px solid #0A246A;
|
89
|
+
background-color: #B6BDD2;
|
90
|
+
}
|
91
|
+
|
92
|
+
.toolbar {
|
93
|
+
width: 100%;
|
94
|
+
}
|
95
|
+
|
96
|
+
#headlist {
|
97
|
+
width: 100%;
|
98
|
+
margin-top: 3px;
|
99
|
+
font-size: 11px;
|
100
|
+
}
|
101
|
+
|
102
|
+
#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element {
|
103
|
+
display: none;
|
104
|
+
}
|
105
|
+
|
106
|
+
#addmenu {
|
107
|
+
position: absolute;
|
108
|
+
border: 1px solid gray;
|
109
|
+
display: none;
|
110
|
+
z-index: 100;
|
111
|
+
background-color: white;
|
112
|
+
}
|
113
|
+
|
114
|
+
#addmenu a {
|
115
|
+
display: block;
|
116
|
+
width: 100%;
|
117
|
+
line-height: 20px;
|
118
|
+
text-decoration: none;
|
119
|
+
background-color: white;
|
120
|
+
}
|
121
|
+
|
122
|
+
#addmenu a:hover {
|
123
|
+
background-color: #B6BDD2;
|
124
|
+
color: black;
|
125
|
+
}
|
126
|
+
|
127
|
+
#addmenu span {
|
128
|
+
padding-left: 10px;
|
129
|
+
padding-right: 10px;
|
130
|
+
}
|
131
|
+
|
132
|
+
#updateElementPanel {
|
133
|
+
display: none;
|
134
|
+
}
|
135
|
+
|
136
|
+
#script_element .panel_wrapper div.current {
|
137
|
+
height: 108px;
|
138
|
+
}
|
139
|
+
|
140
|
+
#style_element .panel_wrapper div.current {
|
141
|
+
height: 108px;
|
142
|
+
}
|
143
|
+
|
144
|
+
#link_element .panel_wrapper div.current {
|
145
|
+
height: 140px;
|
146
|
+
}
|
147
|
+
|
148
|
+
#element_script_value {
|
149
|
+
width: 100%;
|
150
|
+
height: 100px;
|
151
|
+
}
|
152
|
+
|
153
|
+
#element_comment_value {
|
154
|
+
width: 100%;
|
155
|
+
height: 120px;
|
156
|
+
}
|
157
|
+
|
158
|
+
#element_style_value {
|
159
|
+
width: 100%;
|
160
|
+
height: 100px;
|
161
|
+
}
|
162
|
+
|
163
|
+
#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title {
|
164
|
+
width: 250px;
|
165
|
+
}
|
166
|
+
|
167
|
+
.updateElementButton {
|
168
|
+
margin-top: 3px;
|
169
|
+
}
|
170
|
+
|
171
|
+
/* MSIE specific styles */
|
172
|
+
|
173
|
+
* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton {
|
174
|
+
width: 22px;
|
175
|
+
height: 22px;
|
176
|
+
}
|
177
|
+
|
178
|
+
textarea {
|
179
|
+
height: 55px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.panel_wrapper div.current {height:420px;}
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c<e;c++){g=l[c].split("=");b=g[0].replace(/\s/,"");h=g[1];if(h){h=h.replace(/^\s+/,"").replace(/\s+$/,"");j=h.match(/^["'](.*)["']$/);if(j){h=j[1]}}else{h=b}d.dom.setAttrib(d.getBody(),"style",h)}}}},_createSerializer:function(){return new tinymce.dom.Serializer({dom:this.editor.dom,apply_source_formatting:true})},_setContent:function(d,b){var h=this,a,j,f=b.content,g,i="";if(b.format=="raw"&&h.head){return}if(b.source_view&&d.getParam("fullpage_hide_in_source_view")){return}f=f.replace(/<(\/?)BODY/gi,"<$1body");a=f.indexOf("<body");if(a!=-1){a=f.indexOf(">",a);h.head=f.substring(0,a+1);j=f.indexOf("</body",a);if(j==-1){j=f.indexOf("</body",j)}b.content=f.substring(a+1,j);h.foot=f.substring(j);function e(c){return c.replace(/<\/?[A-Z]+/g,function(k){return k.toLowerCase()})}h.head=e(h.head);h.foot=e(h.foot)}else{h.head="";if(d.getParam("fullpage_default_xml_pi")){h.head+='<?xml version="1.0" encoding="'+d.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}h.head+=d.getParam("fullpage_default_doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');h.head+="\n<html>\n<head>\n<title>"+d.getParam("fullpage_default_title","Untitled document")+"</title>\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='<meta http-equiv="Content-Type" content="'+g+'" />\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="</head>\n<body"+(i?' style="'+i+'"':"")+">\n";h.foot="\n</body>\n</html>"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})();
|
@@ -0,0 +1,153 @@
|
|
1
|
+
/**
|
2
|
+
* editor_plugin_src.js
|
3
|
+
*
|
4
|
+
* Copyright 2009, Moxiecode Systems AB
|
5
|
+
* Released under LGPL License.
|
6
|
+
*
|
7
|
+
* License: http://tinymce.moxiecode.com/license
|
8
|
+
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function() {
|
12
|
+
tinymce.create('tinymce.plugins.FullPagePlugin', {
|
13
|
+
init : function(ed, url) {
|
14
|
+
var t = this;
|
15
|
+
|
16
|
+
t.editor = ed;
|
17
|
+
|
18
|
+
// Register commands
|
19
|
+
ed.addCommand('mceFullPageProperties', function() {
|
20
|
+
ed.windowManager.open({
|
21
|
+
file : url + '/fullpage.htm',
|
22
|
+
width : 430 + parseInt(ed.getLang('fullpage.delta_width', 0)),
|
23
|
+
height : 495 + parseInt(ed.getLang('fullpage.delta_height', 0)),
|
24
|
+
inline : 1
|
25
|
+
}, {
|
26
|
+
plugin_url : url,
|
27
|
+
head_html : t.head
|
28
|
+
});
|
29
|
+
});
|
30
|
+
|
31
|
+
// Register buttons
|
32
|
+
ed.addButton('fullpage', {title : 'fullpage.desc', cmd : 'mceFullPageProperties'});
|
33
|
+
|
34
|
+
ed.onBeforeSetContent.add(t._setContent, t);
|
35
|
+
ed.onSetContent.add(t._setBodyAttribs, t);
|
36
|
+
ed.onGetContent.add(t._getContent, t);
|
37
|
+
},
|
38
|
+
|
39
|
+
getInfo : function() {
|
40
|
+
return {
|
41
|
+
longname : 'Fullpage',
|
42
|
+
author : 'Moxiecode Systems AB',
|
43
|
+
authorurl : 'http://tinymce.moxiecode.com',
|
44
|
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage',
|
45
|
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
46
|
+
};
|
47
|
+
},
|
48
|
+
|
49
|
+
// Private plugin internal methods
|
50
|
+
|
51
|
+
_setBodyAttribs : function(ed, o) {
|
52
|
+
var bdattr, i, len, kv, k, v, t, attr = this.head.match(/body(.*?)>/i);
|
53
|
+
|
54
|
+
if (attr && attr[1]) {
|
55
|
+
bdattr = attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);
|
56
|
+
|
57
|
+
if (bdattr) {
|
58
|
+
for(i = 0, len = bdattr.length; i < len; i++) {
|
59
|
+
kv = bdattr[i].split('=');
|
60
|
+
k = kv[0].replace(/\s/,'');
|
61
|
+
v = kv[1];
|
62
|
+
|
63
|
+
if (v) {
|
64
|
+
v = v.replace(/^\s+/,'').replace(/\s+$/,'');
|
65
|
+
t = v.match(/^["'](.*)["']$/);
|
66
|
+
|
67
|
+
if (t)
|
68
|
+
v = t[1];
|
69
|
+
} else
|
70
|
+
v = k;
|
71
|
+
|
72
|
+
ed.dom.setAttrib(ed.getBody(), 'style', v);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
},
|
77
|
+
|
78
|
+
_createSerializer : function() {
|
79
|
+
return new tinymce.dom.Serializer({
|
80
|
+
dom : this.editor.dom,
|
81
|
+
apply_source_formatting : true
|
82
|
+
});
|
83
|
+
},
|
84
|
+
|
85
|
+
_setContent : function(ed, o) {
|
86
|
+
var t = this, sp, ep, c = o.content, v, st = '';
|
87
|
+
|
88
|
+
// Ignore raw updated if we already have a head, this will fix issues with undo/redo keeping the head/foot separate
|
89
|
+
if (o.format == 'raw' && t.head)
|
90
|
+
return;
|
91
|
+
|
92
|
+
if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))
|
93
|
+
return;
|
94
|
+
|
95
|
+
// Parse out head, body and footer
|
96
|
+
c = c.replace(/<(\/?)BODY/gi, '<$1body');
|
97
|
+
sp = c.indexOf('<body');
|
98
|
+
|
99
|
+
if (sp != -1) {
|
100
|
+
sp = c.indexOf('>', sp);
|
101
|
+
t.head = c.substring(0, sp + 1);
|
102
|
+
|
103
|
+
ep = c.indexOf('</body', sp);
|
104
|
+
if (ep == -1)
|
105
|
+
ep = c.indexOf('</body', ep);
|
106
|
+
|
107
|
+
o.content = c.substring(sp + 1, ep);
|
108
|
+
t.foot = c.substring(ep);
|
109
|
+
|
110
|
+
function low(s) {
|
111
|
+
return s.replace(/<\/?[A-Z]+/g, function(a) {
|
112
|
+
return a.toLowerCase();
|
113
|
+
})
|
114
|
+
};
|
115
|
+
|
116
|
+
t.head = low(t.head);
|
117
|
+
t.foot = low(t.foot);
|
118
|
+
} else {
|
119
|
+
t.head = '';
|
120
|
+
if (ed.getParam('fullpage_default_xml_pi'))
|
121
|
+
t.head += '<?xml version="1.0" encoding="' + ed.getParam('fullpage_default_encoding', 'ISO-8859-1') + '" ?>\n';
|
122
|
+
|
123
|
+
t.head += ed.getParam('fullpage_default_doctype', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
|
124
|
+
t.head += '\n<html>\n<head>\n<title>' + ed.getParam('fullpage_default_title', 'Untitled document') + '</title>\n';
|
125
|
+
|
126
|
+
if (v = ed.getParam('fullpage_default_encoding'))
|
127
|
+
t.head += '<meta http-equiv="Content-Type" content="' + v + '" />\n';
|
128
|
+
|
129
|
+
if (v = ed.getParam('fullpage_default_font_family'))
|
130
|
+
st += 'font-family: ' + v + ';';
|
131
|
+
|
132
|
+
if (v = ed.getParam('fullpage_default_font_size'))
|
133
|
+
st += 'font-size: ' + v + ';';
|
134
|
+
|
135
|
+
if (v = ed.getParam('fullpage_default_text_color'))
|
136
|
+
st += 'color: ' + v + ';';
|
137
|
+
|
138
|
+
t.head += '</head>\n<body' + (st ? ' style="' + st + '"' : '') + '>\n';
|
139
|
+
t.foot = '\n</body>\n</html>';
|
140
|
+
}
|
141
|
+
},
|
142
|
+
|
143
|
+
_getContent : function(ed, o) {
|
144
|
+
var t = this;
|
145
|
+
|
146
|
+
if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view'))
|
147
|
+
o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot);
|
148
|
+
}
|
149
|
+
});
|
150
|
+
|
151
|
+
// Register plugin
|
152
|
+
tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin);
|
153
|
+
})();
|