Updating the JQuery plugin

Oxygen general issues.
mark_whisler
Posts: 18
Joined: Fri Sep 12, 2014 1:07 am

Updating the JQuery plugin

Post by mark_whisler »

Our security office identified a potential weakness in our WebHelp system, and isolated it to an "older" version of Jquery.js. When I go look at the Jquery website, they are offering 3.1.1.

Has anyone updated to this version and are there any potential pitfalls?

.MW
bogdan_cercelaru
Posts: 222
Joined: Tue Jul 01, 2014 11:48 am

Re: Updating the JQuery plugin

Post by bogdan_cercelaru »

Hello,

When using DITA Map WebHelp Responsive transformation scenario the jQuery library can be updated by following the next steps:
  1. Copy the new jQuery file in the "${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js" directory
  2. Edit "${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/wt_index.html", "${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/wt_search.html", "${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/wt_terms.html" and "${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/wt_topic.html" files and change the path to the jQuery library.
    You can use "${oxygen-webhelp-template-dir}/resources/js" macro to refer to the directory that contains the JavaScript files from the "${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js" directory
Please note that the actual WebHelp Responsive output has not been tested with other version of jQuery library than the one included in Oxygen (jQuery version 1.11.3 for Oxygen v18.1).

Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply