Firefox/Feature Brainstorming:Form handling and text areas: Difference between revisions

(→‎File upload form elements: clearing of file inputs is bug 431098)
Line 53: Line 53:
Enhanced the TEXTAREA tag to provide a WYSIWYG editor that generates HTML code.  How many different Javascript, ActiveX, Applet and AJAX solutions exist for this problem?  How many of them <u>actually work</u>?  None.  Let's fix this problem once and do it right.  Imagine:
Enhanced the TEXTAREA tag to provide a WYSIWYG editor that generates HTML code.  How many different Javascript, ActiveX, Applet and AJAX solutions exist for this problem?  How many of them <u>actually work</u>?  None.  Let's fix this problem once and do it right.  Imagine:


  <TEXTAREA NAME="foo" TYPE="wysiwyg">
  <textarea id="foo" type="wysiwyg"> </textarea>


The user would see a text box with WYSIWYG editing controls.  When the form submits, the field would contain HTML code for the user's content.  Other browsers would ignore the new flag and display a standard TEXTAREA.
The user would see a text box with WYSIWYG editing controls.  When the form submits, the field would contain HTML code for the user's content.  Other browsers would ignore the new flag and display a standard TEXTAREA.
Line 59: Line 59:
<u>EVERYONE</u> needs this, including this Wiki.
<u>EVERYONE</u> needs this, including this Wiki.
:However we would be breaking the standards, wouldn't we? And i think we shouldn't be trying to do W3C's job.
:However we would be breaking the standards, wouldn't we? And i think we shouldn't be trying to do W3C's job.
EDIT: Similar thing works in this version, but is not a fomt input and it's not submitted with the rest of the form.
  <div contanteditable="true"> </div>


== Use mouse wheel to modify the values ==
== Use mouse wheel to modify the values ==
8

edits