Mael
Mael
PD🧩 Plasmo Developers
Created by Mael on 6/15/2023 in #👾extension
Injecting CSUI inside iframes?
No description
3 replies
PD🧩 Plasmo Developers
Created by Mael on 5/9/2023 in #👟framework
Using @plasmohq/messaging separately?
I have a web app that has a signup/signin process. I want to "sync" the auth state between the extension and the page. I was thinking maybe I can send a relay message from my web app using this package with a content script that's only injected on that webpage and handle it from there. The web app does NOT use plasmo but it's a plain react app, but I was wondering if I can just install the messaging package and use it there. Is this possible? Any other solution you guys have found? Thanks!
14 replies
PD🧩 Plasmo Developers
Created by Mael on 5/2/2023 in #👾extension
Add item to context menu
Hey! Do we have a API or something to manage context menus? I want to add an item to when the user right clicks some text selection and I was wondering if Plasmo offers anything like that. Couldn't find anything on the docs. Thanks!
1 replies
PD🧩 Plasmo Developers
Created by Mael on 4/27/2023 in #👾extension
Text insertion?
Hey everyone. My extension adds a little icon at the bottom of inputs or contenteditable divs (like many extensions do). When clicking that icon, a popover with a textarea appears and you can write on it. After clicking a little button next to the textarea, a API call is made and I want to set the result of that API call to the input (a.k.a. the anchor) in the position the caret was before the user opened the popover. Has anyone accomplished that already? What's the best way? I've implemented a solution but it's not really reliable. I'm happy to share my code. Thanks!
2 replies
PD🧩 Plasmo Developers
Created by Mael on 4/27/2023 in #👾extension
How to get reference to overlay anchor
Hello! I want to position an icon on the bottom-right of every contexteditable=true or textarea element that is currently focused. To do that, I was thinking on getting the element via getOverlayAnchor with a querySelector. However, to accomplish it I need to get a reference to said element in order to get its bounding rect and calculate the position accordingly. I tried the custom render function but I always get the "html" element inside the "anchor" prop. Is there a way to accomplish this? Is my approach correct or does anyone already know how to do this? Thank you!
34 replies
PD🧩 Plasmo Developers
Created by Mael on 4/27/2023 in #👟framework
Type error on CSUI
12 replies