To use jsMind, include the jsmind.css stylesheet and the jsmind.js script. It is recommended to specify a version number to ensure stability. To enable the draggable node feature, you must also include jsmind.draggable-node.js.
<!-- 1. Include CSS and JS -->
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.9.1/style/jsmind.css" />
<script type="text/javascript" src="https://unpkg.com/jsmind@0.9.1/es6/jsmind.js"></script>
<!-- 2. Optional: Enable draggable nodes -->
<script type="text/javascript" src="https://unpkg.com/jsmind@0.9.1/es6/jsmind.draggable-node.js"></script>
<!-- 3. Add a container div -->
<div id="jsmind_container"></div>
<!-- 4. Initialize jsMind -->
<script type="text/javascript">
var options = {
container:'jsmind_container', // [required] id of container
editable:true, // [required] whether allow edit or not
theme:'orange' // [required] theme
};
var jm = new jsMind(options);
jm.show();
</script>