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

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

Expense Report

Synapsoft Corp.

Approval

Person

Manager

Date

Dept

Name

Date

Account name

Amount

Description

Credit card

Sub total

₩0

Cash

Sub total

₩0

Total

₩0

Support Team

Person

Manager

Receipt



  • No labels