API Example for Antidote’s JS-Connect
Call Antidote with one of the buttons under the text fields.
Examples Summary
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.
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.
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.