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

DraftJS: import/export ContentState to and from HTML/Markdown

Results 121 draft-js-utils issues
Sort by recently updated
recently updated
newest added

stateToHtml is ignoring inlineStyleRanges or styles are not getting outputted in stateToHtml conversion stateToHTML(editorState.getCurrentContent()) just the p tags, bold etc are getting outputted and no styles

Update to italic parsing breaks Safari 15.5: `em: /^_([\s\S]+?)(?

let state = EditorState.createWithContent(stateFromHTML(htmlcontent)); Output state of this line returning, link target values from "_blank "to "_self" automatically.

Hey guys. I'm trying to use SyntaxHighlighter inside blockRenderers for *code-block* but naturally, as each block inside blockRenderers expects to return a string (and not a Node, aka, Element), this...

Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...

dependencies

Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3. Release notes Sourced from ws's releases. 5.2.3 Bug fixes Backported 00c425ec to the 5.x release line (76d47c14). Commits 6dd88e7 [dist] 5.2.3 76d47c1 [security] Fix...

dependencies

## What does this PR do? Previously the customStyleFn only allowed you to apply a single style. This PR improves the behavior of the customInlineStyleFn by allowing it to return...

I added a color picker to my toolbar, had it change the color and stored it as HTML. ``` import draftToHtml from 'draftjs-to-html'; const html = draftToHtml(draftState); ``` Now I...

``` entityStyleFn: (entity) => { const entityType = entity.get('type').toLowerCase(); const data = entity.getData(); switch(entityType){ case 'attachment': return { element: 'a', attributes: { href: data.url } } } } let html...

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tmpl&package-manager=npm_and_yarn&previous-version=1.0.4&new-version=1.0.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies