Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { initialHtmlModeEnabled } = this.props;
let initialData = this.props.initialData;
let initialTitle = this.props.initialTitle;
let postType = this.props.postType;
if ( initialData === undefined && __DEV__ ) {
initialData = initialHtml;
}
if ( initialTitle === undefined ) {
initialTitle = 'Welcome to Gutenberg!';
}
if ( postType === undefined ) {
postType = 'post';
}
const Editor = require( '@wordpress/edit-post' ).Editor;
return (
);
}
}
render() {
const { initialHtmlModeEnabled } = this.props;
let initialData = this.props.initialData;
let initialTitle = this.props.initialTitle;
if ( initialData === undefined && __DEV__ ) {
initialData = initialHtml;
}
if ( initialTitle === undefined ) {
initialTitle = 'Welcome to Gutenberg!';
}
const Editor = require( '@wordpress/edit-post' ).Editor;
return (
);
}
}