You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
I wanted to add placeholder text in a contenteditable div using the ngModelController. The requirement is that placeholder text appear every time there is no value in the div. I am unable to get it to work properly.
Failure points:
If I type something in the div and then delete it, the html of the element shows <br>. If I use .text instead, it ignores new line characters. Hence, I don't always get the placeholder text. This is not an angularJS relevant issue, but I would appreciate help.
If I clear out the model, the user entered text remains in the div, but my logic also causes the placeholder to appear.