How to use the @wordpress/rich-text.__unstableIsListRootSelected function in @wordpress/rich-text

To help you get started, we’ve selected a few @wordpress/rich-text 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 / gutenberg / packages / block-library / src / list / edit.js View on Github external
onClick() {
								onChange( changeListType( value, { type: 'ol' } ) );

								if ( isListRootSelected( value ) ) {
									setAttributes( { ordered: true } );
								}
							},
						},
github WordPress / gutenberg / packages / block-editor / src / components / rich-text / list-edit.native.js View on Github external
onClick() {
						onChange( changeListType( value, { type: 'ol' } ) );

						if ( isListRootSelected( value ) ) {
							onTagNameChange( 'ol' );
						}
					},
				},
github WordPress / gutenberg / packages / block-editor / src / components / rich-text / list-edit.js View on Github external
onClick() {
							onChange( changeListType( value, { type: 'ul' } ) );

							if ( isListRootSelected( value ) ) {
								onTagNameChange( 'ul' );
							}
						},
					},