flamewave000 / dragonflagon-fvtt

DragonFlagon FoundryVTT Modules
BSD 3-Clause "New" or "Revised" License
64 stars 62 forks source link

DF Chat Enhancement: Print Chat Archive into HTML Format #175

Closed jbblily closed 3 years ago

jbblily commented 3 years ago

Is your feature request related to a problem? Please describe. I like the Chat archive feature. However, sometimes I want to add some styles on chatlog, in order to make it more comfortable to read. Currently, only pdf can be downloaded, and default foundry's style is not that good to read I think.

Describe the solution you'd like I think it would be great if chatlogs can be printed out as a html format, so that users can edit it as they want.

When printable stream module was available, I extracted html sources and back up as a page. Please consider about this feature. Thank you!

flamewave000 commented 3 years ago

Just to get this straight, you want the raw HTML? I don't know how well that'll work given that it won't have the CSS styling in it, or any image assets for roll cards and such.

Or is the goal to have the raw HTML so you can apply your own styling to it based on the CSS classes assigned to those elements?

jbblily commented 3 years ago

Oh, sorry. I should have said that I used to use printable stream module until it is depricated. So basically, I want the feature just similar as it.

It prints out chatlog as a separate tab, styles all adapted. So I can just copy all the page contents, and edit the html sources if it breaks.

This is my example page using this method. https://crownel.github.io/2021-05-26-fvtt/

Or... I think it is just fine printing out raw html, so I can manually edit the css and stylings.

Thank you for your work.

flamewave000 commented 3 years ago

@jbblily hopefully this is what you were looking for: image

It downloads the message list from the archive as plain HTML withc all of the CSS classes and inline-styles still in place. That way you can bind any CSS you want to it to make it look however you want. image