andyc209
12-08-2009, 01:08 PM
1) Script Title: Rich Text Editor
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm
3) Describe problem: How can I change the font on the texarea from Times to arial?I have tried styling the textarea in the script but it does not work (see below).
thanks for any info
.
.
.
if (!readOnly) {
document.writeln('<textarea name="' + rte + '" id="' + rte + '" style="width: ' + width + 'px; height: ' + height + 'px; font-family: arial, sans-serif; font-size:0.80em;">' + html + '</textarea>');
} else {
document.writeln('<textarea name="' + rte + '" id="' + rte + '" style="width: ' + width + 'px; height: ' + height + 'px; font-family: arial, sans-serif; font-size:0.80em;" readonly>' + html + '</textarea>');
}
.
.
.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm
3) Describe problem: How can I change the font on the texarea from Times to arial?I have tried styling the textarea in the script but it does not work (see below).
thanks for any info
.
.
.
if (!readOnly) {
document.writeln('<textarea name="' + rte + '" id="' + rte + '" style="width: ' + width + 'px; height: ' + height + 'px; font-family: arial, sans-serif; font-size:0.80em;">' + html + '</textarea>');
} else {
document.writeln('<textarea name="' + rte + '" id="' + rte + '" style="width: ' + width + 'px; height: ' + height + 'px; font-family: arial, sans-serif; font-size:0.80em;" readonly>' + html + '</textarea>');
}
.
.
.