Search code examples
iphoneipadcontenteditablegraceful-degradation

Gracefully Degrading ContentEditable on iPhone & iPad


To my dismay, I found out that the contentEditable=true attribute does not work as expected on iPhones or iPads.

Is there a way to gracefully degrade a contentEditable div without resorting to a textarea and losing all of the rich DHTML formatting benefits on an iPhone or iPad?


Solution

  • contenteditable is supported from IOS 5 onward

    Go here on your iPad to try it out

    http://www.quirksmode.org/dom/execCommand/