Remove multiple spaces after period

3 posts, 0 answers
  1. John Bowyer
    John Bowyer avatar
    31 posts
    Member since:
    Jun 2019

    Posted 21 Feb Link to this post

    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. John Bowyer
    John Bowyer avatar
    31 posts
    Member since:
    Jun 2019

    Posted 24 Feb in reply to John Bowyer Link to this post

    It looks like I can accomplish this using a <pre> tag.
  3. Martin
    Admin
    Martin avatar
    149 posts

    Posted 25 Feb Link to this post

    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.
Back to Top