Dialog windows open conditionally

All dialogs are stored in the `WYMeditor.DIALOGS` array.