update hidden character of editor