WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin:Google Syntax Highlighter] I can't use with author permission (3 posts)

  1. saturngod
    Member
    Posted 5 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 :(

  2. saturngod
    Member
    Posted 5 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 :(

  3. saturngod
    Member
    Posted 5 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 ()),

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags