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
metadata
CHANGED
@@ -4,17 +4,19 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 40
|
8
|
+
- 0
|
9
|
+
version: 0.40.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
|
+
- Alexander Shuhin
|
13
|
+
- Roman Smirnov
|
12
14
|
- divineforest
|
13
15
|
autorequire:
|
14
16
|
bindir: bin
|
15
17
|
cert_chain: []
|
16
18
|
|
17
|
-
date: 2011-
|
19
|
+
date: 2011-03-21 00:00:00 +03:00
|
18
20
|
default_executable:
|
19
21
|
dependencies:
|
20
22
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +28,12 @@ dependencies:
|
|
26
28
|
- !ruby/object:Gem::Version
|
27
29
|
segments:
|
28
30
|
- 0
|
29
|
-
-
|
31
|
+
- 40
|
30
32
|
- 0
|
31
|
-
version: 0.
|
33
|
+
version: 0.40.0
|
32
34
|
type: :runtime
|
33
35
|
version_requirements: *id001
|
34
|
-
description:
|
36
|
+
description: "Atm supported: YUIRichEditor, WYMEditor, TinyMCE"
|
35
37
|
email:
|
36
38
|
executables: []
|
37
39
|
|
@@ -44,15 +46,22 @@ files:
|
|
44
46
|
- LICENSE
|
45
47
|
- README.md
|
46
48
|
- Rakefile
|
49
|
+
- app/controllers/admin/editor_settings_controller.rb
|
47
50
|
- app/controllers/content_files_controller.rb
|
48
51
|
- app/controllers/content_images_controller.rb
|
49
52
|
- app/models/content_file.rb
|
50
53
|
- app/models/content_image.rb
|
51
|
-
- app/views/
|
54
|
+
- app/views/admin/editor_settings/edit.html.erb
|
55
|
+
- app/views/admin/editor_settings/show.html.erb
|
56
|
+
- app/views/shared/_rich_editor_javascript.html.erb
|
57
|
+
- app/views/shared/editor_engines/_tiny_mce.html.erb
|
58
|
+
- app/views/shared/editor_engines/_wym_editor.html.erb
|
59
|
+
- app/views/shared/editor_engines/_yui_rich_editor.html.erb
|
52
60
|
- config/locales/en.yml
|
53
61
|
- config/locales/ru.yml
|
54
62
|
- config/routes.rb
|
55
|
-
- lib/
|
63
|
+
- lib/editor_configuration.rb
|
64
|
+
- lib/spree/editor/config.rb
|
56
65
|
- lib/spree_editor.rb
|
57
66
|
- lib/spree_editor_hooks.rb
|
58
67
|
- lib/tasks/install.rake
|
@@ -60,11 +69,329 @@ files:
|
|
60
69
|
- public/images/upload_file.png
|
61
70
|
- public/images/upload_image.png
|
62
71
|
- public/javascripts/jquery.ocupload.js
|
72
|
+
- public/javascripts/tinymce/jquery.tinymce.js
|
73
|
+
- public/javascripts/tinymce/langs/en.js
|
74
|
+
- public/javascripts/tinymce/license.txt
|
75
|
+
- public/javascripts/tinymce/plugins/advhr/css/advhr.css
|
76
|
+
- public/javascripts/tinymce/plugins/advhr/editor_plugin.js
|
77
|
+
- public/javascripts/tinymce/plugins/advhr/editor_plugin_src.js
|
78
|
+
- public/javascripts/tinymce/plugins/advhr/js/rule.js
|
79
|
+
- public/javascripts/tinymce/plugins/advhr/langs/en_dlg.js
|
80
|
+
- public/javascripts/tinymce/plugins/advhr/rule.htm
|
81
|
+
- public/javascripts/tinymce/plugins/advimage/css/advimage.css
|
82
|
+
- public/javascripts/tinymce/plugins/advimage/editor_plugin.js
|
83
|
+
- public/javascripts/tinymce/plugins/advimage/editor_plugin_src.js
|
84
|
+
- public/javascripts/tinymce/plugins/advimage/image.htm
|
85
|
+
- public/javascripts/tinymce/plugins/advimage/img/sample.gif
|
86
|
+
- public/javascripts/tinymce/plugins/advimage/js/image.js
|
87
|
+
- public/javascripts/tinymce/plugins/advimage/langs/en_dlg.js
|
88
|
+
- public/javascripts/tinymce/plugins/advlink/css/advlink.css
|
89
|
+
- public/javascripts/tinymce/plugins/advlink/editor_plugin.js
|
90
|
+
- public/javascripts/tinymce/plugins/advlink/editor_plugin_src.js
|
91
|
+
- public/javascripts/tinymce/plugins/advlink/js/advlink.js
|
92
|
+
- public/javascripts/tinymce/plugins/advlink/langs/en_dlg.js
|
93
|
+
- public/javascripts/tinymce/plugins/advlink/link.htm
|
94
|
+
- public/javascripts/tinymce/plugins/advlist/editor_plugin.js
|
95
|
+
- public/javascripts/tinymce/plugins/advlist/editor_plugin_src.js
|
96
|
+
- public/javascripts/tinymce/plugins/autoresize/editor_plugin.js
|
97
|
+
- public/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js
|
98
|
+
- public/javascripts/tinymce/plugins/autosave/editor_plugin.js
|
99
|
+
- public/javascripts/tinymce/plugins/autosave/editor_plugin_src.js
|
100
|
+
- public/javascripts/tinymce/plugins/autosave/langs/en.js
|
101
|
+
- public/javascripts/tinymce/plugins/bbcode/editor_plugin.js
|
102
|
+
- public/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js
|
103
|
+
- public/javascripts/tinymce/plugins/contextmenu/editor_plugin.js
|
104
|
+
- public/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js
|
105
|
+
- public/javascripts/tinymce/plugins/directionality/editor_plugin.js
|
106
|
+
- public/javascripts/tinymce/plugins/directionality/editor_plugin_src.js
|
107
|
+
- public/javascripts/tinymce/plugins/emotions/editor_plugin.js
|
108
|
+
- public/javascripts/tinymce/plugins/emotions/editor_plugin_src.js
|
109
|
+
- public/javascripts/tinymce/plugins/emotions/emotions.htm
|
110
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif
|
111
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif
|
112
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif
|
113
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif
|
114
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif
|
115
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif
|
116
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif
|
117
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif
|
118
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif
|
119
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif
|
120
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif
|
121
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif
|
122
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif
|
123
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif
|
124
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif
|
125
|
+
- public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif
|
126
|
+
- public/javascripts/tinymce/plugins/emotions/js/emotions.js
|
127
|
+
- public/javascripts/tinymce/plugins/emotions/langs/en_dlg.js
|
128
|
+
- public/javascripts/tinymce/plugins/example/dialog.htm
|
129
|
+
- public/javascripts/tinymce/plugins/example/editor_plugin.js
|
130
|
+
- public/javascripts/tinymce/plugins/example/editor_plugin_src.js
|
131
|
+
- public/javascripts/tinymce/plugins/example/img/example.gif
|
132
|
+
- public/javascripts/tinymce/plugins/example/js/dialog.js
|
133
|
+
- public/javascripts/tinymce/plugins/example/langs/en.js
|
134
|
+
- public/javascripts/tinymce/plugins/example/langs/en_dlg.js
|
135
|
+
- public/javascripts/tinymce/plugins/fullpage/css/fullpage.css
|
136
|
+
- public/javascripts/tinymce/plugins/fullpage/editor_plugin.js
|
137
|
+
- public/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js
|
138
|
+
- public/javascripts/tinymce/plugins/fullpage/fullpage.htm
|
139
|
+
- public/javascripts/tinymce/plugins/fullpage/js/fullpage.js
|
140
|
+
- public/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js
|
141
|
+
- public/javascripts/tinymce/plugins/fullscreen/editor_plugin.js
|
142
|
+
- public/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js
|
143
|
+
- public/javascripts/tinymce/plugins/fullscreen/fullscreen.htm
|
144
|
+
- public/javascripts/tinymce/plugins/iespell/editor_plugin.js
|
145
|
+
- public/javascripts/tinymce/plugins/iespell/editor_plugin_src.js
|
146
|
+
- public/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js
|
147
|
+
- public/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js
|
148
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
|
149
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
|
150
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
|
151
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
|
152
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
|
153
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
|
154
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
|
155
|
+
- public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css
|
156
|
+
- public/javascripts/tinymce/plugins/inlinepopups/template.htm
|
157
|
+
- public/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js
|
158
|
+
- public/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js
|
159
|
+
- public/javascripts/tinymce/plugins/layer/editor_plugin.js
|
160
|
+
- public/javascripts/tinymce/plugins/layer/editor_plugin_src.js
|
161
|
+
- public/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js
|
162
|
+
- public/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js
|
163
|
+
- public/javascripts/tinymce/plugins/media/css/content.css
|
164
|
+
- public/javascripts/tinymce/plugins/media/css/media.css
|
165
|
+
- public/javascripts/tinymce/plugins/media/editor_plugin.js
|
166
|
+
- public/javascripts/tinymce/plugins/media/editor_plugin_src.js
|
167
|
+
- public/javascripts/tinymce/plugins/media/img/flash.gif
|
168
|
+
- public/javascripts/tinymce/plugins/media/img/flv_player.swf
|
169
|
+
- public/javascripts/tinymce/plugins/media/img/quicktime.gif
|
170
|
+
- public/javascripts/tinymce/plugins/media/img/realmedia.gif
|
171
|
+
- public/javascripts/tinymce/plugins/media/img/shockwave.gif
|
172
|
+
- public/javascripts/tinymce/plugins/media/img/trans.gif
|
173
|
+
- public/javascripts/tinymce/plugins/media/img/windowsmedia.gif
|
174
|
+
- public/javascripts/tinymce/plugins/media/js/embed.js
|
175
|
+
- public/javascripts/tinymce/plugins/media/js/media.js
|
176
|
+
- public/javascripts/tinymce/plugins/media/langs/en_dlg.js
|
177
|
+
- public/javascripts/tinymce/plugins/media/media.htm
|
178
|
+
- public/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js
|
179
|
+
- public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
|
180
|
+
- public/javascripts/tinymce/plugins/noneditable/editor_plugin.js
|
181
|
+
- public/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js
|
182
|
+
- public/javascripts/tinymce/plugins/pagebreak/css/content.css
|
183
|
+
- public/javascripts/tinymce/plugins/pagebreak/editor_plugin.js
|
184
|
+
- public/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js
|
185
|
+
- public/javascripts/tinymce/plugins/pagebreak/img/pagebreak.gif
|
186
|
+
- public/javascripts/tinymce/plugins/pagebreak/img/trans.gif
|
187
|
+
- public/javascripts/tinymce/plugins/paste/editor_plugin.js
|
188
|
+
- public/javascripts/tinymce/plugins/paste/editor_plugin_src.js
|
189
|
+
- public/javascripts/tinymce/plugins/paste/js/pastetext.js
|
190
|
+
- public/javascripts/tinymce/plugins/paste/js/pasteword.js
|
191
|
+
- public/javascripts/tinymce/plugins/paste/langs/en_dlg.js
|
192
|
+
- public/javascripts/tinymce/plugins/paste/pastetext.htm
|
193
|
+
- public/javascripts/tinymce/plugins/paste/pasteword.htm
|
194
|
+
- public/javascripts/tinymce/plugins/preview/editor_plugin.js
|
195
|
+
- public/javascripts/tinymce/plugins/preview/editor_plugin_src.js
|
196
|
+
- public/javascripts/tinymce/plugins/preview/example.html
|
197
|
+
- public/javascripts/tinymce/plugins/preview/jscripts/embed.js
|
198
|
+
- public/javascripts/tinymce/plugins/preview/preview.html
|
199
|
+
- public/javascripts/tinymce/plugins/print/editor_plugin.js
|
200
|
+
- public/javascripts/tinymce/plugins/print/editor_plugin_src.js
|
201
|
+
- public/javascripts/tinymce/plugins/save/editor_plugin.js
|
202
|
+
- public/javascripts/tinymce/plugins/save/editor_plugin_src.js
|
203
|
+
- public/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css
|
204
|
+
- public/javascripts/tinymce/plugins/searchreplace/editor_plugin.js
|
205
|
+
- public/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js
|
206
|
+
- public/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js
|
207
|
+
- public/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js
|
208
|
+
- public/javascripts/tinymce/plugins/searchreplace/searchreplace.htm
|
209
|
+
- public/javascripts/tinymce/plugins/spellchecker/css/content.css
|
210
|
+
- public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js
|
211
|
+
- public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js
|
212
|
+
- public/javascripts/tinymce/plugins/spellchecker/img/wline.gif
|
213
|
+
- public/javascripts/tinymce/plugins/style/css/props.css
|
214
|
+
- public/javascripts/tinymce/plugins/style/editor_plugin.js
|
215
|
+
- public/javascripts/tinymce/plugins/style/editor_plugin_src.js
|
216
|
+
- public/javascripts/tinymce/plugins/style/js/props.js
|
217
|
+
- public/javascripts/tinymce/plugins/style/langs/en_dlg.js
|
218
|
+
- public/javascripts/tinymce/plugins/style/props.htm
|
219
|
+
- public/javascripts/tinymce/plugins/tabfocus/editor_plugin.js
|
220
|
+
- public/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js
|
221
|
+
- public/javascripts/tinymce/plugins/table/cell.htm
|
222
|
+
- public/javascripts/tinymce/plugins/table/css/cell.css
|
223
|
+
- public/javascripts/tinymce/plugins/table/css/row.css
|
224
|
+
- public/javascripts/tinymce/plugins/table/css/table.css
|
225
|
+
- public/javascripts/tinymce/plugins/table/editor_plugin.js
|
226
|
+
- public/javascripts/tinymce/plugins/table/editor_plugin_src.js
|
227
|
+
- public/javascripts/tinymce/plugins/table/js/cell.js
|
228
|
+
- public/javascripts/tinymce/plugins/table/js/merge_cells.js
|
229
|
+
- public/javascripts/tinymce/plugins/table/js/row.js
|
230
|
+
- public/javascripts/tinymce/plugins/table/js/table.js
|
231
|
+
- public/javascripts/tinymce/plugins/table/langs/en_dlg.js
|
232
|
+
- public/javascripts/tinymce/plugins/table/merge_cells.htm
|
233
|
+
- public/javascripts/tinymce/plugins/table/row.htm
|
234
|
+
- public/javascripts/tinymce/plugins/table/table.htm
|
235
|
+
- public/javascripts/tinymce/plugins/template/blank.htm
|
236
|
+
- public/javascripts/tinymce/plugins/template/css/template.css
|
237
|
+
- public/javascripts/tinymce/plugins/template/editor_plugin.js
|
238
|
+
- public/javascripts/tinymce/plugins/template/editor_plugin_src.js
|
239
|
+
- public/javascripts/tinymce/plugins/template/js/template.js
|
240
|
+
- public/javascripts/tinymce/plugins/template/langs/en_dlg.js
|
241
|
+
- public/javascripts/tinymce/plugins/template/template.htm
|
242
|
+
- public/javascripts/tinymce/plugins/visualchars/editor_plugin.js
|
243
|
+
- public/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js
|
244
|
+
- public/javascripts/tinymce/plugins/wordcount/editor_plugin.js
|
245
|
+
- public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js
|
246
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm
|
247
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm
|
248
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm
|
249
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/cite.htm
|
250
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css
|
251
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css
|
252
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/del.htm
|
253
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js
|
254
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js
|
255
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/ins.htm
|
256
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js
|
257
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js
|
258
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js
|
259
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js
|
260
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/del.js
|
261
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js
|
262
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js
|
263
|
+
- public/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js
|
264
|
+
- public/javascripts/tinymce/themes/advanced/about.htm
|
265
|
+
- public/javascripts/tinymce/themes/advanced/anchor.htm
|
266
|
+
- public/javascripts/tinymce/themes/advanced/charmap.htm
|
267
|
+
- public/javascripts/tinymce/themes/advanced/color_picker.htm
|
268
|
+
- public/javascripts/tinymce/themes/advanced/editor_template.js
|
269
|
+
- public/javascripts/tinymce/themes/advanced/editor_template_src.js
|
270
|
+
- public/javascripts/tinymce/themes/advanced/image.htm
|
271
|
+
- public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg
|
272
|
+
- public/javascripts/tinymce/themes/advanced/img/icons.gif
|
273
|
+
- public/javascripts/tinymce/themes/advanced/js/about.js
|
274
|
+
- public/javascripts/tinymce/themes/advanced/js/anchor.js
|
275
|
+
- public/javascripts/tinymce/themes/advanced/js/charmap.js
|
276
|
+
- public/javascripts/tinymce/themes/advanced/js/color_picker.js
|
277
|
+
- public/javascripts/tinymce/themes/advanced/js/image.js
|
278
|
+
- public/javascripts/tinymce/themes/advanced/js/link.js
|
279
|
+
- public/javascripts/tinymce/themes/advanced/js/source_editor.js
|
280
|
+
- public/javascripts/tinymce/themes/advanced/langs/en.js
|
281
|
+
- public/javascripts/tinymce/themes/advanced/langs/en_dlg.js
|
282
|
+
- public/javascripts/tinymce/themes/advanced/link.htm
|
283
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/content.css
|
284
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/dialog.css
|
285
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png
|
286
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif
|
287
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif
|
288
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif
|
289
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif
|
290
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif
|
291
|
+
- public/javascripts/tinymce/themes/advanced/skins/default/ui.css
|
292
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/content.css
|
293
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css
|
294
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png
|
295
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png
|
296
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png
|
297
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css
|
298
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css
|
299
|
+
- public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css
|
300
|
+
- public/javascripts/tinymce/themes/advanced/source_editor.htm
|
301
|
+
- public/javascripts/tinymce/themes/simple/editor_template.js
|
302
|
+
- public/javascripts/tinymce/themes/simple/editor_template_src.js
|
303
|
+
- public/javascripts/tinymce/themes/simple/img/icons.gif
|
304
|
+
- public/javascripts/tinymce/themes/simple/langs/en.js
|
305
|
+
- public/javascripts/tinymce/themes/simple/skins/default/content.css
|
306
|
+
- public/javascripts/tinymce/themes/simple/skins/default/ui.css
|
307
|
+
- public/javascripts/tinymce/themes/simple/skins/o2k7/content.css
|
308
|
+
- public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png
|
309
|
+
- public/javascripts/tinymce/themes/simple/skins/o2k7/ui.css
|
310
|
+
- public/javascripts/tinymce/tiny_mce.js
|
311
|
+
- public/javascripts/tinymce/tiny_mce_popup.js
|
312
|
+
- public/javascripts/tinymce/tiny_mce_src.js
|
313
|
+
- public/javascripts/tinymce/utils/editable_selects.js
|
314
|
+
- public/javascripts/tinymce/utils/form_utils.js
|
315
|
+
- public/javascripts/tinymce/utils/mctabs.js
|
316
|
+
- public/javascripts/tinymce/utils/validate.js
|
317
|
+
- public/javascripts/wymeditor/iframe/default/lbl-blockquote.png
|
318
|
+
- public/javascripts/wymeditor/iframe/default/lbl-h1.png
|
319
|
+
- public/javascripts/wymeditor/iframe/default/lbl-h2.png
|
320
|
+
- public/javascripts/wymeditor/iframe/default/lbl-h3.png
|
321
|
+
- public/javascripts/wymeditor/iframe/default/lbl-h4.png
|
322
|
+
- public/javascripts/wymeditor/iframe/default/lbl-h5.png
|
323
|
+
- public/javascripts/wymeditor/iframe/default/lbl-h6.png
|
324
|
+
- public/javascripts/wymeditor/iframe/default/lbl-p.png
|
325
|
+
- public/javascripts/wymeditor/iframe/default/lbl-pre.png
|
326
|
+
- public/javascripts/wymeditor/iframe/default/wymiframe.css
|
327
|
+
- public/javascripts/wymeditor/iframe/default/wymiframe.html
|
328
|
+
- public/javascripts/wymeditor/jquery.wymeditor.js
|
329
|
+
- public/javascripts/wymeditor/jquery.wymeditor.min.js
|
330
|
+
- public/javascripts/wymeditor/jquery.wymeditor.pack.js
|
331
|
+
- public/javascripts/wymeditor/lang/bg.js
|
332
|
+
- public/javascripts/wymeditor/lang/ca.js
|
333
|
+
- public/javascripts/wymeditor/lang/cs.js
|
334
|
+
- public/javascripts/wymeditor/lang/cy.js
|
335
|
+
- public/javascripts/wymeditor/lang/de.js
|
336
|
+
- public/javascripts/wymeditor/lang/en.js
|
337
|
+
- public/javascripts/wymeditor/lang/es.js
|
338
|
+
- public/javascripts/wymeditor/lang/fa.js
|
339
|
+
- public/javascripts/wymeditor/lang/fi.js
|
340
|
+
- public/javascripts/wymeditor/lang/fr.js
|
341
|
+
- public/javascripts/wymeditor/lang/gl.js
|
342
|
+
- public/javascripts/wymeditor/lang/he.js
|
343
|
+
- public/javascripts/wymeditor/lang/hr.js
|
344
|
+
- public/javascripts/wymeditor/lang/hu.js
|
345
|
+
- public/javascripts/wymeditor/lang/it.js
|
346
|
+
- public/javascripts/wymeditor/lang/nb.js
|
347
|
+
- public/javascripts/wymeditor/lang/nl.js
|
348
|
+
- public/javascripts/wymeditor/lang/nn.js
|
349
|
+
- public/javascripts/wymeditor/lang/pl.js
|
350
|
+
- public/javascripts/wymeditor/lang/pt-br.js
|
351
|
+
- public/javascripts/wymeditor/lang/pt.js
|
352
|
+
- public/javascripts/wymeditor/lang/ru.js
|
353
|
+
- public/javascripts/wymeditor/lang/sv.js
|
354
|
+
- public/javascripts/wymeditor/lang/tr.js
|
355
|
+
- public/javascripts/wymeditor/lang/zh_cn.js
|
356
|
+
- public/javascripts/wymeditor/plugins/embed/jquery.wymeditor.embed.js
|
357
|
+
- public/javascripts/wymeditor/plugins/fullscreen/icon_fullscreen.gif
|
358
|
+
- public/javascripts/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js
|
359
|
+
- public/javascripts/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js
|
360
|
+
- public/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js
|
361
|
+
- public/javascripts/wymeditor/plugins/resizable/readme.txt
|
362
|
+
- public/javascripts/wymeditor/plugins/tidy/README
|
363
|
+
- public/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js
|
364
|
+
- public/javascripts/wymeditor/plugins/tidy/tidy.php
|
365
|
+
- public/javascripts/wymeditor/plugins/tidy/wand.png
|
366
|
+
- public/javascripts/wymeditor/skins/compact/icons.png
|
367
|
+
- public/javascripts/wymeditor/skins/compact/skin.css
|
368
|
+
- public/javascripts/wymeditor/skins/compact/skin.js
|
369
|
+
- public/javascripts/wymeditor/skins/default/icons.png
|
370
|
+
- public/javascripts/wymeditor/skins/default/skin.css
|
371
|
+
- public/javascripts/wymeditor/skins/default/skin.js
|
372
|
+
- public/javascripts/wymeditor/skins/minimal/images/bg.header.gif
|
373
|
+
- public/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif
|
374
|
+
- public/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png
|
375
|
+
- public/javascripts/wymeditor/skins/minimal/images/icons.silver.gif
|
376
|
+
- public/javascripts/wymeditor/skins/minimal/skin.css
|
377
|
+
- public/javascripts/wymeditor/skins/minimal/skin.js
|
378
|
+
- public/javascripts/wymeditor/skins/silver/COPYING
|
379
|
+
- public/javascripts/wymeditor/skins/silver/README
|
380
|
+
- public/javascripts/wymeditor/skins/silver/images/bg.header.gif
|
381
|
+
- public/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif
|
382
|
+
- public/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png
|
383
|
+
- public/javascripts/wymeditor/skins/silver/images/icons.silver.gif
|
384
|
+
- public/javascripts/wymeditor/skins/silver/skin.css
|
385
|
+
- public/javascripts/wymeditor/skins/silver/skin.js
|
386
|
+
- public/javascripts/wymeditor/skins/twopanels/icons.png
|
387
|
+
- public/javascripts/wymeditor/skins/twopanels/skin.css
|
388
|
+
- public/javascripts/wymeditor/skins/twopanels/skin.js
|
389
|
+
- public/javascripts/wymeditor/skins/wymeditor_icon.png
|
63
390
|
- public/stylesheets/editor.css
|
64
391
|
- spec/spec_helper.rb
|
65
392
|
- spree_editor.gemspec
|
66
393
|
has_rdoc: true
|
67
|
-
homepage: http://github.com/
|
394
|
+
homepage: http://github.com/romul/spree_editor
|
68
395
|
licenses: []
|
69
396
|
|
70
397
|
post_install_message:
|
@@ -94,6 +421,6 @@ rubyforge_project:
|
|
94
421
|
rubygems_version: 1.3.6
|
95
422
|
signing_key:
|
96
423
|
specification_version: 3
|
97
|
-
summary:
|
424
|
+
summary: Adds support of several WYSIWYG editors to Spree
|
98
425
|
test_files: []
|
99
426
|
|
@@ -1,208 +0,0 @@
|
|
1
|
-
<% content_for :head do %>
|
2
|
-
<%= stylesheet_link_tag 'editor' %>
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<div class="editor-mask-container">
|
6
|
-
<div class="editor-mask"></div
|
7
|
-
<div class="editor-mask-label"><%= t("editor.loading") %></div
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<!-- Skin CSS file -->
|
11
|
-
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.2r1/build/assets/skins/sam/skin.css">
|
12
|
-
<!-- Utility Dependencies -->
|
13
|
-
<script src="http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
|
14
|
-
<script src="http://yui.yahooapis.com/2.8.2r1/build/element/element-min.js"></script>
|
15
|
-
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
|
16
|
-
<script src="http://yui.yahooapis.com/2.8.2r1/build/container/container_core-min.js"></script>
|
17
|
-
<script src="http://yui.yahooapis.com/2.8.2r1/build/menu/menu-min.js"></script>
|
18
|
-
<script src="http://yui.yahooapis.com/2.8.2r1/build/button/button-min.js"></script>
|
19
|
-
<!-- Source file for Rich Text Editor-->
|
20
|
-
<script src="http://yui.yahooapis.com/2.8.2r1/build/editor/editor-min.js"></script>
|
21
|
-
|
22
|
-
<%= javascript_include_tag 'jquery.ocupload' %>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8">
|
25
|
-
var <%= editor_id %>_editor = new YAHOO.widget.Editor('<%= editor_id %>', {
|
26
|
-
height: '350px',
|
27
|
-
width: 'auto',
|
28
|
-
animate: true,
|
29
|
-
handleSubmit: true,
|
30
|
-
toolbar: {
|
31
|
-
collapse: true,
|
32
|
-
titlebar: false,
|
33
|
-
draggable: false,
|
34
|
-
buttonType: 'advanced',
|
35
|
-
buttons: [
|
36
|
-
{ group: 'fontstyle', label: '<%= t("editor.font_name_and_size") %>',
|
37
|
-
buttons: [
|
38
|
-
{ type: 'select', label: 'Arial', value: 'fontname', disabled: true,
|
39
|
-
menu: [
|
40
|
-
{ text: 'Arial', checked: true },
|
41
|
-
{ text: 'Arial Black' },
|
42
|
-
{ text: 'Comic Sans MS' },
|
43
|
-
{ text: 'Courier New' },
|
44
|
-
{ text: 'Lucida Console' },
|
45
|
-
{ text: 'Tahoma' },
|
46
|
-
{ text: 'Times New Roman' },
|
47
|
-
{ text: 'Trebuchet MS' },
|
48
|
-
{ text: 'Verdana' }
|
49
|
-
]
|
50
|
-
},
|
51
|
-
{ type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
|
52
|
-
]
|
53
|
-
},
|
54
|
-
{ type: 'separator' },
|
55
|
-
{ group: 'textstyle', label: '<%= t("editor.font_style") %>',
|
56
|
-
buttons: [
|
57
|
-
{ type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
|
58
|
-
{ type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
|
59
|
-
{ type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
|
60
|
-
{ type: 'separator' },
|
61
|
-
{ type: 'push', label: 'Subscript', value: 'subscript', disabled: true },
|
62
|
-
{ type: 'push', label: 'Superscript', value: 'superscript', disabled: true },
|
63
|
-
{ type: 'separator' },
|
64
|
-
{ type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
|
65
|
-
{ type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
|
66
|
-
{ type: 'separator' },
|
67
|
-
{ type: 'push', label: 'Remove Formatting', value: 'removeformat', disabled: true },
|
68
|
-
{ type: 'push', label: 'Show/Hide Hidden Elements', value: 'hiddenelements' }
|
69
|
-
]
|
70
|
-
},
|
71
|
-
{ type: 'separator' },
|
72
|
-
{ group: 'alignment', label: '<%= t("editor.alignment") %>',
|
73
|
-
buttons: [
|
74
|
-
{ type: 'push', label: 'Align Left CTRL + SHIFT + [', value: 'justifyleft' },
|
75
|
-
{ type: 'push', label: 'Align Center CTRL + SHIFT + |', value: 'justifycenter' },
|
76
|
-
{ type: 'push', label: 'Align Right CTRL + SHIFT + ]', value: 'justifyright' },
|
77
|
-
{ type: 'push', label: 'Justify', value: 'justifyfull' }
|
78
|
-
]
|
79
|
-
},
|
80
|
-
{ type: 'separator' },
|
81
|
-
{ group: 'parastyle', label: '<%= t("editor.paragraph_style") %>',
|
82
|
-
buttons: [
|
83
|
-
{ type: 'select', label: 'Normal', value: 'heading', disabled: true,
|
84
|
-
menu: [
|
85
|
-
{ text: 'Normal', value: 'none', checked: true },
|
86
|
-
{ text: 'Header 1', value: 'h1' },
|
87
|
-
{ text: 'Header 2', value: 'h2' },
|
88
|
-
{ text: 'Header 3', value: 'h3' },
|
89
|
-
{ text: 'Header 4', value: 'h4' },
|
90
|
-
{ text: 'Header 5', value: 'h5' },
|
91
|
-
{ text: 'Header 6', value: 'h6' }
|
92
|
-
]
|
93
|
-
}
|
94
|
-
]
|
95
|
-
},
|
96
|
-
{ type: 'separator' },
|
97
|
-
{ group: 'indentlist', label: '<%= t("editor.indenting_and_lists") %>',
|
98
|
-
buttons: [
|
99
|
-
{ type: 'push', label: 'Indent', value: 'indent', disabled: true },
|
100
|
-
{ type: 'push', label: 'Outdent', value: 'outdent', disabled: true },
|
101
|
-
{ type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
|
102
|
-
{ type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
|
103
|
-
]
|
104
|
-
},
|
105
|
-
{ type: 'separator' },
|
106
|
-
{ group: 'insertitem', label: '<%= t("editor.insert_item") %>',
|
107
|
-
buttons: [
|
108
|
-
{ type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
|
109
|
-
{ type: 'push', label: '<%= t("editor.insert_image") %>', value: 'insertimage' }
|
110
|
-
]
|
111
|
-
},
|
112
|
-
{ type: 'separator' },
|
113
|
-
{ group: 'uploaditem', label: '<%= t("editor.upload_file") %>',
|
114
|
-
buttons: [
|
115
|
-
{ type: 'push', label: '<%= t("editor.upload_image") %>', value: 'imageUpload' },
|
116
|
-
{ type: 'push', label: '<%= t("editor.upload_file") %>', value: 'fileUpload' }
|
117
|
-
]
|
118
|
-
}
|
119
|
-
|
120
|
-
]
|
121
|
-
}
|
122
|
-
});
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
<%= editor_id %>_editor.addListener('editorContentLoaded', function() {
|
127
|
-
$(".yui-toolbar-imageUpload").upload({
|
128
|
-
name: 'content_image[attachment]',
|
129
|
-
action: '/content_images',
|
130
|
-
enctype: 'multipart/form-data',
|
131
|
-
params: {'content_image[viewable_type]': '<%= object.class.name %>', 'content_image[viewable_id]': '<%= object.id %>'},
|
132
|
-
autoSubmit: true,
|
133
|
-
onSubmit: function() {
|
134
|
-
$(".editor-mask-container").addClass("active");
|
135
|
-
},
|
136
|
-
onComplete: function(image_src) {
|
137
|
-
var img_html = "<img src='"+image_src+"'/>";
|
138
|
-
<%= editor_id %>_editor.execCommand('inserthtml', img_html);
|
139
|
-
$(".editor-mask-container").removeClass("active");
|
140
|
-
}
|
141
|
-
});
|
142
|
-
|
143
|
-
$(".yui-toolbar-fileUpload").upload({
|
144
|
-
name: 'content_file[attachment]',
|
145
|
-
action: '/content_files',
|
146
|
-
enctype: 'multipart/form-data',
|
147
|
-
params: {'content_file[viewable_type]': '<%= object.class.name %>', 'content_file[viewable_id]': '<%= @object.id %>'},
|
148
|
-
autoSubmit: true,
|
149
|
-
onSubmit: function() {
|
150
|
-
$(".editor-mask-container").addClass("active");
|
151
|
-
},
|
152
|
-
onComplete: function(file_url_and_name) {
|
153
|
-
var file_url = file_url_and_name.split(",")[0];
|
154
|
-
var file_name_original = file_url_and_name.split(",")[1];
|
155
|
-
$(".editor-mask-container").removeClass("active");
|
156
|
-
var file_name = prompt('<%= t("editor.enter_file_name") %>', file_name_original);
|
157
|
-
var link_html = "<a href='"+file_url+"'/>"+file_name+"</a>";
|
158
|
-
<%= editor_id %>_editor.execCommand('inserthtml', link_html);
|
159
|
-
}
|
160
|
-
});
|
161
|
-
});
|
162
|
-
|
163
|
-
<%= editor_id %>_editor.render();
|
164
|
-
|
165
|
-
$("#<%= editor_id %>_switch_simple, #<%= editor_id %>_switch_rich").click(function() {
|
166
|
-
$("#<%= editor_id %>_switch_simple, #<%= editor_id %>_switch_rich").toggle();
|
167
|
-
return false;
|
168
|
-
});
|
169
|
-
$("#<%= editor_id %>_switch_simple").click(function() {
|
170
|
-
<%= editor_id %>_editor.saveHTML();
|
171
|
-
|
172
|
-
var fc = <%= editor_id %>_editor.get('element').previousSibling,
|
173
|
-
el = <%= editor_id %>_editor.get('element');
|
174
|
-
|
175
|
-
YAHOO.util.Dom.setStyle(fc, 'position', 'absolute');
|
176
|
-
YAHOO.util.Dom.setStyle(fc, 'top', '-9999px');
|
177
|
-
YAHOO.util.Dom.setStyle(fc, 'left', '-9999px');
|
178
|
-
<%= editor_id %>_editor.get('element_cont').removeClass('yui-editor-container');
|
179
|
-
YAHOO.util.Dom.setStyle(el, 'visibility', 'visible');
|
180
|
-
YAHOO.util.Dom.setStyle(el, 'top', '');
|
181
|
-
YAHOO.util.Dom.setStyle(el, 'left', '');
|
182
|
-
YAHOO.util.Dom.setStyle(el, 'position', 'static');
|
183
|
-
YAHOO.util.Dom.setStyle(el, 'width', '780px');
|
184
|
-
|
185
|
-
<%= editor_id %>_editor.set('handleSubmit', false);
|
186
|
-
|
187
|
-
return false;
|
188
|
-
});
|
189
|
-
$("#<%= editor_id %>_switch_rich").click(function() {
|
190
|
-
var fc = <%= editor_id %>_editor.get('element').previousSibling,
|
191
|
-
el = <%= editor_id %>_editor.get('element');
|
192
|
-
|
193
|
-
YAHOO.util.Dom.setStyle(fc, 'position', 'static');
|
194
|
-
YAHOO.util.Dom.setStyle(fc, 'top', '0');
|
195
|
-
YAHOO.util.Dom.setStyle(fc, 'left', '0');
|
196
|
-
YAHOO.util.Dom.setStyle(el, 'visibility', 'hidden');
|
197
|
-
YAHOO.util.Dom.setStyle(el, 'top', '-9999px');
|
198
|
-
YAHOO.util.Dom.setStyle(el, 'left', '-9999px');
|
199
|
-
YAHOO.util.Dom.setStyle(el, 'position', 'absolute');
|
200
|
-
<%= editor_id %>_editor.get('element_cont').addClass('yui-editor-container');
|
201
|
-
<%= editor_id %>_editor._setDesignMode('on');
|
202
|
-
<%= editor_id %>_editor.setEditorHTML(<%= editor_id %>_editor.get('textarea').value);
|
203
|
-
|
204
|
-
<%= editor_id %>_editor.set('handleSubmit', true);
|
205
|
-
|
206
|
-
return false;
|
207
|
-
});
|
208
|
-
</script>
|