angular-contenteditable icon indicating copy to clipboard operation
angular-contenteditable copied to clipboard

added fixture: placeholder

Open ruscoder opened this issue 10 years ago • 3 comments

Use:

ruscoder avatar Jun 12 '14 05:06 ruscoder

hmm, not sure it makes sense to have a simple placeholder like this. Given this is a full contenteditable div with all sorts of css stylings possible I might want something similar for a placeholder. Not sure what the best way to do it would be though...

akatov avatar Jun 24 '14 20:06 akatov

@akatov here is the best way: http://stackoverflow.com/a/18368720

b1rdex avatar Aug 07 '14 02:08 b1rdex

I meant not just CSS stylings, I also meant the inclusion of arbitrary html inside the placeholder which doesn't seem to be possible in the solution from stackoverflow, as < and > get escaped. It may work in @ruscoder's version, however, I won't be merging this without any test fixtures! In any case, I wonder whether it is better to bind the placeholder value to another model instead of the contents of an attribute value. Thoughts?

akatov avatar Aug 07 '14 10:08 akatov