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

RadEditor is getting disabled

7 Answers 150 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 09 Mar 2017, 11:05 PM

Hi, now in firefox 52 the radEditor is getting disabled, this is my code:

        <telerik:RadEditor Style="min-width: 95%" ID="txt" runat="server" Width="95%" Height="210px" ContentAreaMode="Iframe" >
        </telerik:RadEditor>

I realized that when we change the contentareamode to div, it allows my to paste correctly, but in my case when i use "iframe" option, it doesn't allow.

 

 

7 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 09 Mar 2017, 11:08 PM
Sorry, I mean only the paste option is disabled, not the entire radeditor control, I cannot do Ctrl + V, when I try it, nothing happens
0
Christian
Top achievements
Rank 1
answered on 13 Mar 2017, 02:54 PM
Could anyone help me on this please, this is urgent, thanks
0
Rumen
Telerik team
answered on 13 Mar 2017, 03:15 PM

Hello Christian,

I am aware of this issue and it happens in very old versions of RadEditor for ASP.NET AJAX, 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.

Note that we do not support this workaround and if you experience any issues or side effects, you should consider an upgrade to 2017.1.228.

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.
0
Christian
Top achievements
Rank 1
answered on 13 Mar 2017, 05:47 PM

Thank you for your response, I'm asking to my team if we can upgrade our telerk version. By the moment, I enabled the paste from word toolbar as a work around because in that popup I can do Ctrl + V.

Another question for you please, in case my team respond that is not possible to upgrade our telerk controls, is ther a way (maybe programatically)  to do the Ctrl +V option, maybe a javascript code?

 

Thanks

0
Rumen
Telerik team
answered on 14 Mar 2017, 09:24 AM

Hi Christian,

Have you had a chance to try the provided code in my earlier reply? I am able to paste into the editor with Ctrl+V in Firefox 52 by setting the ContentAreaMode to Div. The code also enabled the Paste button with the setState client method.

I am not aware of any other solution for the paste issue which is definitely due to a browser regression.


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.
0
Christian
Top achievements
Rank 1
answered on 14 Mar 2017, 01:47 PM
Hi Rumen, yes since the begining I realized that if I use the content mode "div", then this works, but in our application we have implemented the radeditor using "iframe" and also the paste button is enabled with your code. My team has the 2013 version, I updated my application and I was testing but I got some errors, now we are performig the change to use div, this required some test  to make sure nothing has been broken. In other hand to perform a 6 years upgrade (we have 2011 in place) could required several tests through all our application. Thanks for your support.
0
Rumen
Telerik team
answered on 14 Mar 2017, 02:31 PM

Hi Christian,

You can find information about the differences between div and iframe content area at http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/editor-views-and-modes/contentareamode-property and http://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx

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.
Tags
Editor
Asked by
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or