Add view only mode

There is two way to set a editor view only mode.

1. html element attribute mode="view".
1. url parameter mode=view.