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

[Solved] stopping image resizing in editor

3 Answers 118 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mac
Top achievements
Rank 1
Mac asked on 15 Jan 2010, 10:55 PM
quite simply how would one do this?
specifically we are using the editor to allow people to add smileys to their conversations, but i have noticed that they can be resized which makes everything look really bad if someone were to do this. so how does one stop allowing resizing of images in the red editor? thanks

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Jan 2010, 03:24 PM
Hi Mac,

Please, see the following KB article which demonstrates the requested functionality: Disabling image resize in RadEditor Classic and Prometheus.

This KB article could be helpful as well: Resizing images proportional in Internet Explorer.

Best 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
Mac
Top achievements
Rank 1
answered on 18 Jan 2010, 07:43 PM
thanks for that!
Similarly how can i stop allowing font size and colour changing?
we dont have options for this in the editor, but it is possible to copy and paste across text of a different colour or size and then save it into the dbase which of course is the displayed when read...

0
Rumen
Telerik team
answered on 19 Jan 2010, 11:34 AM
Hi Mac,

You can implement a custom filter that will strip the color and style="color: and style="font-size: attributes from the RadEditor's content. You can see how to implement a content filter in this demo: Custom Content Filters.
Another approach is to strip these attributes on the server. The content returned by the RadEditor1.Content property is a string and you can change it using the String.Replace server method.

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