I'm wanting to remove the TinyMCE from the MyGalleries page. I have,but I am receiving an error.....
I replaced this code
<!--<textarea cols="20" rows="5" name="description"><?php echo htmlspecialchars(stripslashes($description)); ?></textarea>-->
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor1', $description , 'description', '600', '200', '35', '15' ) ; ?>
with
<textarea name="textfield" cols="50" rows="5"></textarea>
The look is fine, but what is happening is...when I go in to edit a picture uploaded and save, the save button does not do anything, and I do receive an error
form.desc has no properties..
function submitbutton(pressbutton) {
var form = document.form1;
if (pressbutton == "cancel") {
form.reset();
history.back();
return;
}
tinyMCE.triggerSave();
if (form.catid.value == "0") {
alert("You must provide a gallery name.");
} else if (form.descr.value == "") {
alert("You must provide a description.");
} else {
form.submit();
}
}
I really don't want the TinyMCE as it breaks my template...
Does anyone have any ideas what I can do.