Sync preview with editor.

Signed-off-by: cyberzhg <cyberzhg@gmail.com>