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
  • TABLE
  • TD
  • TH

Params: selector

NameTypeDescription
selectorstringSelector to retrieve the DOM to restrict editing.

Example:

window.editor.setLock('#lock_element_Id');
window.editor.setLock('.not_editable');