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

[Question] How to create links in rich text ? #21

Closed
indrajithk opened this issue Nov 2, 2022 · 2 comments
Closed

[Question] How to create links in rich text ? #21

indrajithk opened this issue Nov 2, 2022 · 2 comments
Labels
question Further information is requested

Comments

@indrajithk
Copy link

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?

@JohnEarnest
Copy link
Owner

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.

@JohnEarnest JohnEarnest added the question Further information is requested label Nov 2, 2022
@indrajithk
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants