# Div with contentEditable does not work at all

**URL:** <https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603>\
**Category:** ionic-v1\
**Created:** [July 30, 2015, 6:28pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603 "2015-07-30T18:28:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mik378](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mik378/32/7777_2.png) [@Mik378](https://forum.ionicframework.com/u/Mik378)\
**Post date:** [July 30, 2015, 6:28pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603/1 "2015-07-30T18:28:12Z")

</div>

Hi,

I want to allow user to edit some div.

I have this code snippet:

```
<ion-content>
   <div contenteditable="true">Click to Edit me</div>
</ion-content>

```

Is there any explanation why it’s not editable on click?

Here’s a [codepen](http://codepen.io/anon/pen/eNQwPo).

Thanks,

Michael

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [July 30, 2015, 8:00pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603/2 "2015-07-30T20:00:38Z")

</div>

Your codepen works for me in unless I misunderstood your issue.

![image](https://global.discourse-cdn.com/ionicframework/original/2X/2/2ab285ea06fd96056c1957efe5f7c9b107531123.png)

---

<div class="post-metadata">

**Author:** ![Mik378](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mik378/32/7777_2.png) [@Mik378](https://forum.ionicframework.com/u/Mik378)\
**Post date:** [July 30, 2015, 10:28pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603/3 "2015-07-30T22:28:14Z")

</div>

@gmarziou I bet you didn’t try with Safari 😉

---

<div class="post-metadata">

**Author:** ![Mik378](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mik378/32/7777_2.png) [@Mik378](https://forum.ionicframework.com/u/Mik378)\
**Post date:** [July 30, 2015, 10:41pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603/4 "2015-07-30T22:41:44Z")

</div>

I’ve just succeeded:

```
<div contenteditable="true" style="-webkit-user-select: text; -khtml-user-select: text;-moz-user-select: text;-o-user-select: text;user-select: text;">

```

This way it works on Safari and others too.

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [July 31, 2015, 1:40pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603/5 "2015-07-31T13:40:21Z")

</div>

Yes I was on Chrome or Firefox

---

<div class="post-metadata">

**Author:** ![tonyluo](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@tonyluo](https://forum.ionicframework.com/u/tonyluo)\
**Post date:** [September 22, 2015, 2:34pm UTC](https://forum.ionicframework.com/t/div-with-contenteditable-does-not-work-at-all/29603/6 "2015-09-22T14:34:10Z")

</div>

when i press Enter, the text in the newline can’t be selected. do you have the same issue?
