OJS 3.0.2 - Images not appearing in Announcements

Bit of a strange one this:

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.:thinking:

Steps to replicate:
1.Add image to description of announcement and save1

2.View announcement in back-end(no image) 2

3.View announcement in front-end (no image) 3

4.Edit announcement again (image is present still) 4

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.

allowed_html = "<a href|target> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img src|alt> <sup> <sub> <br> <p>"

Edit-sorry should’ve said, it looks to be all html formatting (such as a href) are not appearing in announcements.

Hello,
Here it is example of announcements in one journal with OJS 3.0.2
http://journal.jusk.rs/index.php/ijaq/announcement

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"

Thanks Vedran, it looks like replacing my version (with < > surrounding the html tags) with yours (no <>) did the trick!

Great! I am glad that it works.