릴리즈 2.6.0 이상
public setLock(selector: String)
It limits editing by specifying a DOM selector.
When applied, it is represented by a lock icon ().
Applicable to
- DIV
- Elements with "se-contents" and "se-div" classes specified
- TABLE
- TD
- TH
Params: selector
Name | Type | Description |
---|---|---|
selector | string | Selectors to import the DOM to limit editing |
Example:
window.editor.setLock('#lock_element_Id'); window.editor.setLock('.not_editable');
소스보기
에디터의 소스보기에서 적용 대상 Element에 'se-lock'클래스를 추가하여 적용 할 수 있습니다.
체험하기
setText에디터에 일정부분만 편집을 허용하거나 제한 할 수 있습니다.
작성일 | |
---|---|
부서 | |
작성자 | |
영수일 | |