Reputation: 10089
I can't find how to add a button to format my text:
text-align:center;
text-align:left;
text-align:right;
text-align:justify;
I have the v4 version
I try to find a solution but I just find some issue posts.
Maybe using a plugin ?
I'm using ckEditor like that forexemple:
<textarea id="monday" class="ckeditor" name="monday" ><?php echo $this->datas['monday']; ?></textarea>
Thanks
Upvotes: 2
Views: 9930
Reputation: 1091
You just have to add justification to your configuration -- e.g.,
var config = {
toolbar: [
['Font','FontSize'],
['Bold','Italic','Underline'],
['TextColor','BGColor'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight']
],
};
$('.ckeditor').ckeditor(config);
Upvotes: 5