RADEditor Paste Not Working in Firefox

11 posts, 0 answers
  1. Dave
    Dave avatar
    1 posts
    Member since:
    Mar 2017

    Posted 10 Mar 2017 Link to this post

    Paste is greyed out and has stopped working in RADEditor since our users have upgraded to Firefox v52. Paste works fine in Firefox v37 and Chrome. I have created a demo page below to demonstrate the issue, can anyone help fix it?

    http://fdsrv.fire-defence.com/editordemo.aspx

  2. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 13 Mar 2017 Link to this post

    Hello Dave,

    You are using a very old version from 2011 which does not support the latest browser versions. It is always better to upgrade to the latest one to ensure the best interoperability with the latest browsers: Firefox, Chrome, Edge and IE11. I tested the latest version and it works fine under Firefox 52 - http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

    If you don't have currently time to upgrade, you can try to programmatically enable the button as shown below:

    <script>
        function OnClientSelectionChange(editor) {
            if ($telerik.isFirefox) {
                var toolPaste = editor.get_toolByName("Paste");
                toolPaste.setState(0);
            }
        }
    </script>
    <telerik:RadEditor ID="RadEditor1" runat="server"  OnClientSelectionChange="OnClientSelectionChange" ContentAreaMode="Div"></telerik:RadEditor>

    You'll also probably need to switch to Div content area mode to enable the Ctrl+V option which does not work on my end in IFRAME mode with version 2011.3.1305.40.

     

    Best regards,
    Rumen
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. david
    david avatar
    2 posts
    Member since:
    Jun 2008

    Posted 13 Mar 2017 in reply to Rumen Link to this post

    Thanks, that has fixed it!
  4. Shivlila
    Shivlila avatar
    3 posts
    Member since:
    Jul 2016

    Posted 23 Mar 2017 in reply to Rumen Link to this post

    Hello Rumen,

    We have implemented the mentioned changes and the issue has been fixed. But we observed that after copy pasting the text the cursor should appear after last text of the pasted text, but currently it is appearing at start of the text. 

    E.g. If we copy paste the text as 'testing' then the cursor appears just before 't' it should appear after 'g'.

     

    We are using Telerik.Web.UI.dll of 2013.3.114.35.

     

    Thanks,

    Shivlila

  5. Shivlila
    Shivlila avatar
    3 posts
    Member since:
    Jul 2016

    Posted 27 Mar 2017 in reply to Rumen Link to this post

    Hi Rumen,

    Could you please check our above comment and get back to us.

     

    Thanks,

    Shivlila

  6. chairman-mawh
    chairman-mawh avatar
    12 posts
    Member since:
    Jul 2017

    Posted 26 Jul 2017 Link to this post

    Hi Rumen

     

    Quick question about this - was the recommendation that setting COntentAreaMode="Div" would sort the firefox pasting problem, or will pasting simply not work at all with an old Telerik and a new Firefox (and the code you gave is just to hack the button to be enabled, but not enable paste functionality)

     

    Thanks!

  7. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 26 Jul 2017 Link to this post

    Hi,

    Just set the ContentAreaMode property to "Div" and you and your end-users will be able to paste in the older versions of RadEditor in Firefox latest with Ctrl+V.

    The browser regression breaks only to the iframe content area mode of the old RadEditor versions. The problem does not exist in the recent versions of RadEditor.

    Best regards,
    Rumen
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  8. Baktha
    Baktha avatar
    5 posts
    Member since:
    Aug 2015

    Posted 18 Sep 2018 Link to this post

    Hi,

    Am able to enter comments using Rich Text editor for my project [at Design and HTML modes] using Firefox version prior to 62.0 but unable to enter comments  in Version - 62.0 only [Especially at design mode]. Attaching screenshots for reference.

    Please help me on this

  9. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 19 Sep 2018 Link to this post

    Hi Baktha,

    Can you please call the editor.onParentNodeChanged() client-side method as explained in The RadEditor Control is Moved in the DOM article when showing/loading RadEditor on the page?

    If the problem is reproducible in RadWindow check this article too: RadEditor Does Not Work in RadWindow.

    Best regards,
    Rumen
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  10. Peter
    Peter avatar
    9 posts
    Member since:
    Jun 2015

    Posted 14 Oct 2018 Link to this post

    Hi all

    Due to experiences with my own application, I followed the tip to check if toolbar buttons are available in the html view of the demos.

    I did the folowing:

    1) open https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx in firefox 62.0.3 (64-Bit)

    2) click html view in demo

    3) all Toolbar buttons are disabled, why? (e.g. find and replace is available in chrome, IE, Edge)

    4) Same behaviour in content area mode sample https://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx

     

    What has to be done enable functions in html view (e.g. find and replace)

    Please add a working example to your demos.

     

    Thank you and best regards,

    Peter

     

     

     

  11. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 15 Oct 2018 Link to this post

    Hi Peter,

    The RadEditor toolbar is designed for operation only in Design mode, where the content area is an editable DIV or IFRAME element (depending on the ContentAreaMode property setting). 

    The toolbar tools and their respective commands do not support HTML mode (which is a textarea element) and for this reasons the toolbar items are disabled in HTML mode. This is not a regression, bug or limitation, this is from the first version of RadEditor. So far we haven't received many request for toolbar items for HTML mode and for this reason we haven't implemented such functionality and only allowed the Find and Replace and the Print features to work in HTML mode.

    The Find and Replace feature is disabled in HTML mode in Firefox because the functionality to find text in a textarea is not fully supported by the browser.

    Best regards,
    Rumen
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top