Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@davglass
Created January 30, 2009 21:36
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 davglass/55270 to your computer and use it in GitHub Desktop.
Save davglass/55270 to your computer and use it in GitHub Desktop.
(function() {
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
Event.onDOMReady(function() {
var textareas = document.body.getElementsByTagName('textarea'),
len = textareas.length,
editors = [];
for (var i = 0; i < len; i++) {
editors[i] = new YAHOO.widget.SimpleEditor(textareas[i], {
height: '300px',
width: '700px',
});
editors[i].render();
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment