RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 22, 2008, 02:34:22 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Remove TinyMCE....
Advanced search
  « previous next »
Pages 1
Author
Topic: Remove TinyMCE....  (Read 1846 times)
« on: May 17, 2008, 06:55:15 pm »
Jen Offline
Newbie
*
Posts: 3

View Profile Email

I'm wanting to remove the TinyMCE from the MyGalleries page. I have,but I am receiving an error.....

I replaced this code

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

Code:
                <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.
Logged
 
Reply #1
« on: May 18, 2008, 02:44:59 am »
john Offline
Dev Team
Sr. Member
*
Posts: 460

View Profile

Hi.

change the name attribute of the textarea are to "descr". that should do the trick.


john
Logged
 
Print  Pages 1
« previous next »
Jump to: