setLock
Release 2.6.0 and above.
public setLock(selector: String)
Restricts editing by specifying a DOM selector.
When applied, it is represented by a lock icon.
Target
DIV- Elements with
"se-contents"or"se-div"class TABLETDTH
Params: selector
| Name | Type | Description |
|---|---|---|
selector | string | Selector to retrieve the DOM to restrict editing. |
Example:
window.editor.setLock('#lock_element_Id');
window.editor.setLock('.not_editable');