Skip to content

Commit

Permalink
Added a description for the "Classic" editor WordPress#2832
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinWalker committed Oct 8, 2017
1 parent 27cd1f5 commit cb1d7a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions blocks/library/freeform/old-editor.js
Original file line number Diff line number Diff line change
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 @@ -159,7 +165,16 @@ export default class OldEditor extends Component {
render() {
const { id } = this.props;

const inspectorControls = focus && (
<InspectorControls key="inspector">
<BlockDescription>
<p>{ __( 'The Class Editor block allows you add content using a WYSIWYG editor.' ) }</p>
</BlockDescription>
</InspectorControls>
);

return [
inspectorControls,
<div
key="toolbar"
id={ id + '-toolbar' }
Expand Down

0 comments on commit cb1d7a9

Please sign in to comment.