fix incorrect call

there is no refresh(editor), but editor.refresh()
use a overlay div to make it work