Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2c0ed5e8
Unverified
Commit
2c0ed5e8
authored
Apr 20, 2020
by
Rounak Agarwal
Committed by
GitHub
Apr 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Examples] Update draft-js to v0.11.5 and add editorKey prop i… (#12011)
parent
b6f44e66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
package.json
examples/with-draft-js/package.json
+1
-1
index.js
examples/with-draft-js/pages/index.js
+1
-0
No files found.
examples/with-draft-js/package.json
View file @
2c0ed5e8
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"start"
:
"next start"
"start"
:
"next start"
},
},
"dependencies"
:
{
"dependencies"
:
{
"draft-js"
:
"
0.10
.5"
,
"draft-js"
:
"
^0.11
.5"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.7.0"
,
"react"
:
"^16.7.0"
,
"react-dom"
:
"^16.7.0"
"react-dom"
:
"^16.7.0"
...
...
examples/with-draft-js/pages/index.js
View file @
2c0ed5e8
...
@@ -202,6 +202,7 @@ export default class App extends React.Component {
...
@@ -202,6 +202,7 @@ export default class App extends React.Component {
handleKeyCommand
=
{
this
.
handleKeyCommand
}
handleKeyCommand
=
{
this
.
handleKeyCommand
}
onChange
=
{
this
.
onChange
}
onChange
=
{
this
.
onChange
}
placeholder
=
"Tell a story..."
placeholder
=
"Tell a story..."
editorKey
=
"foobar"
spellCheck
=
{
false
}
spellCheck
=
{
false
}
ref
=
{
element
=>
{
ref
=
{
element
=>
{
this
.
editor
=
element
this
.
editor
=
element
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment