Open ANormalRaft opened 1 year ago
just as a reminder for myself the module was intended to work with the foundryvtt core , and the method TextEditor.enrichHTML
, but it seems that pathfinder2 has added custom stuff unless the system provides me with some special method I can't solve it.
CORE FOUNDRYVTT
content = TextEditor.enrichHTML(`the journal content in html`, {
secrets: true,
documents: true,
async: false,
});
PATHFINDER2E SYSTEM (possible solution)
content = TextEditor.enrichHTMLExtendedForPf2e(`the journal content in html`, {
secrets: true,
documents: true,
async: false,
});
Cannot solve the issue , maybe someone else more skilled than me can do a better job as a workaround you can put a link to the journal and open from that
I was wondering if it would be possible to add functioning buttons (like the button links to character sheets and conditions pictured in the second image) for three PF2 journal functionalities that are explained here:
https://github.com/foundryvtt/pf2e/wiki/Style-Guide
Namely the Rolls, Saving Throws and Templates.
(Image 1) Currently, using rolls in a journal pin results in [object Promise] being displayed instead of either the button or the text.
(Image 2) Trying to display the Saving Throws or Templates results in their plain text being displayed instead of their buttons.