The spelling property defines the location of Textbox.io server-side spelling service.
Example Configuration
In this example, a simple configuration object is created that defines the location for the Textbox.io Server Components spelling service for an editor instance. The configuration is used to generate an editor via replace.
var config = {
spelling : {
url : 'http://yourspelling.server.com/ephox-spelling/',
autocorrect : true
}
};
var editor = textboxio.replace('#targetId', config);
Properties
| Property | Type | Properties |
|---|---|---|
url | String | A URL string that defines the endpoint for the Server-Side Components spelling service. |
autocorrect | Boolean | A boolean value to enable spelling autocorrect by default |
Services Disabled by Default
Textbox.io services are not enabled by default. Defining service urls enables those services and their respective client components. For more details, see: Server-Side Components.