Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathfinder Second Edition Functionality #62

Open
ANormalRaft opened this issue Jan 30, 2023 · 2 comments
Open

Pathfinder Second Edition Functionality #62

ANormalRaft opened this issue Jan 30, 2023 · 2 comments
Labels
can't fix enhancement New feature or request help wanted Extra attention is needed

Comments

@ANormalRaft
Copy link

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.

Roll pf2 object promise

pf2 saving throw and template

@ANormalRaft ANormalRaft added the enhancement New feature or request label Jan 30, 2023
@p4535992
Copy link
Owner

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,
});

@p4535992
Copy link
Owner

p4535992 commented Feb 9, 2023

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

@p4535992 p4535992 added the help wanted Extra attention is needed label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't fix enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants