Open AnnikaGruca-JUNO opened 10 months ago
The description says: "Sets the allowed HTML formats.". This is therefore not an error, as you explicitly only allow URLs with "marks: - link". If you omit the "marks" field properties, email links are highlighted again. However, you could declare it as an error that other link types can still be selected:
fields:
text:
type: writer
nodes: false
marks:
- link
Indeed the result is kind of expected based on how the writer and underlying ProseMirror works.
However, I am wondering if with the new link field we really need the separate email mark and dialog. I think we could rather merge it to just the link mark/dialog (and then add the email link highlighting to the link mark too).
@bastianallgeier opinions?
I agree that we could merge it
I would vote for making the link types customizable though (just like the headings), for instance:
fields:
text:
type: writer
nodes: false
marks:
- link
links:
- email
- tel
I ran into the same issue. Took me quite a while to figure out what was wrong. If I am able to create mailto links, and I see them in the editor when I press save, it is quite confusing to see them go missing when I come back to the page later. My first thought was that I might have forgotten to press save. I think making the link types customizable is a good idea.
I think the much bigger problem here (compared to just a display bug) is that if something else on the page changes and the page is saved again, the content for the writer field is overwritten and the link is dropped as well. Meaning Kirby accidentally alters your content and actually loses your data.
Description
Email links are not highlighted in the writer field if "email" is not listed as a writer mark and an email link is inserted via the link mark (in the link dialog).
To reproduce
If you now add the mark
email
to your writer field, the link is visible:Your setup
Kirby Version
4.0.2