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

[Solved] Disable Table Editing Handles

3 Answers 269 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 03 Apr 2008, 08:07 PM
Is there any way to disable the floating handles that surround an HTML table in the editor.  My application pre-fills the content of the editor with a table whose cells contain content.  I don't want the users to be able to resize the table, nor do I want them to see the handles floating all over the table when they click on the cells.  Any advice would be appreciated.

Thanks!

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Apr 2008, 10:04 AM
Hi Bill,

You can achieve the desired behavior by setting the following table attributes:
  • Under IE: to prevent the table from being selected and resized please, use the following attribute unselectable="on"
     
  • Under Firefox:  You can disable the selection in Firefox by placing the following css properties:
     - moz-user-focus: ignore;
     - moz-user-select: none;

I hope this helps.

Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bill
Top achievements
Rank 1
answered on 04 Apr 2008, 04:15 PM
Thank you George.  That sort of worked.  In IE the handles have gone away, however in Firefox they still remain. 

To be clear for the Firefox styles - I set the style on the table.
0
George
Telerik team
answered on 07 Apr 2008, 01:49 PM
Hi Bill,

Indeed, when the table is double clicked the user can still resize it - unfortunately, this is a browser behavior and we cannot do much about it. In order to verify this, I prepared a simple test using an Editable IFRAME (in design mode the editor's content is an Editable IFRAME). Please, find attached a video showing my test along with my test Html page.


Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Bill
Top achievements
Rank 1
Answers by
George
Telerik team
Bill
Top achievements
Rank 1
Share this question
or