Does Web Author Provide jQuery Support?
Are you missing a feature? Request its implementation here.
-
- Posts: 170
- Joined: Thu Aug 30, 2018 10:06 pm
Does Web Author Provide jQuery Support?
Post by dreifsnider »
Hi,
I'm curious if Web Author natively supports/includes jQuery? I am developing a JS plugin and was wondering if I can use jQuery syntax and selectors.
If it doesn't, what's the best way to include support for jQuery?
Thanks!
Daniel
I'm curious if Web Author natively supports/includes jQuery? I am developing a JS plugin and was wondering if I can use jQuery syntax and selectors.
If it doesn't, what's the best way to include support for jQuery?
Thanks!
Daniel
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Does Web Author Provide jQuery Support?
Post by Gabriel Titerlea »
Hello,
At the moment JQuery is loaded in Web Author, but we won't guarantee that it will be available in future versions.
The best approach would be to package JQuery yourself, with the plugin code. And use JQuery.noconflict to avoid JQuery version conflicts.
Best,
Gabriel
At the moment JQuery is loaded in Web Author, but we won't guarantee that it will be available in future versions.
The best approach would be to package JQuery yourself, with the plugin code. And use JQuery.noconflict to avoid JQuery version conflicts.
Best,
Gabriel
-
- Posts: 170
- Joined: Thu Aug 30, 2018 10:06 pm
Re: Does Web Author Provide jQuery Support?
Post by dreifsnider »
Hi Gabriel,
Thank you for your reply. I will investigate packaging jQuery alongside the plugin code. I would like to avoid having to package it for every plugin that we build, so I'm wondering if we could create a plugin that only contains jQuery but is still available to other plugins. Perhaps we could use the WebappStaticResourcesFolder plugin extension to add the min file to a resources folder.
Thanks for the tip about using Jquery.noconflict too.
Daniel
Thank you for your reply. I will investigate packaging jQuery alongside the plugin code. I would like to avoid having to package it for every plugin that we build, so I'm wondering if we could create a plugin that only contains jQuery but is still available to other plugins. Perhaps we could use the WebappStaticResourcesFolder plugin extension to add the min file to a resources folder.
Thanks for the tip about using Jquery.noconflict too.
Daniel
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Does Web Author Provide jQuery Support?
Post by Gabriel Titerlea »
Hello,
You can expose a WebappStaticResourcesFolder in a plugin and load jquery from that folder by writing a script tag in the oxygen.html file.
Best,
Gabriel
You can expose a WebappStaticResourcesFolder in a plugin and load jquery from that folder by writing a script tag in the oxygen.html file.
Best,
Gabriel
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service