Page 1 of 1

Updating the JQuery plugin

Posted: Sat Dec 17, 2016 1:55 am
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?


Re: Updating the JQuery plugin

Posted: Tue Dec 20, 2016 1:30 pm
by bogdan_cercelaru

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).