html area. It's fantastic. While i'm bummbed that it isn't 100% cross browser compatible (mac ie and safari) I've done some things to it that improve this situation.
For one, we have lots of dynamically generated textareas. I don't want to fill a page with 20 editors on textareas, so i did some mods to support having a click link to display the editor, as well as checking for mac ie to hide it.
[code]
// this is for the htmlarea wysiwyg editor. this hides it from mac ie and safari
if (((navigator.userAgent.indexOf("MSIE") > -1) && (navigator.userAgent.indexOf("Mac") > -1) ) || (navigator.userAgent.indexOf("Safari") > -1) ) {
var canuseeditor = false;}
else { var canuseeditor = true;}
// write some html out to click on the htmlarea editor
function checkIESafari(textAreaId) {
if (canuseeditor) {
document.write('');
document.write('
');
}
function initEditor(theform) {
// this prevents from multi editors on one form
document.getElementById('link_' + theform).onclick="";
//this builds the editor on to the supplied textarea
editor = new HTMLArea(theform);
--- SNIP ---
And here's what I stuck in my page:
checkIESafari('TheTextaraName);[% proto.description %]
[/code]


