Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Modified

Status
title릴리즈 Release 2.4.0 이상

주민등록번호, 이메일, 전화번호와 같은 개인정보들을 필터링하여 '*'로 치환해주는 '개인정보보호' 플러그인입니다.

Image Removed

사용방법

...

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 '*'.

Image Added

How to Use

Loading Plugin File

Code Block
languagexml
themeEmacs
<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
languagejs
themeEmacs
title에디터 설정Editor Configuration
//...
'editor.toolbar': [
	//...,
	'personalDataProtection',
	//...
],
// ...

...

Adding to Menu

Code Block
languagejs
themeEmacs
title에디터 설정Editor Configuration
//...
'editor.menu.definition': {
	//...,
	'tools': [
		//...,
		'personalDataProtection',
		//...
	],
	//...
},
//...

API

editor.checkPersonalData(callback)

Status
colourYellow
titleRelease 2.13.0 or Above

Personal information check is performed and the result is returned to the callback function received as an argument.

Parameters:

nameTypeDescription
callbackFunction

This is a callback function to receive the personal information check result. The check result is returned as a Boolean .

function (result) {
     // result value true: pass, false: fail
}



Example

Code Block
languagejs
themeEmacs
editor.checkPersonalData(function (result) {
    if (!result) {
        // If the Personal information check does not pass, open the personal information dialog
        editor.getUIManager().showDialog('personalDataProtection');
    }
});