Hi Adam,
Thanks for your reply.
I changed
var editor = document.getElementById('<%=Editor1.ClientID%>');
to
var editor=window.dialogArguments;
It seems to work fine now!
Does that mean"var editor = document.getElementById('<%=Editor1.ClientID%>');" will no longer work?
Alice