Answer the question
In order to leave comments, you need to log in
How to enable HTML comments in FroalaEditor (WYSIWYG) in DLE?
Good afternoon!
Question on setting up the parser /engine/classes/parse.class.php SMS DLE
I'm trying to get the parser to pass HTML comments into the FroalaEditor (WYSIWYG), but for some reason it does not respond to the HTML.AllowedComments and HTML.AllowedCommentsRegexp directives.
I tried to add to the parse.class.php file after the line:
$parse_config->set('HTML.Allowed', implode(",",$tagsArray) );
$parse_config->set('HTML.AllowedComments', array('<!-- noindex -->' => true, '<!--/ noindex -->' => true) );
$parse_config->set('HTML.AllowedComments', array('noindex' => true, 'noindex' => true) );
$parse_config->set('HTML.AllowedCommentsRegexp', '%<!--\/*\s*noindex\s*-->%');
$parse_config->set('HTML.AllowedCommentsRegexp', '%noindex%');
if ($def = $parse_config->maybeGetRawHTMLDefinition()) {
$def->addElement('!-- noindex --', 'Block', 'Flow', 'Common');
$def->addElement('!-- /noindex --', 'Block', 'Flow', 'Common');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question