Sha256: 39f11b711d2de0934eb948b34c8a94237bf2931c69d1576c8505d4186a763856

Contents?: true

Size: 1.37 KB

Versions: 28

Compression:

Stored size: 1.37 KB

Contents

WYMeditor.SKINS['refinery'] = {

    init: function(wym) {

        //render following sections as panels
/*        jQuery(wym._box).find(wym._options.classesSelector)
          .addClass("wym_panel"); */

        //render following sections as buttons
        jQuery(wym._box).find(wym._options.toolsSelector)
          .addClass("wym_buttons");

        //render following sections as dropdown menus
 /*       jQuery(wym._box).find(wym._options.classesSelector)
          .addClass("wym_dropdown")
          .find(WYMeditor.H2)
          .append("<span>&nbsp;&gt;</span>");
*/
        // auto add some margin to the main area sides if left area
        // or right area are not empty (if they contain sections)
        jQuery(wym._box).find("div.wym_area_right ul")
          .parents("div.wym_area_right").show()
          .parents(wym._options.boxSelector)
          .find("div.wym_area_main")
          .css({"margin-right": "155px"});

        jQuery(wym._box).find("div.wym_area_left ul")
          .parents("div.wym_area_left").show()
          .parents(wym._options.boxSelector)
          .find("div.wym_area_main")
          .css({"margin-left": "155px"});

        //make hover work under IE < 7
        jQuery(wym._box).find(".wym_section").hover(function(){
          jQuery(this).addClass("hover");
        },function(){
          jQuery(this).removeClass("hover");
        });
    }
};

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.12 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.11 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.10 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.9 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.8 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.7 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.6 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.5 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.4 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.3 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.2 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.1 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.4.5 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.4.4 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.4.3 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.4.2 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.4.1 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.4 public/javascripts/wymeditor/skins/refinery/skin.js