Support » Plugin: CM Answers » Problem with CM Answer when posting Coding in it.
3 years, 8 months ago
I use SyntaxHighlighter and it works fine everyehere except in CM Answers. Also pre tags didn’t works properly. Please tell me a way to integrate it with syntaxHighlighter.
Thanks in advance.
We have removed code suppor from regular plugin and now only support this in pro plugin. For SyntaxHighlighter you can remove text filtering so everything will padd throught
Look for wp_kses function in /lib/models/AnswerThread.php (appears twice) and make sure it does not remove any tags. This way you can bypass the current filtering and let SyntaxHighlighter to work
sorry but could you please explain it (I am a newbie to PHP)
3 years, 7 months ago
You need to replace
$content = trim(wp_kses($data[‘content’],
‘a’ => array(
‘href’ => array(),
‘title’ => array()
’em’ => array(),
‘strong’ => array(),
‘b’ => array(),
‘pre’ => array()
$content = $data[‘content’];