OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Entering javascript in the HTML Source editor

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Entering javascript in the HTML Source editor

Postby shimola » Mon Jun 02, 2008 7:31 am

Hi there

Apologies if this has been asked before (I've done a few unsuccessful searches) - is it possible to change the settings of the HTML Source editor? I'd like to have a go at inserting a flash video in the abstract submission metadata but the editor strips out the script code.

I guess the alternative would be adding the videos as supplementry files (they might be a bit 'hidden' in the abstracts anyway) but then there might be a problem of what format to choose...

Best wishes

Shimola
shimola
 
Posts: 20
Joined: Wed Apr 16, 2008 7:18 am

Re: Entering javascript in the HTML Source editor

Postby asmecher » Mon Jun 02, 2008 8:46 am

Hi Shimola,

There are controls to make sure that the kind of HTML that can be entered is limited, i.e. to formatting tags like <strong> and <em>, and that tags like <script> are removed. This is to prevent XSS attacks by non-priveleged users. Only Journal Managers have the freedom to enter unfiltered HTML. I wouldn't suggest allowing the <script> tag because it'll open you up to a large number of security risks -- using Supplementary Files or Galleys would probably be the best way to go.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Entering javascript in the HTML Source editor

Postby nef » Fri May 11, 2012 4:17 am

Hi
How can the jounal manager make it possible to insert a video in the abstract?
Many of our journals have links to videos in their articles. Is that less risky?
Regards
Niels Erik
nef
 
Posts: 257
Joined: Fri Jun 01, 2007 2:56 am
Location: Aarhus, Denmark


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests