使用Mindmup可编辑表格使某些列不可编辑
问题描述:
答
目前不支持此功能。
但速战速决是以下(基于this issue):
更改插件从该行113:
element.find('td').prop('tabindex', 1);
要这样:
element.find('td[data-editable!="false"]').prop('tabindex', 1);
而且在你的表格,使适当的列不能编辑像这样:
<tr data-id=123">
<td data-colname="first_name"
>Chuck</td>
<td data-colname="last_name"
>Norris</td>
<td data-editable="false"> <!-- data-editable added here -->
<button type="button" class="btn">
<i class="ti-close" aria-hidden="true"></i> Remove
</button>
</td>
</tr>
注意:td
标签的怪异格式是故意的:这样,可编辑插件在编辑单元格时不插入空格。