Webview selectable text

Hi everyone … another question.
In a Webview, the text can be copied / selected by default. Is any way to disable it?
In a long click the text is selectable, if the user wants “all” can by selected and copied.
I want to someway protect the text from be copied.

Thanks.

You can try using custom web view extension, and disabling longClickable property , so user can’t select the any text from the web viewer:

3 Likes

Hi. Thanks for reply.
I downloaded the extension. Seems a great job…

But how to use it?
I have a vertical scroll, inside it, have a web view. I tried the blocks show bellow, but it gives a error. I deleted the “old” webview and nothing is inside the vertical scroll (in the design screen). I saw an example similar to the one i put in image, somewhere.

Many thanks

Erro

Try using set web view block.
And try to use the extension in a vertical arrangement .

Hello.
I find a simpler solution for my singular problem.
Jus add a css inline to the html element:

style =“user-select: none;”

Thanks

Can you specifically show where to add css, I don’t have any idea about html

Hi.

In the tag tha involucrates the text, in my code the div just after body.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.