Sha256: 48776114556c5b8b89feaa233d29a2f8be566b9de9fd54fe35b188b504878729

Contents?: true

Size: 1.16 KB

Versions: 19

Compression:

Stored size: 1.16 KB

Contents

WYMeditor.SKINS.compact = {

    init: function(wym) {

        //move the containers panel to the top area
        jQuery(wym._options.containersSelector + ', ' +
            wym._options.classesSelector, wym._box)
          .appendTo( jQuery("div.wym_area_top", wym._box) )
          .addClass("wym_dropdown")
          .css({"margin-right": "10px", "width": "120px", "float": "left"});

        //render following sections as buttons
        jQuery(wym._options.toolsSelector, wym._box)
          .addClass("wym_buttons")
          .css({"margin-right": "10px", "float": "left"});

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

        var postInit = wym._options.postInit;
        wym._options.postInit = function(wym) {

            if (postInit) {
                postInit.call(wym, wym);
            }
            var rule = {
                name: 'body',
                css: 'background-color: #f0f0f0;'
            };
            wym.addCssRule( wym._doc.styleSheets[0], rule);
        };
    }
};

Version data entries

19 entries across 19 versions & 2 rubygems

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