Status title 릴리즈 Release 2.4.0 이상
주민등록번호, 이메일, 전화번호와 같은 개인정보들을 필터링하여 '*'로 치환해주는 '개인정보보호' 플러그인입니다.
사용방법
...
or Above
It is 'Personal Information Protection' plugin that filters personal information such as residential registration number, email address and phone number and masks them with '*'.
How to Use
Loading Plugin File
Code Block | ||||
---|---|---|---|---|
| ||||
<link rel="stylesheet" href="URL of personalDataProtection.min.css의 urlcss"> <script src="URL of personalDataProtection.min.js의 urljs"></script> |
UI
플러그인 이름인 You may add the button to toolbar and menu with 'personalDataProtection'을 사용하여 툴바 영역, 메뉴 영역에 버튼을 추가할 수 있습니다.
...
, the name of the plugin.
Adding to Toolbar
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//... 'editor.toolbar': [ //..., 'personalDataProtection', //... ], // ... |
...
Adding to Menu
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//...
'editor.menu.definition': {
//...,
'tools': [
//...,
'personalDataProtection',
//...
],
//...
},
//... |
API
editor.checkPersonalData(callback)
Status colour Yellow title Release 2.13.0 or Above
Personal information check is performed and the result is returned to the callback function received as an argument.
Parameters:
name | Type | Description | |
---|---|---|---|
callback | Function | This is a callback function to receive the personal information check result. The check result is returned as a Boolean .
|
Example
Code Block | ||||
---|---|---|---|---|
| ||||
editor.checkPersonalData(function (result) {
if (!result) {
// If the Personal information check does not pass, open the personal information dialog
editor.getUIManager().showDialog('personalDataProtection');
}
}); |