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

[Solved] Preventing the pasting of HTML

2 Answers 40 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 13 May 2011, 11:23 AM
Hi

We're using the Telerik editor to allow our users to enter some text and perform simple formatting on it from the toolbar - Bold, Italics, Bullet Points.  These are all the options that we want to allow.

However, currently users can select sections of e.g. their own website and paste them into the editor, which brings those selected images, styling etc.  and we'd like to prevent this.

I found references to the OnClientPasteHtml event for the ASP.NET AJAX editor control, but realise that this is not available for the ASP.NET MVC version.

Could you advise on how to prevent users pasting HTML into the editor control for ASP.NET MVC?


Thanks


2 Answers, 1 is accepted

Sort by
0
Trevor
Top achievements
Rank 1
answered on 06 Mar 2012, 10:17 PM
I am also looking for a solution to this problem, which was posted almost 10 months ago and received no reply from the Telerik team.  Has there been any update on this issue?
0
Alex Gyoshev
Telerik team
answered on 07 Mar 2012, 08:10 AM
Hello Trevor,

You can use the editor onPaste event to clean up the pasted markup.

On a side-note, we do not guarantee replies by Telerik staff in forum threads.

All the best,
Alex Gyoshev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Editor
Asked by
Alex
Top achievements
Rank 1
Answers by
Trevor
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or