Page tree

Versions Compared

Key

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

...

Code Block
languagejs
themeEmacs
titleEditor Configuration
//...
'editor.menu.definition': {
	//...,
	'tools': [
		//...,
		'personalDataProtection',
		//...
	],
	//...
},
//...

API

editor.checkPersonalData(callback)

Status
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((result) => {
    if (!result) {
        // If the Personal information check does not pass, open the personal information dialog
        editor.getUIManager().showDialog('personalDataProtection');
    }
});