Improved editor and autoresize plugin