- Home
- Forum
- React - EJ 2
- browser autocorrect
browser autocorrect
Hi,
I'm working with the document editor for few days, I was wondering why browser autocorrect like Chrome is not enabled in the document editor, is there a way to enable it?
My server-side is only PHP for now so I would like to avoid the SpellChecker.
SIGN IN To post a reply.
4 Replies
HC
Harini Chellappa
Syncfusion Team
February 26, 2020 07:01 AM UTC
Hi François,
Autocorrect option in HTML is applicable for editable elements like text area, input with text type. Document editor’s main element is of canvas and text which you type are rendered in canvas. Hence it is not possible to make use of the auto-correct option.
For spellcheck, we have written our own spellchecker in the server-side of .NET framework with the help of hunspell dictionaries.
Please let us know if you have any concerns.
Regards,
Harini C
FR
François
February 26, 2020 09:43 AM UTC
Hi,
Thank you for this anwer,
Can I find any json structure for the JSON response of this .NET server-side so I could build it in PHP with hunspell dictionnaries?
I know that the request is a POST route /SpellCheck, but I can't find online demo with the SpellCheck functionnality so I can't build a JSON response with the correct structure.
I figured out that this structure is based on the SpellChecker class, can I get documentation about this class?
I know that the request is a POST route /SpellCheck, but I can't find online demo with the SpellCheck functionnality so I can't build a JSON response with the correct structure.
I figured out that this structure is based on the SpellChecker class, can I get documentation about this class?
regards,
François
HC
Harini Chellappa
Syncfusion Team
February 26, 2020 12:13 PM UTC
Hi François,
Please refer the below documentation on API of SpellChecker in document editor.
For spell check services, please refer the following GitHub link platform-wise.
Steps to configure spell checker
Kindly check the below link.
https://github.com/SyncfusionExamples/EJ2-DocumentEditor-WebServices/tree/master/ASP.NET%20Core#spell-check
Regarding WEBAPI of spell checker in service
Regarding WEBAPI of spell checker in service
|
API |
Code Link |
Behavior |
|
SpellCheck |
When typing in document editor, if we press space, then this API gets called to spellcheck the current typed word. | |
|
SpellCheckByPage |
When the document gets loaded in document editor, then this API gets called to spellcheck the whole document.
Note: This API will get call when enableOptimizedSpellCheck of spellchecker sets to true
|
Regards,
Harini C
FR
François
February 28, 2020 03:14 PM UTC
Thanks to the JSON returned from the catch section, I can build my own server api spellcheck with it
thanks for your answers Harini.
thanks for your answers Harini.
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
FR François
- Feb 25, 2020 04:31 PM UTC
- Feb 28, 2020 03:14 PM UTC