2013-02-20 66 views
0

我找不到如何添加一个按钮格式化我的文字:文本对齐CKEditor的

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

我有V4版本

http://ckeditor.com/demo

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

也许使用插件?

我使用CKEDITOR这样forexemple:

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

感谢

+3

是一个选项使用全功能而不是标准编辑器? – 2013-02-20 08:09:47

+0

它的工作原理,感谢您的帮助。 – Ajouve 2013-02-20 08:26:51

回答

0

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

var config = { 
    toolbar: [ 
     ['Font','FontSize'], 
     ['Bold','Italic','Underline'], 
     ['TextColor','BGColor'], 
     ['JustifyLeft', 'JustifyCenter', 'JustifyRight'] 
    ], 
}; 
$('.ckeditor').ckeditor(config);