-
Notifications
You must be signed in to change notification settings - Fork 236
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
Looking for updated demo on creating hyperlink #546
Comments
Yes, the code has probably changed since then. Do you simply want the hyperlink to appear as a hyperlink? Or do you want clicking it to also open a web browser to that specific link? The former is easier as you can just extend |
It would need to be clickable., otherwise yes it would be a simple thing to do with css. |
Read through this wiki page if you haven't already, and let me know what problems you encounter. Despite custom object support being implemented, I'm not sure who's actively using that support, nor what issues they have run into. Your situation would provide a good case to improve that process. |
Also, the RichText demo uses custom objects to display images in the text. I'd look at that to get an initial idea for how to implement your custom area. |
Is there javadoc available? I'm looking at the RichTextFX demo, but the GenericStyledArea in there is created with more code than I'm comfortable blindly copy+pasting. I'm also thinking it might be simpler to do a workaround, where a keyboard shortcut takes me to the link the cursor is on. That code is pretty clear in the demos. |
Did you figure it out?
…On Jul 24, 2017 10:01 AM, "stevedefazio" ***@***.***> wrote:
Closed #546 <#546>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#546 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIBfbbvHDkuJ5uS1pvndI1Eout7gBFKZks5sRPgjgaJpZM4OfuCp>
.
|
I didn't figure out the hyperlink. Instead, when I hit a key combo it
treats the "word" the cursor is on as a url, and opens it. It's a
workaround, but ultimately gets me to the same place.
…On Jul 27, 2017 11:42 PM, "JordanMartinez" ***@***.***> wrote:
Did you figure it out?
On Jul 24, 2017 10:01 AM, "stevedefazio" ***@***.***> wrote:
> Closed #546 <#546>.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#546 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AIBfbbvHDkuJ5uS1pvndI1Eout7gBFKZks5sRPgjgaJpZM4OfuCp>
> .
>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#546 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ac69ceKpdDg5TMAnbw4nKJdHoKotvpWjks5sSViPgaJpZM4OfuCp>
.
|
Hmmm... I think we should provide a demo that does this since the |
See #550. |
I tried to create a hyperlink via the demo code in #283 , however when I copied the code I got a Cannot Infer Type Arguments on the StyledTextArea. I'm wondering if the way to do this has changed in the past year.
I'm trying to do much the same thing. When the user types something that looks like a link, I want it to be ctrl-clickable.
PS Big fan of this library. I don't know how a rich text editor isn't included in JavaFX out of the box.
The text was updated successfully, but these errors were encountered: