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

Support rich text descriptions #2176

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MxMarx
Copy link
Contributor

@MxMarx MxMarx commented Oct 3, 2023

Alternative to #2161

This uses the trix editor that's currently used to include rich text for podcast episodes to enable rich text in book descriptions, and preserves descriptions grabbed from iTunes, Audible, and epubs in html. A descriptionPlain field is also returned by compatible providers so that the description preview when searching in match tab doesn't show html tags.
Additionally, the current description line in the match tab is truncated with css and shows the full description when hovering.

To preserve compatibility, html is stripped from the descriptions when embedding metadata in audio files.

The hover text for buttons doesn't seem to work if getDefaultHTML is provided as it is currently to remove unused toolbar buttons, so I also hardcoded the button labels.

Also, this is literally the first thing I've done with javascript so I'm probably not the right person to do this but I tried anyway, hopefully this doesn't cause too much annoyance!

resolves #617
resolves #1820

@nichwall
Copy link
Contributor

nichwall commented Feb 7, 2025

Rich text descriptions were added in 2.19.0
https://github.com/advplyr/audiobookshelf/releases/tag/v2.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants