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

Disable resize options for specific HTML elements

2 Answers 84 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erick
Top achievements
Rank 2
Erick asked on 01 Apr 2015, 05:29 PM
Hi,

We're using your editor for editing HTML e-mail templates. Almost each container as IMG, TD, TABLE are resizeable in the editor, but we don't want this option for the TABLE and TD tags, se we want to disable this option for specific HTML tags. Is this possible?

Kind regards,
Jelle de Boer

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Apr 2015, 10:53 AM

Hi Jelle,

The resize handles in Firefox and IE are generated by the browser's rich text editing engine and we cannot control that. You can read some details and a discussion on the matter here: http://www.telerik.com/forums/disable-drag-and-drop-of-body-element-in-content-area-iframe.

There is a way to disable them for images by setting attributes to them, but I cannot guarantee it will work in all browsers and cases: http://www.telerik.com/forums/how-to-solve-image-resize-anchor-that-is-visible-in-other-elements.

By popular demand, we have implemented a similar feature for Chrome and this is where you can disable it by adding the following function override at the end of the form that has the editors:

Telerik.Web.UI.RadEditor.prototype._initializeResizableWidget = function () { };

Regards,

Marin Bratanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Erick
Top achievements
Rank 2
answered on 03 Apr 2015, 09:01 AM
Ok thanks, i will try it out.
Tags
Editor
Asked by
Erick
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Erick
Top achievements
Rank 2
Share this question
or