Skip to content

Commit

Permalink
Components: Extract the WritingFlow component as a reusable Editor co…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
youknowriad committed Nov 20, 2017
1 parent 6f5e90c commit 465a718
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions editor/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export { default as BlockToolbar } from './block-toolbar';
export { default as ErrorBoundary } from './error-boundary';
export { default as Inserter } from './inserter';
export { default as Warning } from './warning';
export { default as WritingFlow } from './writing-flow';

// State Related Components
export { default as EditorProvider } from './provider';
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ import {
isVerticalEdge,
placeCaretAtHorizontalEdge,
placeCaretAtVerticalEdge,
} from '../utils/dom';
} from '../../utils/dom';
import {
getBlockUids,
getMultiSelectedBlocksStartUid,
getMultiSelectedBlocksEndUid,
getMultiSelectedBlocks,
getSelectedBlock,
} from '../selectors';

import { multiSelect } from '../actions';
} from '../../selectors';
import { multiSelect } from '../../actions';

/**
* Module Constants
Expand Down
3 changes: 1 addition & 2 deletions editor/modes/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import { KeyboardShortcuts } from '@wordpress/components';
import './style.scss';
import VisualEditorBlockList from './block-list';
import VisualEditorInserter from './inserter';
import WritingFlow from '../../writing-flow';
import { PostTitle } from '../../components';
import { PostTitle, WritingFlow } from '../../components';
import { getBlockUids, getMultiSelectedBlockUids } from '../../selectors';
import { clearSelectedBlock, multiSelect, redo, undo, removeBlocks } from '../../actions';

Expand Down

0 comments on commit 465a718

Please sign in to comment.