...
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
{// config설정 예제 'personalDataProtection.config': { 'phoneNumber': { // 기존 개인정보보호 설정값 수정 replaceText: (text, replaceChar, regExp) => { let index = 0; return text.replace(/\d+/g, (match) => index++ === 1 ? match.replace(/\d/g, replaceChar) : match); } }, 'SynapSoft 'compony_name_check': { // 새로운 개인정보보호 설정 regExp: /synapsoft/gi, messages: { en: 'Company Name', ko: '회사명', ja: '会社名', zh: '公司名称', zh_tw: '公司名稱', vi: 'Tên công ty' }, replaceText: (text, replaceChar, regExp) => { return text.replace(/[s]/gi, replaceChar); } } } } |
API
editor.checkPersonalData(callback)
...