Completed
Last Updated: 20 Oct 2014 15:46 by ADMIN
ADMIN
Ianko
Created on: 01 Oct 2014 08:04
Category: Editor
Type: Bug Report
0
White spaces in front of inline elements are stripped on creating new paragraph
Adding some initial, plain text (no HTML <p> tag wraps the text) and e.g., bolding the last word, pressing enter after it removes a white space.

The easiest workaround is changing the NewLineMode property to Br.
Example:

   <telerik:RadEditor runat="server" ID="RadEditor1" NewLineMode="Br">
   </telerik:RadEditor>


More complex solution that will enable you continue using the paragraphs as new lines is by incorporating the following JavaScript code:

   <telerik:RadEditor runat="server" ID="RadEditor1">
   </telerik:RadEditor>

   <script type="text/javascript">
       Telerik.Web.UI.Editor.Utils.trimWhitespaceTextNodes = function () {

       };
   </script>

Note that the script should be put right after the RadEditor declaration to ensure that the RadEditor scripts are loaded.
1 comment
ADMIN
Misho
Posted on: 20 Oct 2014 15:46
The fix will be available with Q3 2014.