saturngod
Member
Posted 2 years ago #
I can't use Google Syntax Highlighter plugin with author permission. I can use with Admin Permission Why!
I use with author and add in text editor like that
<pre name="code" class="c#">
it changed to
< pre >
after update or Publish. How to fixed that ? I can use with admin but most of author can't use syntax highlighter :(
saturngod
Member
Posted 2 years ago #
I also add
extended_valid_elements : "pre[name|language]"
in wp-admin/include/post.php
like that
tinyMCEPreInit = {
base : "<?php echo $baseurl; ?>",
suffix : "",
extended_valid_elements : "pre[name|language]",
query : "ver=<?php echo $ver; ?>",
mceInit : {<?php echo $mce_options; ?>},
and
This plugin
http://www.engfers.com/plugins/tinymce-valid-elements/
not work for me :(
saturngod
Member
Posted 2 years ago #
I solved it..
http://orangescale.net/log/2007/06/sanitizing-html-tags-in-wordpress-mu/
I add like that in kses.php inside wp-includes directory
search
'pre' => array(
'style' => array(),
'width' => array ()),
and
change like this
'pre' => array(
'style' => array(),
'name'=>array(),
'class'=>array(),
'lang'=>array(),
'width' => array ()),