Quantcast
Channel: CKEditor™ Provider for DNN®
Viewing all articles
Browse latest Browse all 1992

Commented Issue: Email Obfuscation option in configuration [7402]

$
0
0
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 **

nice !


Viewing all articles
Browse latest Browse all 1992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>