Lyynix
LOELeague of Extraordinary FoundryVTT Developers
•Created by Lyynix on 5/27/2024 in #package-development
How to add buttons to the ProseMirror Menu?
The title is only part of the question, I have already added a button and dropdown to ProseMirror, that inserts text at the cursor. That works fine and all, however I'd like to be able to wrap the selected paragraph in a div that has a custom css class. (similar to the Fonts wrapping the elected text in a span with custom styling)
I have inspected the foundry code, how they did it. However they use functions that aren't available from a module scope (at least not that I found them)
I also couldn't find any modules that add similar functionality to the PM Editor... is that just not possible for a module?
8 replies