Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Implement 2 style: default verbose and short; toggle button.
Browse files Browse the repository at this point in the history
Remove IE8 support. Correct IE9 dl line-height.
  • Loading branch information
gyuris committed Feb 9, 2012
1 parent db3f172 commit d048357
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 135 deletions.
22 changes: 21 additions & 1 deletion src/examples/17-pretty-theme.html
Expand Up @@ -33,7 +33,27 @@

jQuery(function() {
jQuery('.wymeditor').wymeditor({
iframeBasePath: "../wymeditor/iframe/pretty/"
iframeBasePath: "../wymeditor/iframe/pretty/",
postInit: function(wym) {
//construct the button's html
var html = "<li class=\"wym_tools_toogle_pretty_theme\">"
+ "<a name=\"TogglePrettyTheme\" href=\"#\""
+ " title=\"Toggle short and verbose theme style\""
+ " style=\"background-image:"
+ " url(../wymeditor/iframe/pretty/icon.png)\">"
+ "Toggle short and verbose theme style"
+ "</a></li>";
//add the button to the tools box
jQuery(wym._box)
.find(wym._options.toolsSelector + wym._options.toolsListSelector)
.append(html);
//handle click event
jQuery(wym._box)
.find('li.wym_tools_toogle_pretty_theme a').click(function() {
wym.toggleClass('short', 'BODY' );
return(false);
});
}
});
});

Expand Down
Binary file added src/wymeditor/iframe/pretty/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d048357

Please sign in to comment.