12
Views
1
Comments
[CKEditor.Reactive] Can I config ACF-advance content filtering?
ckeditor-reactive
Reactive icon
Forge component by Fábio Fantato
Application Type
Reactive

As the security concern, HTML content may include XSS script so to prevent this issue, CKeditor provide the configuration as ACF 'advance content filtering'

Can I add this configuration? if yes how to config it.

Thank in advance

Refer>> https://ckeditor.com/docs/ckeditor4/latest/guide/dev_best_practices.html#validate-preview-content

Hi , instead of adding this configuration you can add a javascript script which filters whether the text sent by ckeditor presents a vulnerability or not 


var pattern = /<(.*)>/;

function hasHtmlTags(string) {    return pattern.test(string);};

if (hasHtmlTags(userData)) {    // Do something?}

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.