fix(editor): in FF, the code becomes invisibly empty after modification