This sample shows how to use the ReadOnly API to put editor into the read-only state that makes it impossible for users to change the editor contents.