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

Paste problems

2 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 29 Feb 2012, 04:56 PM
I've got a radEditor on a form.

I was doing a bit of testing and so went to the BBC home page and selected all the content on the page and copied it then pasted it to my editor.

You can see the results on this Jing video.

I'd be gratefule for any comments on how I might prevent either of the results shown in the video from occurring.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 29 Feb 2012, 05:41 PM
Hi,

Which is the browser under which the problems exist?
Do you use DIV content area mode (ContentAreaMode="Div" or the default IFRAME one?
It is expected to resize the DIV content area when pasting some long incessant text, because this is how the browser behaves. The solution is to apply width to the DIV element:

.reContentArea
{
   word-wrap: break-word;
   width: 300px;
}


It is a problem that the Design and HTML buttons go away. Unfortunately, I was unable to reproduce this problem in the online demos of RadEditor. Is it possible to provide a simple demo in a support ticket so that I can investigate the problem? Please, include sample HTML content for paste.

All the best,
Rumen
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.
0
Stuart Hemming
Top achievements
Rank 2
answered on 29 Feb 2012, 06:08 PM
Good catch.

I, mistakenly, thought that, 'cos I'd explicitly set the hight of the content area that that would be it and it would just scroll. That appears not to be the case.

As it happens, setting the content area back to an IFRAME sorts it and as I'd only changed it to DI in an attempt to solve a resizing problem (a failed attempt) I am able to change it back to IFRAME.

Cheers matey.

--
Stuart
Tags
Editor
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or