benjaminjonard / koillection

Koillection is a self-hosted service allowing users to manage any kind of collections.
https://github.com/koillection/koillection/wiki
MIT License
620 stars 28 forks source link

[FR] Formatted text field #1023

Open HackHerz opened 9 months ago

HackHerz commented 9 months ago

I would like to add a description or notes to my items. Currently this only seems to be possible using the "long text" field. Ideally (at least for me) that description field would be formattable. Something like markdown or even plain html is fine for me, I do not need a rich or even WYSIWYG editor. Is this already possible?

In my opinion it makes no sense to have this description searchable or even have multiple fields with that capability. Therefore I am wondering if it would be clever to add a rich text "Description" directly to items/collections instead of it being a member of "Additional fields" (not sure if my explanation makes sense)? Is this something other people would find usefull as well?

P.S.: I am using koillection to document my sewing projects. Works great!

risalt commented 9 months ago

Hi! (just a user here) In my collection, I do use regular HTML in the Text fields, but it is ignored in the Long Text fields. Have you tried that? I like adding additional pieces of information I need as additional item fields, as it is now, rather than having extra fields in the Item "header", that may or may not be used.

Screenshot from 2024-01-18 20-19-56

HackHerz commented 9 months ago

Thanks for the tip! I didn't know that the regular text field allows for HTML. Although it is quite cumbersome to write a lot of text in it, the large text field would be easier. Are you writing your html directly in the input field or are you copy-pasting from a text editor?

risalt commented 9 months ago

Welcome! I certainly copy paste from a notepad-style plain text editor. It's probably easy to deactivate the sanitizer that prevents the tags from working in the Long Text field. These webs are for private use in local networks, otherwise that would be a major security hole.