Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

RELEASE 2.6.0 OR ABOVE

public setUnlock(selector: String)

'It specifies the DOM selector to allow editing.
It is useful when limiting editing of the entire document and allowing only partial editing.
When applied, it is displayed as an unlock icon ( ).


Allowed to edit

  • DIV
    • Elements with "se-contents" and "se-div" classes specified
  • TABLE
  • TD
  • TH


Params: selector

NameTypeDescription
selectorstringSelectors to import the DOM to limit editing

Example:

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


Source View

You can add 'se-unlock' class to the applied element in the Source View Mode of the editor.


Experiencing

You can allow or restrict editing to specific parts of the editor.


Date
Dept
Name
Date


  • No labels