Announcement Images with custom size not being scaled on frontend- TinyMCE

Hi, @Ant_Forshaw,

Darn… I was hoping that might address it. It does allow for the use of images, but not additional styling via HTML.

There is a bit of an explanation here on some of the rationale behind not allowing additional HTML through TinyMCE: Adding images to announcements in OJS 3.3 - Tiny MCE - #4 by rcgillis

But I wonder about some potential workarounds here:

  1. You could try editing your config.inc.php to have some additional allowed HTML:
    allowed_html = "a[href|target|title],em,strong,cite,code,ul,ol,li[class],dl,dt,dd,b,i,u,img[src|alt|width|height],sup,sub,br,p (this is just an example I pulled - your settings might look different)

  2. Another option to try might be a custom stylesheet CSS stylesheet, where you identify the image through an ID attribute. That said, even if you had an ID attribute - although - it’s entirely possible that if you used an id or something similar in the HTML, that it would be stripped out.

-Roger
PKP Team

1 Like