storing editor text in a variable