diff options
Diffstat (limited to 'objectapp/static/objectapp/js/wymeditor/skins/minimal/skin.js')
-rw-r--r-- | objectapp/static/objectapp/js/wymeditor/skins/minimal/skin.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/objectapp/static/objectapp/js/wymeditor/skins/minimal/skin.js b/objectapp/static/objectapp/js/wymeditor/skins/minimal/skin.js new file mode 100644 index 00000000..af29ed42 --- /dev/null +++ b/objectapp/static/objectapp/js/wymeditor/skins/minimal/skin.js @@ -0,0 +1,30 @@ +jQuery.fn.selectify = function() { + return this.each(function() { + jQuery(this).hover( + function() { + jQuery("h2", this).css("background-position", "0px -18px"); + jQuery("ul", this).fadeIn("fast"); + }, + function() { + jQuery("h2", this).css("background-position", ""); + jQuery("ul", this).fadeOut("fast"); + } + ); + }); +}; + +WYMeditor.SKINS['minimal'] = { + //placeholder for the skin JS, if needed + + //init the skin + //wym is the WYMeditor.editor instance + init: function(wym) { + + //render following sections as dropdown menus + jQuery(wym._box).find(wym._options.toolsSelector + ', ' + wym._options.containersSelector + ', ' + wym._options.classesSelector) + .addClass("wym_dropdown") + .selectify(); + + + } +}; |