handleSubmit: false (A broken WYSIWYG editor)

This example demonstrates the code editor example from YUI does not work when using handleSubmit: false (default).

The use case:

  1. Load this page
  2. Do NOT toggle to the code view
  3. Change the text below from "monkey" to "banana"
  4. Click Submit
  5. The alert box prompts the value that will be submitted: "monkey" (NOT the desired "banana")

The problem:

When you don't use handleSubmit, the textarea does not get updated with the modified information from the iframe when the form is submitted. The user must toggle to the code view to trigger the update to the textarea.

See what happens when you use handleSubmit: true