@Gleeok
Why not just rewrite the editor from scratch?