fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
160 stars 14 forks source link

Configurable Options for Link Button #187

Open animaux opened 7 months ago

animaux commented 7 months ago

When using the Link Button it should be configurable which items show up in the dropdown list:

Bildschirmfoto 2024-02-13 um 14 59 24

Or is this dialogue coming from the kirby core and is configurable somewhere else?

fabianmichael commented 6 months ago

Great idea, will have a look.

animaux commented 6 months ago

Another related problem: when choosing »Page (Seite)« the resulting link-URL will be something like:

[linktext](/@/page/caXlouzhZqmZ2C9P)

This is then not transformed to an actual page url in the frontend, resulting in a nonsense link.

animaux commented 6 months ago

And yet another thing related to this dialogue, which might be coming from kirby itself?:

If I select a text and click the link-button I would expect the selected text to be included in the dialogue. Instead the link-text-field is empty and I have to retype the link text or it will be deleted.


Maybe an additional option for the link-button functionality would be a plain version of it that simply encapsulates the selected text with markdown-link-syntax.

selected linktext

—> with click on link-button, it becomes

[selected linktext]()

plus the URL-brackets could include text from the clipboard.

[selected linktext](https://url-from-clipboard.com)

animaux commented 6 months ago

If I select a text and click the link-button I would expect the selected text to be included in the dialogue. Instead the link-text-field is empty and I have to retype the link text or it will be deleted.

Looks like this commit is not included in 3.0.0 alpha2? https://github.com/fabianmichael/kirby-markdown-field/commit/cbbe297557da17af23c427d4f44a65982ebff554

animaux commented 6 months ago

Sorry for spamming this issue … but another thing is: the »open in new window«-option is without function when markdown-links are used and should thus be hidden.