Skip to content

Instantly share code, notes, and snippets.

@marcus
Created August 24, 2011 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcus/1168896 to your computer and use it in GitHub Desktop.
Save marcus/1168896 to your computer and use it in GitHub Desktop.
Add buttons to the WysiHat toolbar
WysiHat.Toolbar.ButtonSets.Simple = $A([
{ label: "Bold" }
{ label: "Underline" }
{ label: "Italic" }
{ label: "Unordered", handler: (editor) -> editor.toggleUnorderedList()}
{ label: "Ordered", handler: (editor) -> editor.toggleOrderedList()}
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment