Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the use of <element contentEditable="true"> in html?

It seems it allows you to edit the content of an element, but what is actually happening? What's the use of this property?

EDIT: see here

like image 845
Gordon Gustafson Avatar asked Oct 31 '09 17:10

Gordon Gustafson


1 Answers

This is usually used for rich text input. While regular form elements like <input type="text"/> don't provide real rich text editing options, elements with contentEditable set to true can. Most rich text editors (e.g. FCK Editor) available for the web are built using an <iframe/> with contentEditable set to true.

like image 110
Josef Pfleger Avatar answered Sep 28 '22 02:09

Josef Pfleger