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

Editable: Rename the Editable component, RichText component for clarity #4779

Merged
merged 1 commit into from Feb 1, 2018

Conversation

Projects
None yet
5 participants
@youknowriad
Contributor

youknowriad commented Jan 31, 2018

refs #4776

This PR renames the Editable component RichText to clarify that it's meant to be used for Rich Content exclusively and not as a replacement to inputs/textareas.

We still export an Editable component for backwards compatibility with a warning asking people to use RichText instead.

Next step will be to implement a PlainText component and use it in one/two blocks. The blocks where we're currently using TextareaAutosize.

Testing instructions

  • Open the editor
  • Insert different content blocks (paragraph, list, quotes, image with captions...)
  • Check that they still work and look as expected.
constructor() {
super( ...arguments );
// eslint-disable-next-line no-console
console.warn( 'Editable is deprecated use wp.blocks.RichText instead.' );

This comment has been minimized.

@iseulde

iseulde Jan 31, 2018

Member

Minor: this sentence could use a period. :)

This comment has been minimized.

@youknowriad

youknowriad Feb 1, 2018

Contributor

It already use a period?

Edit: Oh! maybe you meant something like that:

"Editable is deprecated, use wp.blocks.RichText instead."

This comment has been minimized.

@iseulde

iseulde Feb 1, 2018

Member

Yes, I did. :) Sorry, should have been more specific :)

@iseulde

Catching some "editable" mentions in README.md, but nothing that doesn't make sense as it's still an editable field. :)

@aduth

This comment has been minimized.

Member

aduth commented Jan 31, 2018

I'd be in favor of this change.

@youknowriad youknowriad referenced this pull request Jan 31, 2018

Merged

Add Editable readme #1832

@youknowriad youknowriad force-pushed the update/rename-editable-rich-text branch from 8b5df6c to 0282eb6 Feb 1, 2018

@youknowriad youknowriad force-pushed the update/rename-editable-rich-text branch from 0282eb6 to 4069064 Feb 1, 2018

@youknowriad youknowriad merged commit f889d27 into master Feb 1, 2018

2 checks passed

codecov/project Absolute coverage decreased by -<.01% but relative coverage increased by +30.99% compared to 321f5c3
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@youknowriad youknowriad deleted the update/rename-editable-rich-text branch Feb 1, 2018

@gziolo

This comment has been minimized.

Member

gziolo commented Feb 1, 2018

This change is important enough to make sure is noticed, cc @mtias @karmatosed.

@iseulde

This comment has been minimized.

Member

iseulde commented Feb 1, 2018

I updated the "Editable" label to "Rich Text".

@zgordon

This comment has been minimized.

zgordon commented Feb 20, 2018

Is Editable still available as a name for backwards compatibility? Or do folks need to switch to RichText right away? Thanks!!!

@youknowriad

This comment has been minimized.

Contributor

youknowriad commented Feb 20, 2018

Is Editable still available as a name for backwards compatibility? Or do folks need to switch to RichText right away? Thanks!!!

It's available and will be removed in like two or three releases ;)

@zgordon

This comment has been minimized.

zgordon commented Feb 20, 2018

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment