jpuri / jpuri/draftjs-utils

How to use getSelectionCustomInlineStyle ?

Open
#14 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
286
Forks
46
PR merge metrics
No merged PRs in 30d

Description

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 :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the getSelectionCustomInlineStyle entry point and the documentation referenced in the issue. Clarify what the styles array should contain and what a successful result looks like, then update the relevant documentation so the usage is unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.