Integrate newer image uploader instead of JustBoil.ME

Hi there!

One of the scientific journals is very interested in updating an upload function for TinyMCE. We are interested in receiving a working plugin for images handling on OJS.

One of the threads ([OJS] justboil.me image uploader doesn't work when `public/site` does not exist · Issue #1919 · pkp/pkp-lib · GitHub) showed that JustBoil.ME has become totally buried, and we request a possible alternative for that.

As far as I could search for a better working plugin, there could be (for instance) this: https://www.tinymce.com/docs/get-started/upload-images/ ?

Or this idea: OJS has a section for handling and storing files (it is located at Publisher Library). May be in this section someone could include the ability to make inner URL adresses for their integration into user blocks or other places? Because for us it is necessary to post images as hyperlink buttons for better communication with the audience.

Thanks!

Hi @texnicker,

Interesting that newer TinyMCE releases have this capability built-in – I wasn’t aware of that.

I think two solutions might be necessary: one that allows users to upload arbitrary images e.g. as part of their biographies (though to be honest I’m not sure this feature is worth the risk of having people post something nasty), and another that allows journal insiders to post less controlled content (e.g. not just size-limited images but also PDFs and the like). The former could be satisfied by the TinyMCE uploader you linked, and the second could be satisfied by something like you describe in the Publisher Library.

If the Publisher Library solution would satisfy your needs, I’d prefer leaving the arbitrary image upload thing until we could talk to someone who had a concrete use case; that way we could talk limits with something specific in mind. I think all the Publisher Library would require is a checkbox that would allow public access to a file there.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher,
As for us, we would be totally happy with this decision!

Hi @asmecher,

As to the new TinyMCE image uploader, may we hope it might appear in 3.1? Thanks!

Hi @Ph_We,

This might end up being a third-party contribution, and I can’t promise what release it’ll be included in yet. But it’s possible.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher,

As far as I can see in the full featured example here, there may be the “Insert Image” button, which just allows to insert any external URL. Would it be possible to enable this button instead of JustBoil.ME (not functional) as a temporal workaround?

Some of our users feel helpless, since they do not even know how to add right HTML tags :slight_smile:

Hi @Ph_We,

The justboil.me plugin is working for many users (including me locally) – but I’m hesitant to invest time into fixing it for those who are experiencing problems, because I don’t think that’s going to be useful for more than the short term, and because it can be very time consuming to debug remotely. If you’d like to add support for that image insert tool, you can do so by editing lib/pkp/js/controllers/SiteHandler.js, where the list of tools/plugins is specified.

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry, I thought it was a global issue. And it does not work for all the journals in our installation. Anyway, thanks for your hints.

Hi @Ph_We,

It may be related to issue #1902, which I’ll try to get resolved as soon as I have access to an environment that replicates the problem behavior.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I forgot to say, that in our case this issue appeared after upgrading to 3.0.2.

Hi @Ph_We,

I suspect it may be related to $_SERVER[HOSTNAME] should not be used for host identification · Issue #1426 · pkp/pkp-lib · GitHub in that case – little else changed that would affect this aspect of operation between 3.0.1 and 3.0.2.

Regards,
Alec Smecher
Public Knowledge Project Team

Justboil.me plugin does not have option to add alt tag which is necessary requirement for accessibility of images. Some legislations are very strict on that matter. Neglecting that aspect may put some users in difficult situation. Thus, I Think that any default image insert plugin would be good solution. However, if author of Justboil.me plugin is willing to add that feature it would be fine.

Thanks

Hi @asmecher,
are there any news about integrating the checkbox for public access of documents in Publisher Library yet?
Thank you

Hi @cgermann,

Not yet; follow Improve Submission Library utility · Issue #520 · pkp/pkp-lib · GitHub for status updates.

Regards,
Alec Smecher
Public Knowledge Project Team