IAutocorrectSettings Interface
Declares autocorrect settings.
Declaration
export interface IAutocorrectSettings
Properties
caseSensitiveReplacement Property
Specifies whether to apply a case-sensitive string comparison when searching through the replacement collection’s items.
Declaration
caseSensitiveReplacement?: boolean
Property Value
Type | Description |
---|---|
boolean | true, for case-sensitive comparison; otherwise, false. |
correctTwoInitialCapitals Property
Specifies whether the control should change the second letter to lowercase when a word starts with two capital letters.
Declaration
correctTwoInitialCapitals?: boolean
Property Value
Type | Description |
---|---|
boolean | true to correct the second letter; otherwise, false. |
detectUrls Property
Specifies whether the control should detect URL strings and format them as hyperlinks.
Declaration
detectUrls?: boolean
Property Value
Type | Description |
---|---|
boolean | true to format URL strings as hyperlinks; otherwise, false. |
enableAutomaticNumbering Property
Specifies whether the control should automatically create numbered or bulleted lists when certain symbols are typed.
Declaration
enableAutomaticNumbering?: boolean
Property Value
Type | Description |
---|---|
boolean | true to create lists; otherwise, false. |
Remarks
When the property is set to true
, the Rich Text Editor behaves as follows.
- The control starts a numbered list when a user types “1.” or “1)”.
- The control starts a bulleted list when a user types “*”.
replaceInfoCollection Property
Specifies a collection of replacements.
Declaration
replaceInfoCollection?: IAutocorrectReplaceInfo[]
Property Value
Type | Description |
---|---|
IAutocorrectReplaceInfo[] | An array of objects that contain replacement settings. |
replaceTextAsYouType Property
Specifies whether the control should replace the typed text if it matches to one of the replacement collection’s items.
Declaration
replaceTextAsYouType?: boolean
Property Value
Type | Description |
---|---|
boolean | true to replace the typed text; otherwise, false. |