Top "Contenteditable" questions

contentEditable is an HTML attribute (invented by Microsoft and standardized in HTML5) that is used for client-side in-browser "rich text" editing.

Make CSS pseudoelement :before same height as main element

I've been looking all over and failed to find a solution to this on my own. I'm trying to make …

css counter contenteditable pseudo-element
How to disable elements selection and resizing in contenteditable div?

E.g. I have the following layout: <div contenteditable="true"> <span class="text-block" contenteditable="false"> <…

javascript html css internet-explorer contenteditable
Add linebreak to textContent or innerText only - in Chrome

This is a complicated one! Im working with contentEditable in Chrome and I'm experiencing a head melting problem. When I …

javascript html wysiwyg contenteditable
Is there a way to keep execCommand("insertHTML") from removing attributes in chrome?

Context is Chrome 37.0.2062.120 m. I'm using execCommand to insert html into an editable div. My execCommand call looks like this: …

javascript contenteditable execcommand
Is it possible to disable or control "commands" in contentEditable elements?

As I understand it, an element with contentEditable="true" is some kind of WYSIWYG HTML editor. It generates relevant HTML …

javascript html contenteditable
HTML contenteditable with non-editable islands

I have sort of browser based WYSIWYG editor where users can edit documents-templates. Document-template is an ordinary html with some …

html contenteditable
selectionStart and selectionEnd in contenteditable element

I have been struggling the selectionStart and selectionEnd attributes of textarea to make them work with contenteditable div element. I …

jquery textarea selection contenteditable
How to change behavior of contenteditable blocks after on enter pressed in various browsers

When pressing enter in <div contenteditable="true"> </div> in firefox <br /> is produced - …

javascript cross-browser contenteditable
What contenteditable editors are there?

This question should serve as a listing of all the different content-editable solutions. Post new ones in the answers below.

contenteditable
Make the Tab key Insert a tab character in a contentEditable div and not blur

I'm building a simple text editor by setting contentEditable=true on a div (anyway i think that textarea behaves in …

javascript html contenteditable