vttred / ose

Old-School Essentials – Foundry VTT Edition
https://ose.vtt.red
GNU General Public License v3.0
96 stars 52 forks source link

Rich embeds in Journal Entry pages #528

Open anthonyronda opened 1 month ago

anthonyronda commented 1 month ago

New Feature or Changed Behaviour

Make it so that a Rollable Table, Journal Entry, or Journal Entry Image can be embedded into OSE's Journal Entries similar to the implementation found in D&D 5e.

Why?

As the creator of content for OSE, managing all the different places a piece of information needs to be repeated is a big headache, because a mistake that I thought I fixed will show up again in another place, and changes to the content (errata, etc) will need to be edited in 2, 3, or 4 places. This is most true with Rollable Tables, because Referees want the rollable table to show up in the Journal text as well

Code of Conduct

anthonyronda commented 1 month ago

The code that enables D&D5e's rich embeds is here, and is open licensed for reuse https://github.com/foundryvtt/dnd5e/blob/a010ce7e6768ac1301cd53c821c05e9fcce03dcb/module/enrichers.mjs#L399