# CKEditor Samples » Using the CKEditor Read-Only API

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.

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>