This sample shows how to use the setReadOnly API to put editor into the read-only state that makes it impossible for users to change the editor contents.
setReadOnly
For details on how to create this setup check the source code of this sample page.
<p>This is some <strong>sample text</strong>. You are using <a href="https://ckeditor.com/">CKEditor</a>.</p>