Hi! Please see attached file for the issue. I am using Telerik version 2010. This issue occur in IE but in firefox it work well. Thanks.
3 Answers, 1 is accepted
0
Accepted
Hi Bong,
This is not a bug but a browser behavior. The content area of RadEditor is editable IFRAME element which depends on the browser's Rich Text Editing engine. The observed behavior and the images handlers are entirely controlled by the browser and it is not possible to hide them with javascript or css. However, if you disable the image resizing by setting the unselectable="on" attribute to all IMG tags, then the browser will not display the image handlers. Here is the solution:
<script type="text/javascript">
function OnClientSelectionChange(editor)
{
var images = editor.get_document().getElementsByTagName("IMG");
for (var i = 0; i < images.length; i++)
{
var image = images[i];
image.setAttribute("unselectable", "on");
}
}
</script>
<telerik:RadEditor ID="RadEditor1"
OnClientSelectionChange="OnClientSelectionChange"
runat="server" Width="100%" Height="345px">
<Content>
<img src="http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif"/>
<a href="www.telerik.com">telerik</a>
<img src="http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif"/>
</Content>
</telerik:RadEditor>
Best regards,
Rumen
the Telerik team
This is not a bug but a browser behavior. The content area of RadEditor is editable IFRAME element which depends on the browser's Rich Text Editing engine. The observed behavior and the images handlers are entirely controlled by the browser and it is not possible to hide them with javascript or css. However, if you disable the image resizing by setting the unselectable="on" attribute to all IMG tags, then the browser will not display the image handlers. Here is the solution:
<script type="text/javascript">
function OnClientSelectionChange(editor)
{
var images = editor.get_document().getElementsByTagName("IMG");
for (var i = 0; i < images.length; i++)
{
var image = images[i];
image.setAttribute("unselectable", "on");
}
}
</script>
<telerik:RadEditor ID="RadEditor1"
OnClientSelectionChange="OnClientSelectionChange"
runat="server" Width="100%" Height="345px">
<Content>
<img src="http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif"/>
<a href="www.telerik.com">telerik</a>
<img src="http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif"/>
</Content>
</telerik:RadEditor>
Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
0
Hi Kien,
The image and table resizing feature for Chrome is introduced in the 2013 Q3 BETA (2013.3.926) release of the RadControls suite. You can check this by following the corresponding release notes for the mentioned version.
If you are using a RadEditor control with older version, I would suggest upgrading with the latest available version.
Regards,
Ianko
Telerik
The image and table resizing feature for Chrome is introduced in the 2013 Q3 BETA (2013.3.926) release of the RadControls suite. You can check this by following the corresponding release notes for the mentioned version.
If you are using a RadEditor control with older version, I would suggest upgrading with the latest available version.
Regards,
Ianko
Telerik
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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.