This guide outlines the main steps that you need to follow in order to integrate and configure the SCAYT for Editable Controls with HTML contenteditable elements such as div, textarea, iframe, etc. All the described steps are provided for the Cloud version of SCAYT.
Good to know:
- SCAYT is a standalone control that is used for spell and grammar checking of single-line or multiline HTML elements and can be integrated with such editable controls as textarea and input, controls with a contenteditable attribute and iframe.
- To get started with the trial or paid version of SCAYT for Editable Controls, it is required to subscribe to the Cloud SCAYT services. On the subscription, you will receive an email with your encrypted customer ID, an activation key, that is required for the SCAYT service activation.
1. Add SCAYT Script
First of all, you need to add a script on your page and define a path to the SCAYT application.<script type="text/javascript" src="https://svc.webspellchecker.net/spellcheck31/lf/scayt3/scayt/scayt.js"></script>
2. Initialize SCAYT in HTML Editable Elements
The next step is to initialize the SCAYT functionality for chosen elements and define the required parameters. Below you will find examples of SCAYT initialization in div, iframe, input and textarea elements.
- Specify your encrypted customer ID. The required parameter for the Cloud SCAYT service activation is customerId. You must pass your encrypted customer ID value received on the subscription to access the SCAYT services.
customerId: 'encrypted-customer-ID'
- Adjust the default SCAYT parameters. Check a full list of SCAYT API parameters and their possible values to adjust default SCAYT settings and configure SCAYT to fit your needs.
2.1. Contenteditable DIV Element
2.2. Contenteditable IFRAME Element
2.3. Contenteditable INPUT Element
2.4. Contenteditable TEXTAREA Element
Check a demo page with SCAYT for Editable Controls on our website.
Still Need a Help?
If you are still experience some difficulties with configuring SCAYT for Editable Controls, please check our training video on our official YouTube channel. It will guide you through all configurations steps and demonstrate how to enable a comprehensive spell and grammar checking tool in your web application or website.