Paste problems

3 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 29 Feb 2012 Link to this post

    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. Answer
    Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 29 Feb 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 29 Feb 2012 Link to this post

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