How to use the @wordpress/editor.withFontSizes function in @wordpress/editor

To help you get started, we’ve selected a few @wordpress/editor 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 / jetpack / extensions / blocks / testimonial / edit.js View on Github external
value={ attributes.title }
										onChange={ this.onChangeTitle }
										placeholder={ 'Write title…' }
										wrapperClassName="wp-block-jetpack-testimonial__title"
									/>
								) }
							
						) }
					
				
			
		);
	}
}

const TestimonialEdit = compose( [ withFontSizes( 'fontSize' ) ] )( TestimonialBlock );

export default TestimonialEdit;
github WordPress / gutenberg / core-blocks / paragraph / edit.js View on Github external
} );
					} }
					onSplit={ this.splitBlock }
					onMerge={ mergeBlocks }
					onReplace={ this.onReplace }
					onRemove={ () => onReplace( [] ) }
					placeholder={ placeholder || __( 'Add text or type / to add content' ) }
				/>
			
		);
	}
}

const ParagraphEdit = compose( [
	withColors( 'backgroundColor', { textColor: 'color' } ),
	withFontSizes( 'fontSize' ),
	applyFallbackStyles,
] )( ParagraphBlock );

export default ParagraphEdit;