memspace / zefyr

Soft and gentle rich text editing for Flutter applications.
https://zefyr-editor.gitbook.io
2.22k stars 551 forks source link

How to open embedded link in ZefyrView? #257

Open pavel-birdy opened 4 years ago

pavel-birdy commented 4 years ago

I couldn't find a way to launch the url from an embedded link? There is no onTap callback or something similar in ZefyrView(). It's also not in the example app.

CanRau commented 4 years ago

Is that what you're requesting https://github.com/memspace/zefyr/pull/211 ?

pavel-birdy commented 4 years ago

@CanRau Yes. And I saw that PR but I couldn't figure it out how to implement. I wanna be able to open the url (using url launhcer) when I tap on the embedded link.

CanRau commented 4 years ago

Sorry I'm pretty new to Flutter and haven't tried it so can't help any further at the moment

pavel-birdy commented 4 years ago

@CanRau I think it hasn't been implemented. Please give my question thumbs up so it gets the attention.

raj457036 commented 4 years ago

https://github.com/memspace/zefyr/issues/41#issuecomment-600467646

Check my solution at above link

pavel-birdy commented 4 years ago

That's possible in ZefyrEditor() where you can get controller. But there is no controller in ZefyrView().

raj457036 commented 4 years ago

you can set the mode to ZefyrMode.select or view