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
2 answers

how to change the color of selected text in css for jquery mobile div

I want to change the color of selected text to #3C3 for the div one not div two.
0
votes
0 answers

ContentEditable Div - Insert text at selection or end of div if not in focus

I having a contenteditable div. I also have several events that when triggered send html to the div. I would like to be able to replace a selection, place at the cursor, or at the end of div if nothing selected and div doesn't currently have…
Brandon
  • 320
  • 1
  • 4
  • 13
0
votes
1 answer

Disable text selection by click start

I know I can disable text selection for a div but that is not what I want. I have this jquery color picker and as you can see on the webpage in the flat example, if you pick a color keep the mouse pressed and move all over the page nothing get's…
PiTheNumber
  • 22,828
  • 17
  • 107
  • 180
0
votes
1 answer

IE TextRange.HtmlText returns unexpected line breaks

In an empty Asp.Net project I have the following code: I am using TextRange.HtmlText in IE 8 to retrieve a user's text selection in a DIV element. However, for some reason the selected html contains \r\n even though there are no line break…
TGH
  • 38,769
  • 12
  • 102
  • 135
0
votes
1 answer

Disable text moving with javascript

I'm searching for a javascript solution for the following problem. I'm using CKEditor on my website, but i think that this is irrelavant. Because i think that this is a native functionality and not a functionality of the CKEditor. I would like to…
Spons
  • 1,593
  • 1
  • 17
  • 46
0
votes
1 answer

html element making whole web app selectable?

I have most of my web-app set as unselectable. Using div as an example: div { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } The amazing…
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
0
votes
1 answer

How to keep the selection in a div when I focus in another element in the page?

I'm working in a text editor and I have made great benefit of @TimDown 's rangy lib, but when I select some text and focus in a text input to write the link on it, this link will be applied to the selection later, I lose the selection and the…
Develop Smith
  • 146
  • 1
  • 3
  • 13
0
votes
1 answer

Getting selected text (python-gtk)

I want to get selected text automatically in python, using gtk module. There is a code to get selected text from anywhere: #!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class GetSelectionExample: # Signal handler invoked…
J3y4Nf3R
  • 25
  • 2
  • 5
0
votes
1 answer

With Rangy, even though I extend the range by setStartBefore method, range.canSurroundContents method still returns false

I have the following html:

Morbi quis augue vitae quam pharetra| varius at at| urna.

The selection is marked with | characters. Also a screenshot of the selection: I can extend this selection to contain the whole 'a' element…
matte
  • 1,196
  • 4
  • 13
  • 21
0
votes
1 answer

Select and drag text on Mac OS X 10.6 doesn't allow me to drag

I have just been enlightened on what I previously thought was a short-coming of the whole Mac OS X platform - that like Windows, a user may select a block of text and drag it. This is particularly useful in developing. However, the reason I thought…
Jon Mitten
  • 1,965
  • 4
  • 25
  • 53
0
votes
1 answer

How to change text-selection styles with javascript

Possible Duplicate: Setting CSS pseudo-class rules from JavaScript How do you do something equal to: ::selection { color: #FFF; } in javascript?
Peter
  • 946
  • 9
  • 23
0
votes
1 answer

Clear SelectionBackColor from text in RichTextBox

Possible Duplicate: RichTextBox syntax highlighting in real time--Disabling the repaint I'm using a RichTextBox control to find and change the SelectionBackColor property of some words. The words are not fixed so basically the text that has…
denied66
  • 644
  • 7
  • 18
0
votes
1 answer

Adding bidirectional functionality to a SelectionListener

I'm having some trouble with my selection listener, currently I have independently trialed selection of text from TOP to BOTTOM, and BOTTOM to TOP (Mouse movement), however these trials won't work together i.e. the one SelectionListener is…
0
votes
1 answer

Blocking EditText contextMenu

I want to create an EditText with the following changes: Clicking on it will not show the keyboard After SINGLE, SHORT click it will get into selection mode (When I say selection mode I mean the mode where you can select a section of the text (with…
RE6
  • 2,684
  • 4
  • 31
  • 57
0
votes
2 answers

Anybody know how to select text in webview in android? not use emulateShiftHeld,since the docs said " This method is deprecated"

I try to select text in webview, after I select text,I need to decide what to do next.not just copy the selected text.I have more choice for user to choose from.I mean, after user selected text in webview,could I prompt out a some button for…
songtzu
  • 90
  • 2
  • 12
1 2 3
30
31