Questions tagged [textselection]

In User Interface Design, text selection is the method of handpicking a portion of text, most commonly for the purpose of copying/cutting/pasting.

In User Interface Design, text selection is the method of handpicking a portion of text that will be further acted upon by the user. The selection is done by the interaction devices provided by the user interface.

Text selection is most commonly associated with the user actions of copying, cutting, and pasting. In Graphical User Interface, text selection is performed by a mouse or touch represented as cursors.

459 questions
0
votes
0 answers

How to change WKWebView selection text tintcolor?

I'm using WKWebView to load local txt file. After load succ, long press tap on text, text selection and UIMenuController will appear. The color of text selection rect is default(blue), how can I change it? I have used code blow but it doesn't…
desmond_yy
  • 83
  • 6
0
votes
1 answer

Overwrite highlighted text on mouseup text selection+ HTML5/jQuery

I have some content generated by a ML model in 100s of paragraphs, each para has some highlighted content. Sometimes, highlighted data is incorrect, we want the user to select the text and get it highlighted again to correct it.

Contrary to…

Laxmikant
  • 2,046
  • 3
  • 30
  • 44
0
votes
1 answer

Select multiple words across nodes and store indexes relative to a root element's textContent

I'm developing an e-learning application. In one exercise, I'd like to have our students read a text, flag mistakes that I put in it and evaluate their response. Using Rangy, I solved some problems concerning text selection (let's say there's a
Pida
  • 928
  • 9
  • 32
0
votes
3 answers

How to fix disabled text highlighting?

Text highlighting is not working for all input fields in my asp.net web app with the latest versions of FireFox and Google Chrome (CTRL+A does not work either). I have not been able to test older versions yet. With Edge it is working…
Manu
  • 1,290
  • 5
  • 17
  • 32
0
votes
1 answer

Firefox not allowing selection on two text input at same time

I have two basic text input in an HTML page, if none of them is in focus and I press CTR+A or CMD+A shortcut then the content of both text input is not getting selected on firefox, working fine on chrome
Harsh kurra
  • 1,094
  • 1
  • 9
  • 19
0
votes
0 answers

Form_load selects line (richtextbox), form temporarily loses focus, returns back with entire richtextbox selected

I have a form_load thats selecting a string in a RTB and it works perfectly, makes the line I specify highlighted yellow and all other lines untouched. when I click a button and load another form and use it then close it, the original form now has…
0
votes
1 answer

Making android 'select all' option only to select custom content in ionic

Anyone ever been to this situation where you want to make the android 'select all' option to select custom content? Now 'select all' selects the whole page. I only want it to select one part of the page. Any help will be appreciable. please check…
0
votes
1 answer

TextSelection in a TextField issue

After selecting the whole text in a TextField using TextSelection() it does indeed select the whole text but after pressing a key on the keyboard, it starts adding pressed letters/numbers to the start of the text as opposed to deleting the old one…
user6704969
  • 21
  • 1
  • 5
0
votes
2 answers

Unable to Select text in EditText after disabling the context menu

After Seeing here Disable EditText context menu . I am able to Hide the context menu but unfortunately i am unable to select the text from the edittext. how do i do that i mean select text? Here is my code import…
Pallob
  • 31
  • 5
0
votes
1 answer

What are some scenarios in which you'd care the direction of a browser selection?

The browser DOM Selection API provides properties showing what node and offset a selection begins at (Selection.anchorNode and Selection.anchorOffset), and what node and offset the selection ends at (Selection.focusNode and Selection.focusOffset).…
webstackdev
  • 850
  • 15
  • 23
0
votes
1 answer

select editable text on focus with execCommand

I've got a simple code that is suppose to select all contents of the element that was focused: html:
Content
.ts: focusin(e)…
sanjihan
  • 5,592
  • 11
  • 54
  • 119
0
votes
0 answers

Android Marshmallow - Text Selection Menu Showing Awkwardly

So I'm trying to add my own menu item to the Text Selection Context Menu on Android. However, it shows up really weird. Here is what it looks like: Here is my code: etNote.setCustomSelectionActionModeCallback(new ActionMode.Callback() { …
Adifyr
  • 2,649
  • 7
  • 41
  • 62
0
votes
1 answer

UItextview selected text not getting deselect when user tap in ios 11

I am unable to deselect the selected text in a UITextview (objective c) in ios 11, I have tested in ios 10 and it is working fine. As per my situation when user tap on text view the text get selected(it is working), but when he tries to edit the…
Harsh
  • 63
  • 9
0
votes
2 answers

JQuery autofill table row with corresponding text selection?

My previous question is here but it seems that using only window and document cannot get it done. What I want is that when the text from the first row is selected, the first input will be filled. Same for the second row. javascript - select text in…
Yang
  • 6,682
  • 20
  • 64
  • 96
0
votes
1 answer

Disable text selection on chrome/firefox reading view

I recently opened a blog and I'm having some issues with my articles: I'm trying to make it ''impossibile'' to copy them elsewhere. I've already used the standard CSS code to disable text selection .post-content { -webkit-touch-callout:…
Steno
  • 1