How can I make tables uneditable in Edit View?

What I’m trying to do

I am modifying the Dataview Cards Snippet to work with Markdown Tables. I don’t want the cards to be modifiable in Edit view so I am trying to see if there is a way to make the Table/Cards non-editable by using CSS.

Things I have tried

I tried looking at the CSS using DevTools but I am not able to find anything that controls the edibility of the table.

I tested the CSS code below and it works partially. It doesn’t hide row/column add buttons. You can move to tables using cursor keys. You need much more complex code to deal with cursor movements into tables.

table {
  pointer-events: none;
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.