uppercase, lowercase and first letter of a sentence DocumentEditor

DocumentEditor: 
I need to implement the uppercase, lowercase and first letter of a sentence functions that exist in MSWord in Document Editor.
What is the best way to approach this?

1 Reply 1 reply marked as answer

KB Kurthis Banu Abdul Majeeth Syncfusion Team April 27, 2021 06:57 AM UTC

Hi Esther, 

Regarding: Change the words/paragraphs in Uppercase: 

Document Editor having support for change the word/ paragraphs to Uppercase. We have an UI option to apply upper case operation in Document Editor. Kindly check the below screenshots for your reference. 

 


Regarding: Change the words/paragraphs to Lowercase:   

we have already logged a feature request. will implement this feature in our any of upcoming release. Will update the status of the feedback link once it is taken for implementation. Will update you once implemented. You can track the status from below link.   


Please up-vote this feature request to make this feature request as our priority.      


For now, you can achieve your requirement like below code snippet. 

var text = container.docuemntEditor.selection.text; 
 
//LowerCase: 
 
container.documentEditor.editor.insertText(text. toLowerCase()); 
 


Note: Currently, Document Editor doesn’t have support for change the first letter of a sentence (Sentence Case). 

Please let us know if you have any questions. 

Regards,  
Kurthis Banu A.  


Marked as answer
Loader.
Up arrow icon