public
Last active

  • Download Gist
all_textareas.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(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();
}
});
 
})();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.