Skip to content

Commit

Permalink
Added a description for the "Classic" editor #2832 (#2919)
Browse files Browse the repository at this point in the history
* Added a description for the "Classic" editor #2832

* Removed undefined "focus" - resolves broken unit test

* 1. removed variable usage as suggested by @aduth
2. Updated description #2832

* Adjusted description of classic text block
  • Loading branch information
Devin Walker authored and aduth committed Oct 12, 2017
1 parent 63cb942 commit 3163539
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions blocks/library/freeform/old-editor.js
Expand Up @@ -5,6 +5,12 @@ import { Component } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { keycodes } from '@wordpress/utils';

/**
* Internal dependencies
*/
import InspectorControls from '../../inspector-controls';
import BlockDescription from '../../block-description';

const { BACKSPACE, DELETE } = keycodes;

function isTmceEmpty( editor ) {
Expand Down Expand Up @@ -160,6 +166,11 @@ export default class OldEditor extends Component {
const { id } = this.props;

return [
<InspectorControls key="inspector">
<BlockDescription>
<p>{ __( 'The classic editor, in block form.' ) }</p>
</BlockDescription>
</InspectorControls>,
<div
key="toolbar"
id={ id + '-toolbar' }
Expand Down

0 comments on commit 3163539

Please sign in to comment.