textrange

How can I mirror text selection?

Say you have two inputs: <input id="input1" type="text"/> and <input id="input2" type="text"/> such that through some JavaScript magic, anything you type in input1 will also be put in input2. In this sense input2 "mirrors" input1. Is there a way that I can also "mirror" text selection. So if I select some text in input1, how can I hav...

Change cursor type when the mouse gets over some selected text using HTML/Javascript

I need to change cursor type when the mouse gets over a selected text. Here you can find an explanatory image : In this example the user has to drag some text to the textarea. Since the traditional pointer is not intuitive I would like to use the "move" pointer (cursor:pointer). I made this image with photoshop. Does anyone know how...

createTextRange - strange behavior in IE8

Hi all, I have the following problem. In text input filed which work as an auto-completer some of suggestions it returns are wither than it. The problem comes when you leave the field. In IE the text cursor is positioned on the end of the suggested string, so you can actually see only the last part of it. So I used the code bellow to fi...

flex sprite textarea textrange

in flex,I have a textarea control i like to select some text in textarea. when mouse releases then selected text will be hilighted to GREEN RECTANGLE as sprite. can anybody help ?? ...

How to insert inline content from one FlowDocument into another?

I'm building an application that needs to allow a user to insert text from one RichTextBox at the current caret position in another one. I spent a lot of time screwing around with the FlowDocument's object model before running across this technique - source and target are both FlowDocuments: using (MemoryStream ms = new MemoryStream())...

WPF RichTextBox - Formatting of typed text

I am applying formatting to selected tokens in a WPF RichTextBox. To do this I get a TextRange that encompasses the token that I would like to highlight. I will then change the color of the text like this: // Get start and end pointer for token TextPointer startPointer = run.ContentStart.GetPositionAtOffset(startOffset); TextPointer end...

A problem in designing html editor in IE

i want create a html editor for commericall,and dont want use other free editor even (free license) about 98% of this project is completed,but i have a problem, i use a div tag for listing font name when client click on the change font bottom this div tag will be showed,but selected value in inlineiframe missed when this click occured, ...