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-entityid instead of data-entityID

+4 -4
+3 -3
components/Blocks/TextBlock/useHandlePaste.ts
··· 328 328 } 329 329 } 330 330 331 - if (child.tagName === "DIV" && child.getAttribute("data-entityID")) { 332 - let oldEntityID = child.getAttribute("data-entityID") as string; 331 + if (child.tagName === "DIV" && child.getAttribute("data-entityid")) { 332 + let oldEntityID = child.getAttribute("data-entityid") as string; 333 333 let factsData = child.getAttribute("data-facts"); 334 334 if (factsData) { 335 335 let facts = JSON.parse(atob(factsData)) as Fact<any>[]; ··· 514 514 "A", 515 515 "SPAN", 516 516 ].includes(elementNode.tagName) || 517 - elementNode.getAttribute("data-entityID") 517 + elementNode.getAttribute("data-entityid") 518 518 ) { 519 519 htmlBlocks.push(elementNode); 520 520 } else {
+1 -1
src/utils/getBlocksAsHTML.tsx
··· 119 119 <div 120 120 data-type="card" 121 121 data-facts={btoa(JSON.stringify(facts))} 122 - data-entityID={card.data.value} 122 + data-entityid={card.data.value} 123 123 />, 124 124 ); 125 125 }