Last Updated: 17 Jun 2015 08:19 by ADMIN
Created on: 11 Feb 2015 09:29
Category: UI for ASP.NET AJAX
Type: Bug Report
Inconsistent BR tags appearance when pasting with AllExceptNewLines formatting option under Chrome and Firefox
If a long paragraph is copied into the editor, <br> tags appear in thea content without being added at first place. 

For the time being you can resolve this by adding the following script below the editor declaration:

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

<script type="text/javascript">
    var oldStripFormatting = Telerik.Web.UI.Editor.Utils.stripFormatting;

    Telerik.Web.UI.Editor.Utils.stripFormatting = function (textHtml, clearValue) {
        if (clearValue === "ALL_NO_BRAKES") {
            textHtml = textHtml.replace(/\n/g, "");
            textHtml = textHtml.replace(/<\/p>/g, "<br/>");

        textHtml =, textHtml, clearValue);
        return textHtml;
1 comment
Posted on: 17 Jun 2015 08:18
The issue is not reproducible for the current Telerik UI for ASP.NET AJAX