Your search did not match any results.

Autocorrect

The DevExpress ASP.NET Core Rich Text Editor supports the AutoCorrect feature that allows you to analyze the typed text and modify or substitute it. The control provides the AutoCorrect capabilities that can be enabled by setting the corresponding server-side properties to true.

You can enable the built-in AutoCorrect feature using the following server-side properties:

  • CorrectTwoInitialCapitals - specifies whether the control should correct words that start with two capital letters by changing the second letter to lowercase.
  • DetectUrls - specifies whether the control should detect URI strings and format them as hyperlinks.
  • EnableAutomaticNumbering - specifies whether the control should automatically create numbered or bulleted lists when certain symbols are typed.
  • ReplaceTextAsYouType - specifies whether the control should search a replacement for the typed string in the ReplaceInfoCollection collection.
Backend API
@(Html.DevExpress().RichEdit("DemoRichEdit") .AutoCorrect(a => a .CorrectTwoInitialCapitals(true) .DetectUrls(true) .EnableAutomaticNumbering(true) .ReplaceTextAsYouType(true) .ReplaceInfoCollectionSettings(s => { s.CaseSensitive(true); s.ReplaceInfoCollection(c => { c.Add().What("(c)").With("©"); c.Add().What("wnwd").With("well-nourished, well-developed"); c.Add().What("pctus").With("Please do not hesitate to contact us again in case of any further questions."); }); }) ) .Height(600) .ConfirmOnLosingChanges(c => c.Enabled(false)) .Open("Documents/AutoCorrect.docx") )
using Microsoft.AspNetCore.Mvc; namespace AspNetCoreDemos.RichEdit { [Route("[action]")] public class RichEditController : Controller { public IActionResult Autocorrect() { return View(); } } }