-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
how to extract rendered html text ? #318
Comments
What did you mean by extracted? The input HTML was passed into the widget. If you need it somewhere else, just forward it yourself I think? |
@daohoangson thanks for the quick reply, whats I mean is extract the rendered HTML as text from it |
Looks like you want to copy the text of the rendered paragraph? That's currently not possible because See #102 and flutter/flutter#38474 |
ok got it this was i used its kinda work but not whats i want
|
Yep, doing that will make the text selectable but the And you said that was not it, so... what do you want exactly? Do you have some app in mind that does something special? Link or screenshot would be useful here. |
I'm building a news app the pull the data from WordPress rest API I want to be to able to give user option to select the text of the full article and use it , the approach I used only allow to select paragraph at a time the Textspan I suppose her my app how its looks like image |
That is correct. Your change will allow copying text within a paragraph but it won't work for the full article. Actually it depends on the HTML, if there is no special block, it may be rendered as one For complicated HTML, that won't work of course... |
the HTML be like this maybe I can remove all the p tags on the middle and leave only the opening and closing one the paragraphs will be separated by a new line breaks |
I think that might work 👍 |
@elmissouri16
|
@emvaized thank you i will try it definitely |
@daohoangson Could you think of any fix for this? |
Ideally you should be able to listen to on select event and dismiss unrelated selections. After taking a look into the |
Thanks, this might work! Maybe I can somehow wrap all the text in one single |
Did you ever figure out how to fix this behavior? I want my paragraphs to be merged as one and not show multiple text selection menus as I'm building an app with EPUB reader functionality for mobile. |
Regarding the multiple I'm closing this issue to consolidate all thing selectable into #102. |
first thanks to the amazing work, I have a question is there any way to get rendered HTML text ? , I want to copy it to use it else where
The text was updated successfully, but these errors were encountered: