1

我找不到如何添加按钮来格式化我的文本:

text-align:center;
text-align:left;
text-align:right;
text-align:justify;

我有v4版本

http://ckeditor.com/demo

我试图找到一个解决方案,但我只是找到了一些问题帖子。

也许使用插件?

我正在使用 ckEditor ,例如:

<textarea id="monday" class="ckeditor" name="monday" ><?php echo $this->datas['monday']; ?></textarea>

谢谢

4

1 回答 1

4

您只需要为您的配置添加理由 - 例如,

var config = {
    toolbar: [
        ['Font','FontSize'],
        ['Bold','Italic','Underline'],
        ['TextColor','BGColor'],
        ['JustifyLeft', 'JustifyCenter', 'JustifyRight']
    ],
};
$('.ckeditor').ckeditor(config);
于 2015-02-02T19:18:20.057 回答