revisting the word-editor (not done yet). This include issue #216, issue #214, issue #222, and issue #213