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
1
vote
1 answer

Find set of DOM selectors that match the selected text

So say you go to some place and select some text: When you look at the DOM it's around here: But it's actually this text: "Local embassy – For Wikipedia", the debugger doesn't quite get it right. What I'm wondering is how to essentially find the…
Lance
  • 75,200
  • 93
  • 289
  • 503
1
vote
5 answers

Error using Rangy - methods are not working in Angular5

Angular 4 and modules: Rangy I followed the instructions above to import rangy. I want to use TextRange's function expand() in Rangy's documentation. However, I get the error Property 'expand' does not exist on type 'RangySelection'. My code: …
inspired_learner
  • 142
  • 1
  • 11
1
vote
1 answer

TinyMCE Custom Link button/command (with jQuery)

I have a TinyMCE editor with its default toolbar hidden, and have created my own to replace it (simplified with office2007 style css previews). I'm having an issue with creating a link via code (I load my own jQuery UI window with a list of pages…
Josh
  • 1,261
  • 2
  • 18
  • 34
1
vote
2 answers

Get selected text position inside div and persist

I am trying to get the position of the selected text, replace it with some HTML and then I want to persist the position of the selected text, so that the next time I render the html I want to show the highlight on the selected text I have some…
h-kach
  • 351
  • 2
  • 8
  • 25
1
vote
1 answer

Make a QDialog read only, but still with text selectable

Disclaimer: I'm not a Qt programmer, I'm just asking in case someone could solve an issue about DB Browser for SQLite. So, an EditDialog widget is extending the QDialog class. As described in the issue, in some scenarios this widget is readonly, but…
Gras Double
  • 15,901
  • 8
  • 56
  • 54
1
vote
3 answers

Prevent selecting text in a TextBox

Similar questions have been already asked (e.g., here), however I've not found an answer for my specific case. I'm building a custom control based on a DevExpress control, which in turns is based on standard TextBox and I've a flickering problem…
Mauro Ganswer
  • 1,379
  • 1
  • 19
  • 33
1
vote
0 answers

Firemonkey Text selection on Android

I created a form with a syntax highlighter which draws over the TForm.OnPaint event. On Windows I can simply use Form events to "simulate" the native Windows text selections. Is it possible to implement the native text selection on android with this…
MaxMadman
  • 234
  • 3
  • 11
1
vote
2 answers

Monitor selections in any application

I want to monitor all text selections made in any application by the user. Is that possible? I would prefer a solution in .net, but vanilla C++ is OK. If not, can I monitor all text copy operations (CTRL+C) from a .net application? similar…
jgauffin
  • 99,844
  • 45
  • 235
  • 372
1
vote
1 answer

The bug when use WKWebViewConfiguration to set the property selectionGranularity to .Character will get no text selection view

This is my setting for WKWebView: func setupWebView() -> WKWebView { let configutation = WKWebViewConfiguration() configutation.selectionGranularity = .Character let webView = WKWebView(frame: CGRect(x: 0, y: 20, width:…
Arco
  • 614
  • 5
  • 13
1
vote
1 answer

Text selection not happening properly because of custom line spacing in UITextView

I have a custom UITextView with custom line spacing applied. When I try to select the text the selectionRect is wrong. Check this image where highlighting is correct but the size of the handles at selectionRange start and end is wrong. That…
Padma
  • 83
  • 7
1
vote
0 answers

How to retain text selection after clicking copy on android edittext

When we click copy in text selection context menu the selection disappears. Is there any way to retain selection after copying? Thanks in advance
Vijay
  • 545
  • 1
  • 5
  • 15
1
vote
2 answers

Jquery: possible to change the text selection color in a textarea with jquery? css doesn't work :(

textarea::selection { background:#0099ff;} That's how you specify a text selection color for chrome in CSS, i know it's different for different browsers but I wanted to know if there's a way to change the selection color inside of a textarea,…
android.nick
  • 11,069
  • 23
  • 77
  • 112
1
vote
1 answer

How to Select text by range from the current word to end of that Sentence(.) in a paragraph

I need to implement the selection of text by range on click from current word to end of that sentence in the paragraph. For example: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the... is a…
A. G. K
  • 33
  • 6
1
vote
2 answers

EditText: allow scrolling but disable selecting

I am trying to create a EditText in which no text can be selected, but which can still be scolled through by the user. To archive the first function a created a custom OnTouchListener and only responded to the ACTION_DOWN events like…
zimmerrol
  • 4,872
  • 3
  • 22
  • 41
1
vote
1 answer

WinAPI: Getting text selection of active window without using the clipboard

I know that you can get the text selection by sending a WM_COPY message and then reading the new contents of the clipboard. But how does Windows retrieve the text selection in the first place before it gets stored in the clipboard? I mean there has…
Forivin
  • 14,780
  • 27
  • 106
  • 199