I want to write an Office-AddIn (React App) for my research group, that keeps track of chemical compounds in a word document. The software we use to draw molecules at university is called "ChemDoodle", and it comes with a free WebAPI based on HTML5 and JavaScript: ChemDoodleWeb-Components. If you want to use them in plain HTML Websites one would first add two references to the header section of the HTML file:
<link rel="stylesheet" href="[path]/ChemDoodleWeb.css" type="text/css">
<script type="text/javascript" src="[path]/ChemDoodleWeb.js"></script>
and then the libary can be accessed in the body section of the same file simply by
<script>//Do something ChemDoodle related </script>
The "ChemDoodleWeb.js" File presets one variable called "ChemDoodle" to the outside, which is used everywhere do control a canvas.
I am very new to React, OfficeAddIn or JavaScript in general. So my question might be utterly stupid: But is there any chance i can use this libary in my react-office addin? I tried just importing it, and of course it is not a module.
Can anyone that has more clue, have a brief look on the API and tell me, if there is a way?
Thx alot Christoph