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: You are viewing this example in debug mode with logging enabled. This can significantly slow performance.
All YUI 2.x users should review the YUI 2.8.2 security bulletin, which discusses a vulnerability present in YUI 2.4.0-2.8.1.