draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

request support: inline-block

Open ghost opened this issue 10 years ago • 3 comments

example of use: emoji, @, tag, hashtag, etc

ghost avatar Feb 25 '16 09:02 ghost

Have you explored the documentation regarding entities? The tweet example also has sample code for handling @mentions and hashtags.

gscottolson avatar Feb 25 '16 12:02 gscottolson

+1 @gscottolson. Inline-block is just a styling thing. Shouldn't have any effect on your JS.

jamesbrewerdev avatar Feb 25 '16 16:02 jamesbrewerdev

Exactly. Rendering output is an implementation detail for your decorator.

I'd actually be cautious about using inline-block for your decorators, in fact. Cross-browser behavior for inline-block spans within CE can be quirky, and I haven't ironed out really good solutions for them.

hellendag avatar Feb 25 '16 19:02 hellendag