if(!window.dialogArguments) { window.dialogArguments = Window_GetDialogArguments(window); } var editor = window.dialogArguments.editor;