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

Copy/Paste causes line breaks to double in Chrome

1 Answer 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 23 Jul 2012, 10:21 AM
Similar to this thread which has been fixed, my problem appears in Chrome when the content area style is set in OnClientLoad.

Open notepad and create a document as follows

Line 1
Line 2

Line 4

Set the font programatically within OnClientLoad (we don't want to set it in the .css as we would like the font to be customizable per-user).

function OnClientLoad(editor) {
    var style = editor.get_contentArea().style;
    style.fontFamily = "Tahoma";
}

Paste the text into the editor and the line breaks are doubled.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 25 Jul 2012, 07:23 PM
Hi Stuart,

Thank you for bringing this problem to our attention. I have logged it into our database and we will do our best to have it fixed for one of the upcoming releases.

As a small token of gratitude I have updated your Telerik points.

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Stuart
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or