PyroCMS CKEditor格式化文本类型问题

时间:2012-10-14 16:55:36

标签: codeigniter ckeditor pyrocms

PyroCMS v2.1

当格​​式化'时,在wysiwyg(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;

   }

}

1 个答案:

答案 0 :(得分:1)

看起来像CKEditor 3.4.2&固定在3.5.1:

错误案例: http://dev.ckeditor.com/ticket/6630

修正: http://dev.ckeditor.com/changeset/6321