add a reflow method in editor.util
use browser's selectionchange event if possible