<script src="https://sapling.ai/static/js/sapling-sdk-v1.0.6.min.js"></script>
<textarea id="editable"></textarea>
<script type="text/javascript">
// Note: Do not expose key like this in production setting!
// See https://sapling.ai/docs/sdk/JavaScript/quickstart/#fullstack-quickstart
Sapling.init({
key: "<API_KEY>",
mode: 'dev',
autocomplete: true,
});
const contentEditable = document.getElementById('editable');
Sapling.observe(contentEditable);
</script>