JohnEarnest/Decker

[Question] How to create links in rich text ?

indrajithk opened this issue · 2 comments

The documentation says

"Rich text hyperlinks are only “clickable” when their field is locked. With scripting, a link can do anything a button can do when it’s clicked, but by default if you use the name of a card as the link value, clicking the link will navigate to that card. If you use a URL, clicking the link will have Decker prompt you to open the URL in a web browser."

I tried different means to create a hyperlink, none of them succeeded. Probably I misunderstood the docs. Can you clarify how to go about creating the things mentioned in the docs (doc:"Rich Text fields can contain multiple fonts, inline images, and clickable hyperlinks.").

Or is it that these can only created by scripting?

If you create a rich text field, switch to the "Interact" tool, and then click in the field, you will be given a "Text" menu. If you make a selection, you can use items in this menu to change the font and/or insert a link in that selection. If you want to link to a URL, remember to include the http:// or https:// prefix when creating the link.

Also, if you're using web-decker, I just identified and fixed a regression in the link dialogue, so be sure to clear your browser cache.

Excellent. Never expected the menu had an added entry - "Text". It works. But I feel the usability has room to improve. That is another issue though. The current sequence is -

  1. Tool - Widgets,
  2. Widgets - New Field,
  3. Tool - Interact,
  4. Type and select text,
  5. Text - Link, Type the link
  6. Tool - Interact,
  7. Select the field,
  8. Widget - Locked
    This is lengthy. Some improvement is welcome.