make save dialog work in textareas