Skip to content

Commit

Permalink
Rename Editable component references to RichText.
Browse files Browse the repository at this point in the history
The Editable component was deprecated.
  • Loading branch information
bradyvercher committed Feb 9, 2018
1 parent 2f93988 commit e86ca72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions block.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function( blocks, components, element, i18n, _ ) {
var __ = i18n.__;
var el = element.createElement;
var Editable = blocks.Editable;
var RichText = blocks.RichText;
var InspectorControls = blocks.InspectorControls;
var SelectControl = components.SelectControl;
var TextareaControl = components.TextareaControl;
Expand Down Expand Up @@ -172,7 +172,7 @@
var attributeName = token.replace( /{|}/g, '' );
var attributeProps = attributeMap[ attributeName ];

return el( Editable, {
return el( RichText, {
key: attributeName,
wrapperClassName: 'vcard__' + attributeName.replace( '_', '-' ) + '-wrapper',
tagName: 'span',
Expand Down
2 changes: 1 addition & 1 deletion editor.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-cedaro-address .blocks-editable {
.wp-block-cedaro-address .blocks-rich-text {
display: inline-block;
}

Expand Down

0 comments on commit e86ca72

Please sign in to comment.