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

Commit

Permalink
re-added sprockets
Browse files Browse the repository at this point in the history
  • Loading branch information
swilliams committed Jul 16, 2010
1 parent 70fb3be commit cd53ae2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/wysihat.js
Expand Up @@ -31,3 +31,13 @@ var WysiHat = {};
//= require "wysihat/formatting"

//= require "wysihat/toolbar"

// Set wysihat as a jQuery plugin
$.fn.wysihat = function() {
return this.each(function() {
var editor = WysiHat.Editor.attach($(this));
var toolbar = new WysiHat.Toolbar(editor);
toolbar.initialize(editor);
toolbar.addButtonSet(WysiHat.Toolbar.ButtonSets.Basic);
});
};

0 comments on commit cd53ae2

Please sign in to comment.