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

Get The Raw Html Of Selected Content Using Javascript

How would I get the raw HTML of the selected content on a page using Javascript? For the sake of s… Read more Get The Raw Html Of Selected Content Using Javascript

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

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

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 Disable Text Selection On Double Click, But Not Otherwise?

There are tons of questions like this one and every answer I've seen is: use user-select: none.… Read more How To Disable Text Selection On Double Click, But Not Otherwise?

How Does Twitter Implement Its Tweet Box?

I'm trying to implement something like Twitter's tweet box, specifically: Automatically hi… Read more How Does Twitter Implement Its Tweet Box?