Hey there, I saw you were looking for a way to manually initialize the embed HTML – I'm doing something kinda different so I'm not sure this is applicable to your specific situation but it's worth a try! This works for me:
1) find the element you want to embed (blockquote with class tiktok-embed);
2) pass it to tiktokEmbed.lib.render() INSIDE AN ARRAY (looking at the render function in the compiled embed script it was hard to tell what was going on but it looks like it scans the entire document for tiktok embeds and goes through them one by one, so I tried just passing an array with the one element I wanted to embed, and it worked!)
Hey there, I saw you were looking for a way to manually initialize the embed HTML – I'm doing something kinda different so I'm not sure this is applicable to your specific situation but it's worth a try! This works for me:
1) find the element you want to embed (blockquote with class
tiktok-embed
); 2) pass it totiktokEmbed.lib.render()
INSIDE AN ARRAY (looking at the render function in the compiled embed script it was hard to tell what was going on but it looks like it scans the entire document for tiktok embeds and goes through them one by one, so I tried just passing an array with the one element I wanted to embed, and it worked!)