How to use @wordpress/edit-post - 5 common examples

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 Automattic / wp-calypso / client / gutenboarding / components / header / index.tsx View on Github external
aria-label={ NO__( 'Document tools' ) }
				aria-orientation="horizontal"
				className="gutenboarding__header-toolbar"
				role="toolbar"
			>
			<div>
				<button>
					{ NO__( 'Continue' ) }
				</button>
				
			</div>
		
	);
	/* eslint-enable wpcalypso/jsx-classname-namespace */
}
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 &amp;&amp; __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 &amp;&amp; __DEV__ ) {
			initialData = initialHtml;
		}
		if ( initialTitle === undefined ) {
			initialTitle = 'Welcome to Gutenberg!';
		}
		const Editor = require( '@wordpress/edit-post' ).Editor;
		return (
			
		);
	}
}
github wordpress-mobile / gutenberg-mobile / src / index.js View on Github external
constructor( props ) {
		super( props );
		setupLocale( props.locale, props.translations );
		setupApiFetch();
		require( '@wordpress/edit-post' ).initializeEditor();
	}
github WordPress / gutenberg / packages / react-native-editor / src / index.js View on Github external
constructor( props ) {
		super( props );
		setupLocale( props.locale, props.translations );
		require( '@wordpress/edit-post' ).initializeEditor();
	}

@wordpress/edit-post

Edit Post module for WordPress.

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

Package Health Score

95 / 100
Full package analysis