Ajo*_*uve 2 css text-align button ckeditor
我找不到如何添加按钮来格式化我的文本:
text-align:center;
text-align:left;
text-align:right;
text-align:justify;
Run Code Online (Sandbox Code Playgroud)
我有v4版本
我尝试找到解决方案,但只找到一些问题帖子。
也许使用插件?
我正在使用 ckEditor,例如:
<textarea id="monday" class="ckeditor" name="monday" ><?php echo $this->datas['monday']; ?></textarea>
Run Code Online (Sandbox Code Playgroud)
谢谢
小智 5
您只需为您的配置添加理由 - 例如,
var config = {
toolbar: [
['Font','FontSize'],
['Bold','Italic','Underline'],
['TextColor','BGColor'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight']
],
};
$('.ckeditor').ckeditor(config);
Run Code Online (Sandbox Code Playgroud)