This is a migrated thread and some comments may be shown as answers.

Remove multiple spaces after period

2 Answers 163 Views
Editor
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 21 Feb 2020, 05:36 PM

We have a requirement for there to be two spaces after a period.   If the user enters two spaces after the period, the editor seems to not respect those spaces and collapse the white space.   

Is there a way to have the editor respect spacing through entering text in a wysiwyg format?

 

 

2 Answers, 1 is accepted

Sort by
0
n/a
Top achievements
Rank 1
answered on 24 Feb 2020, 02:02 PM
It looks like I can accomplish this using a <pre> tag.
0
Martin
Telerik team
answered on 25 Feb 2020, 11:38 AM

Hi John,

I am afraid that I am not sure what is the exact use case. Are you modifying the value of the Editor, or the spaces are typed in the UI because there are some differences.

- if the value of the Editor is changed, then the most straight forward approach to rendering more that one space is to use no breaking space -&nbsp before the spaces as the Editor works with any valid HTML codeHere is an example:

https://stackblitz.com/edit/angular-lrltxc?file=app/app.component.ts

- I cannot reproduce the issue if the spaces are typed in the UI

Please could you provide some more details about the scenario and modify the above StackBlitz so that the issue is reproduced. This will give us more insights about the case and we will be able to provide a more suitable solution. Thank you in advance.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
n/a
Top achievements
Rank 1
Answers by
n/a
Top achievements
Rank 1
Martin
Telerik team
Share this question
or