Skip to content

Partial Read Only Mode (for certain parts of the content) #757

Closed
@ghost

Description

Hi,
I would like to make parts of the editor read only, while other parts to be editable.
If I have the following markup:

<div id = "editable">
    <div class="readOnly">Don't edit me</div>
    <div class="readWrite">Edit me</div>
</div>

When I do AlloyEditor.editable('editable', config); is it possible to make "readWrite" div to be editable but the "readOnly" div to be read-only?

I know there's nativeEditor.setReadOnly(true); but it seems this will prevent editing to the entire section - I am after somethign partial.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions