API Example for Antidote’s JS-Connect

Call Antidote with one of the buttons under the text fields.

Examples Summary

  1. Activation
  2. Example 1—Unlinked buttons
  3. Example 2—Button linked to field
  4. Example 3—Button linked to fields (textarea)
  5. Example 4—Button linked to fields (div)
  6. Example 5—Button linked to fields (div and textarea)
  7. Example 6—Button linked to fields (iframe and textarea)

Example of an activation

(See the file antidote-api-js-connect.js for more details)

This activates Antidote’s buttons inserted below.
This deactivates the Antidote buttons inserted below.

Example 1—Unlinked buttons

The 3 buttons below have not been linked to any of the page’s fields.

Example 2—Button linked to field

The field below is linked to the corrector button located below.
Only this field will be processed when you click on the button, regardless of the text that has been selected in the page.

Example 3—Button linked to fields (textarea)

The 2 fields below are linked to the corrector button located below.
Only these fields will be processed when you click on the button, regardless of the text that has been selected in the page.

Example 4—Button linked to fields (div)

The 2 fields below are linked to the corrector button located below.
Only these fields will be processed when you click on the button, regardless of the text that has been selected on the page.

This 6th field (div) is linked to the button below.
This 7th field (div) is linked to the button below.

Example 5—Button linked to fields (div and textarea)

The 2 fields below are linked to the corrector button located below.
Only these fields will be processed when you click on the button, regardless of the text that has been selected on the page.

This 8th field (div) is linked to the button below.

Example 6—Button linked to fields (iframe and textarea)

The 2 fields below are linked to the corrector button located below.
Only these fields will be processed when you click on the button, regardless of the text that has been selected on the page.