Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components: Extract a reusable PostTextEditor componeent #3421

Merged
merged 1 commit into from
Nov 13, 2017

Conversation

youknowriad
Copy link
Contributor

Related to #2761 (comment)

This PR extracts PostTextEditor component to the reusable components folder by removing all layout styles from the reusable components.

Testing instructions

  • Test that the Text Editor works and looks like master.

@youknowriad youknowriad self-assigned this Nov 10, 2017
@youknowriad youknowriad force-pushed the update/extract-reusable-post-text-editor branch from fb97523 to 55d6af8 Compare November 10, 2017 11:42
@codecov
Copy link

codecov bot commented Nov 10, 2017

Codecov Report

Merging #3421 into master will increase coverage by 0.81%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3421      +/-   ##
==========================================
+ Coverage   33.89%   34.71%   +0.81%     
==========================================
  Files         250      252       +2     
  Lines        6723     6838     +115     
  Branches     1218     1260      +42     
==========================================
+ Hits         2279     2374      +95     
- Misses       3750     3771      +21     
+ Partials      694      693       -1
Impacted Files Coverage Δ
editor/modes/text-editor/index.js 0% <0%> (ø) ⬆️
editor/components/post-text-editor/toolbar.js 0% <0%> (ø)
editor/components/post-text-editor/index.js 0% <0%> (ø)
editor/block-mover/index.js 4.76% <0%> (-5.24%) ⬇️
editor/header/index.js 0% <0%> (ø) ⬆️
editor/store-defaults.js 100% <0%> (ø) ⬆️
components/autocomplete/index.js 78.82% <0%> (+5.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 829c75c...39df508. Read the comment docs.

import { getEditedPostContent } from '../../selectors';
import { editPost, resetBlocks } from '../../actions';

class TextEditor extends Component {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be PostTextEditor here to align with how it is exposed globally.

@youknowriad youknowriad force-pushed the update/extract-reusable-post-text-editor branch from 55d6af8 to 39df508 Compare November 13, 2017 09:33
@youknowriad youknowriad merged commit 0d0caf1 into master Nov 13, 2017
@youknowriad youknowriad deleted the update/extract-reusable-post-text-editor branch November 13, 2017 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants