Print Page | Close Window

New issue on RTE 3

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14479
Printed Date: 29 March 2026 at 4:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: New issue on RTE 3
Posted By: sachinofindia
Subject: New issue on RTE 3
Date Posted: 30 March 2005 at 2:21am

Hi,

While exploring rte, i encountered a new issue on it as follows -
 
While submitting the form, it only accpets <input type=submit> and not <input type=button>. If i try to use button (instead of submit), it doesnt pass the value to/from the text editor. This is strange.
 
Feedback utmost appreciated.
 


-------------
Namaste



Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 March 2005 at 3:28am
This is due to function that listens for the form submission being set to listen for the submit button being clicked.

When the form submit button is pressed some code is executed to pass the value of the RTE to the textarea to be submitted to the server.

This is the code that watches for the form submission:-

//get present onsubmit events
    if (typeof textArea.form.onsubmit == 'function'){
        textArea.form.originalOnSubmit = [];
        textArea.form.originalOnSubmit.push(textArea.form.onsubmit);
    }
   
    //get textrea value from RTE and run any original onSubmit events
    textArea.form.onsubmit = function(){
        textArea.value = editor.body.innerHTML;
        for (i in this.originalOnSubmit){
            return this.originalOnSubmit[i]();
        }
    }



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net