draft-js
Here are 178 public repositories matching this topic...
Use-case/Problem
Feature
Currently macros are visible like this inside the text key of block in my content state: @gauravsobti
I want it to show like @{{mention.employee.2342.name}} according to the data present in my entity map, so that when the user name changes, I can go ahead and change this. How do I go about and do this?
Google Translated ... sorry!
我想为您提供比自动翻译版本更好的在线手册(此处为 https://www.yuque.com/braft-editor/be/lzwpnr)的英文翻译
您是否愿意将其源代码放到github中?
Original Text:
I would like to provide you with an english translation of the online manual (here: https://www.yuque.com/braft-editor/be/lzwpnr) that is bett
Add to UserComponent's rule's documentation when is each rule triggered. Meaning, when and how often is each callback called.
https://craft.js.org/r/docs/api/user-component
for example: (note, I don't know if my assumptions are correct)
rules?
canDrag(currentNode: Node, helpers: NodeHelpers) => boolean
Specifies if a component can be dragged. Applicable only to components whos
-
Updated
Jun 6, 2020 - JavaScript
-
Updated
Jun 10, 2020 - JavaScript
-
Updated
Jun 6, 2020 - JavaScript
"react", and "react-dom" should be moved to peerDependencies to avoid the react/react-dom version conflicts.
This will fix #176 , and #127
Both are added to direct dependencies right now —
-
Updated
Apr 30, 2020 - JavaScript
It would be appreciated if draftail can modify font color for text selection.
-
Updated
Jun 6, 2020 - JavaScript
Expected Behavior
If you have placeholder
specified as a prop for the Editor
and you use the markdown shortcuts to create a bullet, the placeholder should not be displayed.
Actual Behavior:
The placeholder is still visible behind the bullet.
-
Updated
Jun 6, 2020 - JavaScript
-
Updated
Jun 28, 2020 - TypeScript
-
Updated
Jun 28, 2020 - JavaScript
After upgrading to draft-js 0.11.1, the following deprecation warnings appear in the console:
Supplying an `onDownArrow` prop to `DraftEditor` has been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/RG31RJ).
in DraftEditor (created by EditorWrapper)
in EditorWrapper (create
-
Updated
Jun 6, 2020 - CSS
-
Updated
Oct 13, 2018 - JavaScript
-
Updated
May 19, 2017 - JavaScript
-
Updated
Apr 5, 2020 - JavaScript
The public API is typed with Flow, but that's only useful for projects using Flow. For everyone else, it would be cool if the Flow types could be used to create JSDoc annotations. For example, VSCode will pick these up when autocompleting code ("Intellisense").
I'm not aware of any tool that does this, so the first step would be to find some and try them out.
-
Updated
Jul 12, 2020 - JavaScript
-
Updated
Jun 6, 2020 - JavaScript
-
Updated
Aug 20, 2017 - JavaScript
Improve this page
Add a description, image, and links to the draft-js topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the draft-js topic, visit your repo's landing page and select "manage topics."
Not a bug per se, but a clarification seeing that the docs aren't very up-to-date. If you need to set focus on the editor on render (e.g. on first page load), with functional components you can do it like this: