Lock selected content
AlphaPilot program
To let users select arbitrary content and lock it:
- Define a custom Mark or Node in your schema. Add an editor command that applies it to the selection.
- Define a protection rule that selects content with that Mark or Node and sets the permission to
edit: falseso that its content cannot be edited. Usetarget: 'mark'to protect the marked content and its Mark, ortarget: 'node'to protect the Node, its attributes and all its content.