Sha256: 859c5631c8025f115c009ce42b283c71db02c64fc69dd84ac2bd5426143dbf4a

Contents?: true

Size: 1.35 KB

Versions: 20

Compression:

Stored size: 1.35 KB

Contents

WYMeditor.SKINS['default'] = {

    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.containersSelector)
          .addClass("wym_dropdown")
          .find(WYMeditor.H2)
          .append("<span> ></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

20 entries across 20 versions & 3 rubygems

Version Path
tandem-0.2.5 vendor/assets/javascripts/tandem/wymeditor/skins/default/skin.js
tandem-0.2.4 vendor/assets/javascripts/tandem/wymeditor/skins/default/skin.js
tandem-0.2.3 vendor/assets/javascripts/tandem/wymeditor/skins/default/skin.js
tandem-0.2.2 vendor/assets/javascripts/tandem/wymeditor/skins/default/skin.js
tandem-0.2.1 vendor/assets/javascripts/tandem/wymeditor/skins/default/skin.js
tandem-0.2.0 vendor/assets/javascripts/tandem/wymeditor/skins/default/skin.js
spud_core-0.7.5 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.7.4 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.7.2 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.7.1 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.7.0 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.6.4 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.6.2 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.5.6 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.5.5 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.5.2 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.5.1 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.5.0 app/assets/javascripts/wymeditor/skins/default/skin.js
spud_core-0.4.0 app/assets/javascripts/wymeditor/skins/default/skin.js
cable-0.1.0 lib/generators/cable/templates/javascripts/wymeditor/skins/default/skin.js