Sha256: 67f60666247e9273248d9fe9d9a48b5b5634b3926107a9e35d35e27f5cb47738

Contents?: true

Size: 1.18 KB

Versions: 18

Compression:

Stored size: 1.18 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

18 entries across 18 versions & 1 rubygems

Version Path
refinerycms-0.9.5.31 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.30 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.29 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.28 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.27 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.26 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.25 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.24 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.23 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.22 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.21 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.20 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.19 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.18 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.17 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.16 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.15 public/javascripts/wymeditor/skins/refinery/skin.js
refinerycms-0.9.5.14 public/javascripts/wymeditor/skins/refinery/skin.js