We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Enter behave like shift+enter

Hello, 

I would like enter press key in editor to behave like shift + enter(skip one line not 2). Anyway to go about that?

Thanks for your time !


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team February 2, 2023 12:12 PM UTC

Hi thomas,

Your requirement to make the Enter key behave like the shift+Enter key can be achieved by using the enterKey property of the RichTextEditor control, which specifies the tag to be inserted when enter key is pressed.

Code snippet:
  <ejs-richtexteditor ref="rteInstance" enterKey="BR" >
   </ejs-richtexteditor>






Regards,
Vinitha



Loader.
Up arrow icon