I can activate EmailProtection in Editor config. Nice !
But when i set to encode.
I have a javascript error when saving a email link.
The error is in plugin dnnpages plugin.js
The function protectEmailAddressAsEncodedString dont exist.
Here my correction :
```
if (emailProtection == 'encode') {
var charCode,
length = address.length,
encodedChars = [];
for (var i = 0; i < length; i++) {
charCode = address.charCodeAt(i);
encodedChars.push(charCode);
}
protectEmailAddressAsEncodedString = 'String.fromCharCode(' + encodedChars.join(',') + ')';
linkHref = ['javascript:void(location.href=\'mailto:\'+',
protectEmailAddressAsEncodedString];
// parameters are optional.
argList && linkHref.push('+\'', escapeSingleQuote(argList), '\'');
linkHref.push(')');
} else linkHref = ['mailto:', address, argList];
```
dnn ckeditor version 2.0.4
Comments: ** Comment from web user: sachatrauwaen **
But when i set to encode.
I have a javascript error when saving a email link.
The error is in plugin dnnpages plugin.js
The function protectEmailAddressAsEncodedString dont exist.
Here my correction :
```
if (emailProtection == 'encode') {
var charCode,
length = address.length,
encodedChars = [];
for (var i = 0; i < length; i++) {
charCode = address.charCodeAt(i);
encodedChars.push(charCode);
}
protectEmailAddressAsEncodedString = 'String.fromCharCode(' + encodedChars.join(',') + ')';
linkHref = ['javascript:void(location.href=\'mailto:\'+',
protectEmailAddressAsEncodedString];
// parameters are optional.
argList && linkHref.push('+\'', escapeSingleQuote(argList), '\'');
linkHref.push(')');
} else linkHref = ['mailto:', address, argList];
```
dnn ckeditor version 2.0.4
Comments: ** Comment from web user: sachatrauwaen **
nice !