Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit c7e76a5

Browse files
committed
bump inline toolbar
1 parent 4939349 commit c7e76a5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"slate": "^0.20.1",
179179
"slate-markdown": "0.1.1",
180180
"slugg": "^1.1.0",
181-
"spectrum-draft-js-inline-toolbar": "^0.1.0",
181+
"spectrum-draft-js-inline-toolbar": "^0.1.2",
182182
"stopword": "^0.1.9",
183183
"string-replace-to-array": "^1.0.3",
184184
"string-similarity": "^1.2.0",

src/components/rich-text-editor/container.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,10 @@ class Editor extends React.Component<Props, State> {
299299
<InlineToolbar
300300
editorState={state}
301301
selectionRef={{
302-
current: this.editor != null ? this.editor.editor.editor : null,
302+
current:
303+
this.editor != null && this.editor.editor != null
304+
? this.editor.editor.editor
305+
: null,
303306
}}
304307
onChange={onChange}
305308
/>

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10457,9 +10457,9 @@ spdy@^3.4.1:
1045710457
select-hose "^2.0.0"
1045810458
spdy-transport "^2.0.18"
1045910459

10460-
spectrum-draft-js-inline-toolbar@^0.1.0:
10461-
version "0.1.0"
10462-
resolved "https://registry.yarnpkg.com/spectrum-draft-js-inline-toolbar/-/spectrum-draft-js-inline-toolbar-0.1.0.tgz#2cd4028032087ef402c5aa47597bc9d6e80fec69"
10460+
spectrum-draft-js-inline-toolbar@^0.1.2:
10461+
version "0.1.2"
10462+
resolved "https://registry.yarnpkg.com/spectrum-draft-js-inline-toolbar/-/spectrum-draft-js-inline-toolbar-0.1.2.tgz#b94bc7a3383dc335728a27b6765857c6445c3eb8"
1046310463
dependencies:
1046410464
draft-js "^0.10.5"
1046510465
draft-js-plugins-utils "^2.0.3"

0 commit comments

Comments
 (0)