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

[Solved] OnClientPasteHtml event is not firing in Safari

3 Answers 119 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chinnayya Yaragattimath
Top achievements
Rank 1
Chinnayya Yaragattimath asked on 13 Jan 2010, 12:08 PM
Hi,

I am using OnClientPasteHtml event of RadEditor, it is fired in IE & Mozilla workinng fine. But the same event is not working on Safari.
Can someone please tell me any work around for this?? My code is like below.

 

<telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="~/Tools/ToolsFile.xml" SkinId="Vista" OnClientLoad="OnClientLoad" OnClientPasteHtml="PasteHeadings" Width="700px" Height="100%">
</telerik:RadEditor>

 

 

 

 


javascript function:
 

function 

 

PasteHeadings(editor,args)

 

 

{

 

    if(document.getElementById("pnlOutline").style.display == "block")

 

    {

 

        var strContent= args.value;  

 

 

        if((strContent.search(/<H1/i) != -1))

         {
            fnOutline(

false);

 

         }

    }

 

}

 

 


Regards
Chinnayya

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Jan 2010, 12:32 PM
Hello Chinnayya,

The OnClientPasteHtml event works as expected in Safari / Chrome and you can verify that by testing the Insert Table, Image Manager and Document managers in  this demo:

http://demos.telerik.com/aspnet-ajax/editor/examples/onclientpastehtml/defaultcs.aspx

Please, note that Safari and Chrome do not offer onpaste event and for that reason the OnClientPasteHtml event of RadEditor is not fired in these browsers when the paste command (Ctrl+V) is executed.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kevin Watkins
Top achievements
Rank 1
answered on 17 Feb 2010, 05:38 PM
Can you add the fact that OnClientPasteHtml doesn't fire in WebKit browsers to your documentation and demo notes please? Would've saved me a lot of time just now if I'd known this up front...

Kev
0
Rumen
Telerik team
answered on 18 Feb 2010, 04:39 PM
Hi Kev,

Thank you for your good suggestion.

I added a note about this browser limitation to the documentation and once it is uploaded the change will become visible in the online documentation.

Sincerely,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Chinnayya Yaragattimath
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Kevin Watkins
Top achievements
Rank 1
Share this question
or