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

Get Contenteditable Caret Position

I'm finding tons of good, cross-browser answers on how to set the caret position in a contentEd… Read more Get Contenteditable Caret Position

Move The Cursor Position With Javascript?

I'm looking to move the caret exactly four spaces ahead of its current position so that I can i… Read more Move The Cursor Position With Javascript?

Knockout Content Editable Custom Binding

Why in this example http://jsfiddle.net/JksKx/8/ div lost cursor when i write text? How to fix such… Read more Knockout Content Editable Custom Binding

Problem Detecting Newlines In Javascript Range Object

I have some javascript that manipulates html based on what the user has selected. For real browsers… Read more Problem Detecting Newlines In Javascript Range Object

Javascript / Jquery: How To Get Selected Text In Firefox

How can I get the selected text (in a contenteditable div) in Firefox ? It would be enough for rece… Read more Javascript / Jquery: How To Get Selected Text In Firefox

How To Place Cursor At The End Of Text After Replacing Html With Jquery?

I have a contenteditable div and trying to replace tag with tag but after replacing the html usin… Read more How To Place Cursor At The End Of Text After Replacing Html With Jquery?

How Can I Take Elements Out Of The Dom, After Pasting Or Dropping Something?

I am using jQuery's remove() function to delete everything that is pasted/dropped in a contente… Read more How Can I Take Elements Out Of The Dom, After Pasting Or Dropping Something?

Pasting Into Contentedittable Results In Random Tag Insertion

I am using a contentedittable field as user input so that I can exploit text formatting. Unfortunat… Read more Pasting Into Contentedittable Results In Random Tag Insertion

Changes To Selection And Range Functionality In Ie8

I'm having to debug a WYSIWYG javascript based HTML editor that is failing in IE8. It's onl… Read more Changes To Selection And Range Functionality In Ie8

How To Switch To Raw Html In Contenteditable For In Place Editing?

I'm writing a user script to edit the whole html page: one of the features I will include would… Read more How To Switch To Raw Html In Contenteditable For In Place Editing?

How To Prevent Accidental Deletion Of Contenteditable Ul In Ie10?

I want to have a contenteditable ul on a page. However, in Internet Explorer 10, if you click into … Read more How To Prevent Accidental Deletion Of Contenteditable Ul In Ie10?

Javascript - Change Font Color Of Certain Text In Textarea

Is there any JS function that can change the color of certain text in a textarea? For example, blar… Read more Javascript - Change Font Color Of Certain Text In Textarea