a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use data- attribute for passing entityID around

+2 -2
+2 -2
components/Blocks.tsx
··· 45 45 let contents = range.cloneContents(); 46 46 let entityIDs: string[] = []; 47 47 for (let child of contents.children) { 48 - let entityID = child.getAttribute("entityID"); 48 + let entityID = child.getAttribute("data-entityID"); 49 49 if (entityID) entityIDs.push(entityID); 50 50 } 51 51 useUIState.getState().setSelectedBlocks(entityIDs); ··· 251 251 ]); 252 252 return ( 253 253 <div 254 - entityID={props.entityID} 254 + data-entityID={props.entityID} 255 255 onMouseDown={(e) => { 256 256 if (e.shiftKey) { 257 257 e.preventDefault();