Adding resizing of editor