How to copy/paste text from clipboard in a templater file?

Hi friends,

i’m going through Obsidian tutorial and am fiddling w/ Templater. In one of my template, I have parsed thru the MD file and grepped the text that I want, and copied it to navigator.clipboard.

My question is, how can I paste the value from the clipboard into the template? My code looks like this


// I want to paste the value inside this block.
<%*  navigator.clipboard.readText()  %>

What’s the right way to print/assert values ?

1 Like

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