> For the complete documentation index, see [llms.txt](https://docs.labii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labii.com/widgets/section-widgets/office/ckeditor/ckeditor-restricted.md).

# CKEditor Restricted

## Specs

| Label                     | Value                         |
| ------------------------- | ----------------------------- |
| **Version**               | 4.0.0 (updated on 2025-12-28) |
| **Developer**             | Labii Inc.                    |
| **Type**                  | Section                       |
| **Support Configuration** | No                            |

## Overview

CKEditor Restricted provides a way to restrict editing rights within a document, enabling certain areas to be designated as editable while restricting other areas. This feature is useful for scenarios such as creating experiment protocols where certain variables need to be updated, creating invoice or email templates, and more. By controlling the editing permissions, users with restricted rights can still make necessary edits in designated regions while preserving the integrity of the rest of the document.

## Use cases

* Creating experiment protocols and only allowing certain variables to be updated.
* Creating invoice templates that restrict editing to specific fields.
* Creating email templates where the main message remains uneditable while allowing customization of certain sections.

## Settings

No specific settings are needed for CKEditor Restricted.

## Interface

CKEditor Restricted provides two editing modes:

### Standard editing mode:

In this mode, the user can freely edit the content and choose regions that should be editable in the restricted editing mode. To create a restricted area:

* Switch to the Standard editing mode if not already in it.
* Type in the text as usual.
* Select the text that should be defined as changeable.
* Click the "Enable editing" icon. The selected area will be displayed in orange.

<figure><img src="/files/KSUkHZfG7CYLpCSAQ9hi" alt=""><figcaption></figcaption></figure>

### Restricted editing mode:

In this mode, the user can only edit the content within the regions previously chosen in the standard editing mode. To use this mode:

* Switch to the Restricted editing mode if not already in it.
* Click on the highlighted area and type in the necessary information.

In the share view, the widget only displays restricted editing mode and cannot switch back to standard mode.

## Generate text context with AI

You can also generate content with AI for CKEditor Restricted widget.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.labii.com/widgets/section-widgets/office/ckeditor/ckeditor-restricted.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
