Skip to content Skip to sidebar Skip to footer
Showing posts with the label Selection

How To Apply Rounded Borders To Highlight/selection

I have used Visual Studio Online for a while for a project, and the way they apply rounded borders … Read more How To Apply Rounded Borders To Highlight/selection

Where Did The Text Selection Api Go?

Two years ago the HTML5 standard dropped the chapter 'Text Selection API' which contained a… Read more Where Did The Text Selection Api Go?

How To Copy Markup - Not Just Plain Text - To The Clipboard Using Legacy Free Javascript

The complete content of a Mary had a little lamb , its fleece was white as snow. Everywhere t… Read more How To Copy Markup - Not Just Plain Text - To The Clipboard Using Legacy Free Javascript

Serializing Html: Placing Span Elements Around Selected Text While Preserving The Html Structure

I am trying to make a text highlighter where a teacher can select a range of text so that the stude… Read more Serializing Html: Placing Span Elements Around Selected Text While Preserving The Html Structure

How To Preserve Text Selection When Opening A Jquery Dialog

Using jQuery's dialog I came across the following quirk (tested in FF3): User selects text In … Read more How To Preserve Text Selection When Opening A Jquery Dialog

Make Text Unselectable And Uncopyable (webkit, While Surrounded By Copyable Text)

The following snippet shows how to make text unselectable. Sadly, if you select text on either side… Read more Make Text Unselectable And Uncopyable (webkit, While Surrounded By Copyable Text)