draftjs-utils icon indicating copy to clipboard operation
draftjs-utils copied to clipboard

An collection of useful utility functions for DraftJS.

Results 39 draftjs-utils issues
Sort by recently updated
recently updated
newest added

With npm v7, I am unable to install this library alongside `immutable` without using the `--legacy-peer-deps` flag: Package JSON: ```json { ... "draftjs-utils": "0.10.2", "immutable": "4.0.0-rc.12", ... } ``` ```...

Make UMD build available on browsers and Node.js. #30 Documentation [here](https://webpack.js.org/configuration/output/#outputglobalobject). Discussion [here](https://github.com/webpack/webpack/issues/6642).

E.g. if is set 'FONTSIZE' for one part of text, and same style but with different value for another, and we select the whole text, then `getSelectionCustomInlineStyle` returns `FONTSIZE: undefined`....

As shown in the figure, when I use the **insertNewUnstyledBlock()** in a block with content, I hope to jump out of this block and create a new unstyle block. The...

Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1. Commits 9a2e9b6 Mark version 6.4.1 90a9548 More rigorously check surrogate pairs in regexp validator See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=acorn&package-manager=npm_and_yarn&previous-version=6.4.0&new-version=6.4.1)](https://help.github.com/articles/configuring-automated-security-fixes) Dependabot...

dependencies

Hi there, I've been trying to add an uppercase functionality to @jpuri 's editor but I can't find a way to add "textTransform" to customInlineStylesMap. Is there a way to...

#31 I have to ship my app to IE users. https://caniuse.com/#search=startsWith I know that I can use a polyfill but, it's not obvious, and requires digging where startsWith was used.

I have to ship my app to IE users. https://caniuse.com/#search=startsWith I know that I can use a polyfill but, it's not obvious, and requires digging where startsWith was used. Here...

based on my test, it is possible that entity across multiple blocks. You can reproduce this by inputing multiple blocks in the editor, select multiple blocks, create and apply an...

Sometimes you need to include line feeds in you selected text, so I it would be nice to do this: ```javascript const text = getSelectionText(editorState, "\n"); console.log(text); ``` And the...