Hello hekutoru2kx,
You can add extra fields according to TinyMCE specifications
here.
You'll need to change plugins/generic/tinymce/TinyMCEPlugin.inc.php to add the specific buttons, according to the code provided by Moxicode.
Another options is to change the CSS to enable paragraphs to be justified by default, which would make more sense to me, as it will change all required paragraphs.
You may have to edit ojs2/templates/article/article.tpl, near line 80:
- Code: Select all
<div>{$article->getLocalizedAbstract()|strip_unsafe_html|nl2br}</div>
You should add a class to the div, or modify that code to be a paragraph, although TinyMCE already adds paragraphs, so you have nested paragraphs on the variable.
I would recommend adding a class="abstract" at the div, and then on my CSS I would add the following rule:
- Code: Select all
div.abstract p {
text-align:justify;
}
It's a simple modification, not too difficult to keep track of for future upgrades.