Retain FontSize selection after clicking enter in the Editor

1 Answer 40 Views
Editor
Matthew
Top achievements
Rank 1
Matthew asked on 05 Mar 2024, 08:51 PM

Using the FontSize editor tool in the Editor I need the user to be able to select a value for the FontSize and retain that value after the user hits the enter key to go to a new line in the ediitor. Right now if you select anFontSize value it retains it till the user clicks enter then the FontSize dropdown value resets to unselected.

Thanks,

   Matt Heuerman

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 07 Mar 2024, 09:14 AM

Hello, Matthew,

I have just answered your support ticket on the matter, for convenience I am copying my answer here as well:

The observed behavior is coming from the ProseMirror library the KendoReact Editor is built upon. Further details, a related discussion, and a potential solution through a custom plugin are available in the following GitHub thread:

For convenience, I prepared a sample where the suggested solution is applied, you can test it in the link below (you might need to download and run the project locally if there are Procemirror related errors in Stackblitz):

I hope the provided information will be helpful for you.

 

Regards,
Vessy
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Editor
Asked by
Matthew
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or