textselection

IOs Cordova long-press shows text-select magnifying glass even with text-selection disabled, how to remove?

廉价感情. 提交于 2019-11-27 21:37:28
问题 I have a very weird problem. In my cordova app on iOS I am getting a pop-up text-select magnifying glass when I long-press anywhere in the app. Example: The bubble at the top is locked to the top of the screen, and follow my x-position when moving my finger from side to side. I have tried to add the following css which people say should fix my issue: * { -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout: none; -webkit-user-select: none; } This does not help. Looking at things

How to create tooltip over text selection without wrapping?

懵懂的女人 提交于 2019-11-27 19:56:33
问题 My end goal is to create a tooltip over a text selection. The user will then be able to interact with the tooltip similar to . Please note that I was able to accomplish this by wrapping selected text in a tag and then creating the tooltip on it however this is no longer an option for me due to some other requirements and functionality issues. If you notice in the image above in element inspector, the selected text is not wrapped in any kind of tag, the tooltip is just created over the

How to override default text selection of android webview os 4.1+?

坚强是说给别人听的谎言 提交于 2019-11-27 17:58:30
Before posting this question I've searched a lot but could not find any clear answers on this issue. I have to override default text selection of android webview & show my custom text selection dialog options. I have tried this sample code project . This sample project works on following devices & emulator : Acer Iconia a500 tablet : 10 inch : Android OS - 3.0 Acer Iconia a500 tablet : 10 inch : Android OS - 3.2 Samsung Galaxy Tab : 10 inch : Android OS - 4.0 Samsung Galaxy Tab : 7 inch : Android OS - 4.0 Emulator : Skin-WVGA800 : Android OS - 4.1.2 Not working on following devices : Samsung

IOS: Text Selection in WKWebView (WKSelectionGranularityCharacter)

青春壹個敷衍的年華 提交于 2019-11-27 11:55:57
问题 I've got an app that uses a web view where text can be selected. It's long been an annoyance that you can't select text across a block boundary in UIWebView. WKWebView seems to fix this with a property on its configuration: selectionGranularity. One of the possible values is WKSelectionGranularityCharacter: Selection endpoints can be placed at any character boundary. Sounds great! Exactly what I need. Except that when I set that in my web view, I often can no longer select text at all. What

Disabling text selection in PhoneGap

依然范特西╮ 提交于 2019-11-27 11:34:43
Is it possible to disable text selection to make a PhoneGap app more similar to normal native app? Something like this: document.onselectstart = function() {return false;} or: * { user-select: none; -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; } Or many other things don't work. I looked all over for help on this. This finally worked for me. public class MainActivity extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); super.appView

How do I disable text selection with CSS or JavaScript? [duplicate]

南楼画角 提交于 2019-11-27 10:00:20
Possible Duplicate: CSS rule to disable text selection highlighting I am making a HTML/CSS/jQuery gallery, with several pages. I indeed have a "next" button, which is a simple link with a jQuery click listener. The problem is that if the user click the button several times, the text of the button is selected, and then the full line of text. In my really darky design, that is really ugly and nonsensical. So here is my question: Can you disable text selection on HTML? If not, I'll terribly miss flash and its high level of configuration on textfields... Jerome <div style="-moz-user-select: none;

Android- How can I show text selection on textview?

烈酒焚心 提交于 2019-11-27 07:31:02
I am implementing a epub reading app where I am using textview for showing text of epub. I want to select text from textview when user long presses on textview and then do multiple operations on selected text of textview like highlight etc.. So, How can I show those cursors to user to select text whatever user wants. *I dont want to use EditText and make it look like textview. May be overriding textview is prefered. *I have attached screenshot to explain what I am looking for- This is asked long time ago, when I had this problem myself as well. I made a Selectable TextView myself for my own

Text selection in div(contenteditable) when double click

筅森魡賤 提交于 2019-11-27 04:38:55
问题 I have div with some text and contenteditable="true". When I single click on this div - works some my scripts, it is not very important. And when I double click on this div - need to edit text in div. Edit text need to be only after double click, not after single. And very imortant, when I double click on div - caret need stay under mouse cursor. No need selection text. I found some script for single/double. But have problem. When I double click on div - text are selection. Selection no need.

Android- How can I show text selection on textview?

孤街浪徒 提交于 2019-11-27 04:00:04
问题 I am implementing a epub reading app where I am using textview for showing text of epub. I want to select text from textview when user long presses on textview and then do multiple operations on selected text of textview like highlight etc.. So, How can I show those cursors to user to select text whatever user wants. *I dont want to use EditText and make it look like textview. May be overriding textview is prefered. *I have attached screenshot to explain what I am looking for- 回答1: This is

How to use the new Android M feature of “Text Selection” to be offered from outside of your app?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 00:39:05
问题 Background Android M presents a new way to handle selected text (link here), even from outside of your app . Text selection can be handled as such: I know it's possible to handle the selected text from outside the app, because if I go to the web browser (or any other place that allows text selection), I can see that I can use the "API demos" app to handle the selected text. The problem I can't see a lot of information about how to do it. The question What should be added in code (and manifest