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

Creating, setting styles on a range

I am trying to auto-detect addresses on a page and add the class "address" where found. var rangyPatternApplier = function(element, pattern, style) { var innerText = element.innerText; var matches = innerText.match(pattern); if (matches) { …
ControlAltDel
  • 33,923
  • 10
  • 53
  • 80
1
vote
1 answer

"Failed to execute 'addRange' on 'Selection': parameter 1 is not of type 'Range'

I want to mirror the text selection in a contenteditable div in one browser in another browser. The simplified and relevant section of the code is: In the source browser: function someFunc() { if (window.getSelection().isCollapsed) return; …
Sunny
  • 9,245
  • 10
  • 49
  • 79
1
vote
1 answer

firefox selectionchange event for textarea?

Listening for selectionchange events in a textarea works in chrome and safari, but not in firefox.
selecting me will detect your selecting!
document.addEventListener(…
jedierikb
  • 12,752
  • 22
  • 95
  • 166
1
vote
0 answers

iOS Selection Widgets Over Image

I'd like to use the iOS text selection widgets over an image. The image contains text, and I have programmatic access to glyph positions and text strings. I have searched high and low and cannot see in Apple's documentation or anywhere online how to…
James
  • 863
  • 8
  • 21
1
vote
0 answers

How to add a new option in text selections toolbar

I want to add a new option in the text selection toolbar, an extra option apart of the classics cut, copy, paste, selectAll. enter image description here I used SelectableText but its toolbarOptions just let active/desactive the classic options, not…
1
vote
2 answers

C# Windows Forms DateTimePicker, how to get the SelectedText, SelectionStart, and SelectionLength?

The .NET DateTimePicker has Text, but I cannot figure out how to get and set the SelectionStart, SelectionLength, and SelectionText properties for the DateTimePicker. For example, how can I programmatically select the 2 day digits in the date…
gridtrak
  • 731
  • 7
  • 20
1
vote
2 answers

w2ui text selection in grid

I would like to enable text selection in a grid. I'm aware that this is possible by pressing the cmd button, unfortunately most user doesn't know that. Is there any configuration I'm not aware of? Or where could I enable that? Thanks
bmr
  • 11
  • 1
1
vote
1 answer

How can I select the previous char from the cursor position in a RichTextBox

I am making an combobox that changes the richTextBox's font, and I would like to be able to automatically change the combobox's selection when I click on a specific text in it, matching its font. I thought, it would be appropriate to add an onClick…
Fjodr
  • 919
  • 13
  • 32
1
vote
0 answers

Unable to select text in Xamarin.Forms Editor control or custom Borderless Editor using renderer

I've implemented a BorderlessEditor in my Xamarin.Forms application using a custom EditorRenderer, but I'm facing the issue that the editor text is not selectable at all in both cases, neither in Forms editor control nor in Rendered native editor…
1
vote
1 answer

Blazor - turning off text selection when moving with mouse after mousedown event

I'm working on table in Blazor. I want to use mousedown and mouseup event to add posibility for selecting more cells in the table. When user holds mouse button, he can move and select cells until he release mouse button. Everything works fine, there…
Filip
  • 117
  • 2
  • 8
1
vote
0 answers

How to create a simple marker/highlighter, taking into account tags collision intervals and block level elements?

I'm trying to create a simple tool that allows the user to select a piece of text on a page so that he/she can highlight what has been selected. I found that I could start solving this problem by using the Selection and Range API. Basically, to…
Loa
  • 2,117
  • 3
  • 21
  • 45
1
vote
2 answers

How do I select text from the cursor position to the begining of a paragraph with VBA

I am formatting a specific type of name in a large document. The correct format is "Name of term (REC) [Date]" where the entire phrase is italicized with the exception of the date. I am currently using the following…
Thribben
  • 13
  • 3
1
vote
0 answers

How can i select a text in a div , whose content has a scroll

My intention is to select a text in a div which has a scroll.I need to scroll inside that div and forcefully select a text. I am using the below given code. createSelectionFromPoint(startX, startY, endX, endY) { var doc =
Pranav s
  • 164
  • 1
  • 11
1
vote
1 answer

how to copy tag text under ui-select

I need the user to be able to select (using mouse or keyboard) a selected tag value and be able to copy the text somehow. In the following sample plunker, I need the user to be able to copy text "blue"/"red" - ui-select tagging sample Any…
SoftEngi
  • 407
  • 4
  • 14
1
vote
0 answers

Hide native textSelectHandleLeft on webview : Android

I'm trying to hide textSelectHandleLeft and textSelectHandleRight on WebView when user select the text, I want the text to be selected but want to hide these grey bubble type handles. currently I'm using setTheme() and changing to height of…