Sha256: a43e8a89e1fb9f772a69a433095f86e11cff8a25f4aac043cd9779c09862c403

Contents?: true

Size: 1.23 KB

Versions: 9

Compression:

Stored size: 1.23 KB

Contents

WYMeditor.SKINS['refinery'] = {

  init: function(wym) {
    //render following sections as buttons
    $(wym._box).find(wym._options.toolsSelector)
      .addClass('wym_buttons');

    // auto add some margin to the main area sides if left area
    // or right area are not empty (if they contain sections)
    $(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'});

    $(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
    $(wym._box).find('.wym_section').hover(function(){
      $(this).addClass('hover');
    },function(){
      $(this).removeClass('hover');
    });

    // show or hide CSS class options on hover
    $(wym._box).find('.wym_tools_class')
               .hover($.proxy(function(){
                 this.toggleClassSelector();
               }, wym), $.proxy(function(){
                 this.toggleClassSelector();
               }, wym));

    $(".wym_skin_refinery").animate({
      opacity: 1
    }, 800);
  }
};

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-wymeditor-3.0.0 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-2.2.0 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-2.1.0 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-2.0.0 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-1.1.0 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-1.0.7 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-1.0.6 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-1.0.5 app/assets/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-wymeditor-1.0.4 app/assets/javascripts/wymeditor/skins/refinery/skin.js