I have tried searching this topic but nothing found. I edited metadata of articles then save it. After hitting save, metadata box appears again. I tried saving again but it appears again. I just closed it. Some edited items are saved such as adding new contributor but some are not such as set abstract in justify alignment. Could you tell me what is the problem and how to solve it?
I suspect the metadata box is behaving as expected – the problem may be that you’re using markup to set the alignment that the HTML filter doesn’t permit. Can you check what markup TinyMCE is using for justified alignment?
Regards,
Alec Smecher
Public Knowledge Project Team
The HTML filter doesn’t allow that HTML element and attribute. You can adjust what HTML you allow by editing config.inc.php and looking for the allowed_html setting.
Regards,
Alec Smecher
Public Knowledge Project Team
; Allowed HTML tags for fields that permit restricted HTML.
; Use e.g. “img[src,alt],p” to allow “src” and “alt” attributes to the “img”
; tag, and also to permit the “p” paragraph tag. Unspecified attributes will be
; stripped.
allowed_html = “a[href|target|title],em,strong,cite,code,ul,ol,li[class],dl,dt,dd,b,i,u,img[src|alt],sup,sub,br,p,<>”
You would need to add div[style] to the list to permit justification in the abstracts. (Note that you’ll be allowing anyone to enter arbitrary styles this way!) We don’t yet have a recommendation on how to handle rich markup in title elements – see this thread for discussion.
Regards,
Alec Smecher
Public Knowledge Project Team
What is your current allowed_html setting value, what HTML markup are you putting into that field, and what HTML markup is being displayed on the front end? (Use the “preformatted text” tool to quote e.g. HTML markup when posting in this forum.)
Regards,
Alec Smecher
Public Knowledge Project Team
Was there ever a solution to this thread or guys gave up? The conversation seemed like nobody had knowledge of what really was the problem. I just have the same problem…
Hi, That link seems not helping me much. Okay for justifying abstract text i simply added style=“text-align:justify;” in article_details.tpl on div class=“abstract” and that sorted it out.
My problem now is this.
This is how my abstract looks like when uploading: htere are bolds, and paragraphs
and this how ojs302 renders abstract: no paragraphs
and finally this is how my config file looks like: