We are currently going through upgrading from OJS 2 to OJS 3.0.2 and have done this now on our test and dev servers (we are upgrading to 3.0.2 because 3.1 was not out when we began the upgrade process).
When we add an image to either the ‘Short Description’ or ‘Description’ WYSIWYG editor , it appears fine in the editor (will the correct file path etc), but as soon as you save it, then either view it in the back-end, or view the announcement in the front-end, the image has been stripped out, leaving only text.
If you go back in to edit the announcement, the image is still there in the WYSIWYG editor though.
Steps to replicate:
1.Add image to description of announcement and save
2.View announcement in back-end(no image)
3.View announcement in front-end (no image)
4.Edit announcement again (image is present still)
Please check in config.inc.php are there restrictions for HTML tags in part of config.inc.php that defines restriction of HTML tags. In my experience, images should appear by default in Announcement.
Thanks Vedran, but it appears that img tags are allowed already. Images embed in other locations without an issue, it appears to just be announcements.
in their config.inc.php there is the following line about html: 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"