I am building a plugin that works in both Figma and FigJam files. My plugin pastes text to the document, and I’d like to be able to determine which file type I’m in so that I can have the plugin post either a sticky note or a frame.
I can’t find anything in the documentation on how to do this. Does anyone know how to help? Thank you!
Thank you so much! Sorry about the incorrect categorization. Using the editorType attribute has led to a new error:
code.ts:67:30 - error TS2304: Cannot find name ‘figjam’.
I checked my manifest.json file, and I have figjam listed as an editorType:
“editorType”: [
“figma”, “figjam”
]
I went into Figma and did “import plugin from manifest” to try and see if the manifest was somehow not linked to my plugin, but I got a message saying my plugin was already imported. Do you have suggestions for how to debug this?
I can also move this to a new forum post if that is better etiquette - just lmk. Thank you so much!