How to use the @wordpress/edit-post.Editor function in @wordpress/edit-post

To help you get started, we’ve selected a few @wordpress/edit-post examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wordpress-mobile / gutenberg-mobile / src / index.js View on Github external
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 (
			
		);
	}
}
github WordPress / gutenberg / packages / react-native-editor / src / index.js View on Github external
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 (
			
		);
	}
}

@wordpress/edit-post

Edit Post module for WordPress.

GPL-2.0-or-later
Latest version published 2 days ago

Package Health Score

95 / 100
Full package analysis