Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Contenteditable table row,column modifier [duplicate]

Is there anyway to not display the row and column modification (the 2 arrows and cross) when making a table editable. I went through the W3C draft for contenteditable and it doesn't talk anything about the specific cases of different elements.

like image 711
Diff.Thinkr Avatar asked Mar 22 '11 16:03

Diff.Thinkr


People also ask

How do I add or delete a row in contentEditable?

Each cell has a ContentEditable component, or an action to delete a row or add a new row. We start with three methods: one to add a row, which will update the store with the new row, and empty the existing row; the other to delete an existing row.

How does the contentEditable table work?

The table has Item, Price, and Action as the headers, and maps through the state for each row. Each cell has a ContentEditable component, or an action to delete a row or add a new row.

How to edit the content of the table using JavaScript?

To make table cells editable, click on the cell. The cell should become "editable" (textarea appears inside). We can change the content of the table. <! DOCTYPE html> In the above example, we have edited the table data with the help of JavaScript. To make table cells editable, click on the cell.

How to edit rows and columns in table layout panel?

To edit rows and columns 1 Drag a TableLayoutPanel control from the Toolbox onto your form. 2 Click the TableLayoutPanel control's designer actions glyph () and select Edit Rows and Columns to open the Column and Row Styles dialog box. ... 3 To add or remove columns, select Columns from the Member type drop-down list box. More items...


1 Answers

If I understand you correctly, the following will do it in Firefox (note: apparently the document must be loaded before this command can be executed. See comments below):

 document.execCommand("enableInlineTableEditing", null, false);

See also this question: Javascript, Firefox: how to disable the browser specific cell controls?

like image 128
Tim Down Avatar answered Sep 23 '22 23:09

Tim Down