Codeigniter PyroCMS编辑器格式化文本类型问题

Codeigniter PyroCMS编辑器格式化文本类型问题,codeigniter,ckeditor,pyrocms,Codeigniter,Ckeditor,Pyrocms,PyroCMS v2.1 选择“格式化”文本类型时,会在所见即所得(ckeditor)中添加新行/空白。有没有办法绕过这个问题 预期的代码如下所示: class person { public $name; function __construct($persons_name) { $this->name = $persons_name; } function set_name($new_name) { $t

PyroCMS v2.1

选择“格式化”文本类型时,会在所见即所得(ckeditor)中添加新行/空白。有没有办法绕过这个问题

预期的代码如下所示:

class person {
    public $name;
    function __construct($persons_name) {
            $this->name = $persons_name;
    }

    function set_name($new_name) {
            $this->name = $new_name;
    }

    function get_name() {
            return $this->name;
   }

}
class person {

    public $name;

    function __construct($persons_name) {

            $this->name = $persons_name;

    }


    function set_name($new_name) {

            $this->name = $new_name;

    }


    function get_name() {

            return $this->name;

   }
但最终看起来是这样的:

class person {
    public $name;
    function __construct($persons_name) {
            $this->name = $persons_name;
    }

    function set_name($new_name) {
            $this->name = $new_name;
    }

    function get_name() {
            return $this->name;
   }

}
class person {

    public $name;

    function __construct($persons_name) {

            $this->name = $persons_name;

    }


    function set_name($new_name) {

            $this->name = $new_name;

    }


    function get_name() {

            return $this->name;

   }

}

看起来像是带有CKEditor 3.4.2的bug,并在3.5.1中修复:

错误案例:

修正:

看起来像是带有CKEditor 3.4.2的bug,并在3.5.1中修复:

错误案例:

修正:

谢谢,老兄,我会升级的。谢谢,老兄,我会升级的。