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

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Aug 5, 2020
1 parent 72f8f69 commit f049530
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/editor/SlateEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const SlateEditor = ({
// Don't remove it, unless this test passes:
// - with the Slate block unselected, click in the block.
// - Hit backspace. If it deletes, then the test passes

fixSelection(editor);

if (defaultSelection) {
Expand Down Expand Up @@ -99,13 +98,11 @@ const SlateEditor = ({
const [PluginToolbarChildren, setPluginToolbar] = React.useState(null);
editor.setPluginToolbar = setPluginToolbar;

// TODO: in Footnotes block and toolbar buttons, support Footnotes in tables
return (
<div
{...rest['debug-values']} // used for `data-` HTML attributes set in the withTestingFeatures HOC
className={cx('slate-editor', { 'show-toolbar': showToolbar, selected })}
>
{/* <SidebarFootnoteForm showForm={showForm} /> */}
<Slate editor={editor} value={value || initialValue} onChange={onChange}>
{PluginToolbarChildren && (
<PluginToolbar selected={selected}>
Expand Down

0 comments on commit f049530

Please sign in to comment.