Sapling Logo
← Back to docs   Textarea demo

Lets get started!

<script src="https://sapling.ai/static/js/sapling-sdk-v1.0.6.min.js"></script>
<div contenteditable="true" id="editable"></div>

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