In YUI-based applications, it's common for forms to appear as part of Dialogs. In this example, a form enhanced with the Rich Text Editor appears in a Dialog. Read the tutorial below to learn how to integrate the RTE seamlessly with your Dialog's form contents.
Dialog's post response will appear here after you submit the Dialog.
When using a Rich Text Editor in a Dialog Control, there are a few considerations:
submitevent. Instead, we need to call the editor's
saveHTMLmethod prior to executing the Dialog's
display:none). Dialogs, of course, are usually hidden by default and appear only in response to user action. As a result, we need to listen for the Dialog's
hideEventand prepare the Rich Text Editor to recover gracefully when the Dialog is hidden from view.
Note: Logging and debugging is currently turned off for this example.