Perspective table cell question

here i did something similar to use js injection to click a row

you can add in the column too to select the right column
(gotta click it twice too for edits)
something like this in the markdown binding

	
	code =  """<img style='display:none' src='/favicon.ico' onload=\"	
		document.querySelector('#"""+value.id+""" [data-row-id=&quot;"""+str(value.number)+"""&quot;][data-column-id=&quot;"""+str(value.column)+"""&quot;]').scrollIntoView();
		const cell = document.querySelector('#"""+value.id+""" [data-row-id=&quot;"""+str(value.number)+"""&quot;][data-column-id=&quot;"""+str(value.column)+"""&quot;] .content');	
		cell.click();
		cell.click();								
	\"></img>""".replace("\n", "").replace("\t", "")
	return code
		

dont let userinput enter these markdown bindings tho, its unsafe

1 Like