replace editor with pre