editor on dom ready