jpuri / draftjs-utils

An collection of useful utility functions for DraftJS.
MIT License
286 stars 47 forks source link

How to use getSelectionCustomInlineStyle ? #14

Open LucienPerouze opened 6 years ago

LucienPerouze commented 6 years ago

Hello,

I can't manage to use getSelectionCustomInlineStyle, the only doc says that we have to pass it an array of styles but what does it means ??

I tried ['MY_CUSTOM_STYLE_NAME'] and it returns an undefined on this.

Do I have to pass whole css structure as an array ?

Thank you for your time :)

Tianruo commented 5 years ago

Hello,

I can't manage to use getSelectionCustomInlineStyle, the only doc says that we have to pass it an array of styles but what does it means ??

I tried ['MY_CUSTOM_STYLE_NAME'] and it returns an undefined on this.

Do I have to pass whole css structure as an array ?

Thank you for your time :)

me too

Flip437 commented 1 year ago

same here, how to use this function plz