UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

28 lines (27 loc) 878 B
export class SpellCheckerError { interval; suggestions; } export class SpellCheckerSettings { isEnabled = false; customDictionaryGuid = ""; canAddWord = false; suggestionCount = 4; maxRequestLength; checkWordSpelling; addWordToDictionary; copyFrom(obj) { this.isEnabled = obj.isEnabled; this.suggestionCount = obj.suggestionCount; this.customDictionaryGuid = obj.customDictionaryGuid; this.canAddWord = obj.canAddWord; this.maxRequestLength = obj.maxRequestLength && obj.maxRequestLength > 0 ? obj.maxRequestLength : 300; this.checkWordSpelling = obj.checkWordSpelling; this.addWordToDictionary = obj.addWordToDictionary; } clone() { const result = new SpellCheckerSettings(); result.copyFrom(this); return result; } }