Add view only mode

Two way to set editor view only mode is there.

1. html element attribute mode="view".
1. url parameter mode=view.