setUnlock

Release 2.6.0 and above.

public setUnlock(selector: String)

Allows editing by specifying a DOM selector.

Useful when editing is restricted across the entire document and only a portion is allowed for editing.

When applied, it is represented by an unlock icon.

Editable target

  • DIV
  • Elements with "se-contents" or "se-div" class
  • TABLE
  • TD
  • TH

Params: selector

NameTypeDescription
selectorstringSelector to retrieve the DOM to allow editing.

Example:

window.editor.setUnlock('#unlock_element_Id');
window.editor.setUnlock('.editable');