{ createInterpolateElement(
__(
- 'Customize the last part of the URL. Learn more.'
+ 'Customize the last part of the Permalink.Learn more.'
),
{
+ span: ,
a: (
+
) }
{ isEditable && (
-
- /
-
- }
- suffix={
-
-
-
- }
- label={ __( 'Link' ) }
- hideLabelFromVision
- value={ forceEmptyField ? '' : postSlug }
- autoComplete="off"
- spellCheck="false"
- type="text"
- className="editor-post-url__input"
- onChange={ ( newValue ) => {
- editPost( { slug: newValue } );
- // When we delete the field the permalink gets
- // reverted to the original value.
- // The forceEmptyField logic allows the user to have
- // the field temporarily empty while typing.
- if ( ! newValue ) {
- if ( ! forceEmptyField ) {
- setForceEmptyField( true );
- }
- return;
+ <>
+
+ /
+
}
- if ( forceEmptyField ) {
- setForceEmptyField( false );
+ suffix={
+
+
+
}
- } }
- onBlur={ ( event ) => {
- editPost( {
- slug: cleanForSlug( event.target.value ),
- } );
- if ( forceEmptyField ) {
- setForceEmptyField( false );
- }
- } }
- help={
+ label={ __( 'Slug' ) }
+ hideLabelFromVision
+ value={ forceEmptyField ? '' : postSlug }
+ autoComplete="off"
+ spellCheck="false"
+ type="text"
+ className="editor-post-url__input"
+ onChange={ ( newValue ) => {
+ editPost( { slug: newValue } );
+ // When we delete the field the permalink gets
+ // reverted to the original value.
+ // The forceEmptyField logic allows the user to have
+ // the field temporarily empty while typing.
+ if ( ! newValue ) {
+ if ( ! forceEmptyField ) {
+ setForceEmptyField( true );
+ }
+ return;
+ }
+ if ( forceEmptyField ) {
+ setForceEmptyField( false );
+ }
+ } }
+ onBlur={ ( event ) => {
+ editPost( {
+ slug: cleanForSlug(
+ event.target.value
+ ),
+ } );
+ if ( forceEmptyField ) {
+ setForceEmptyField( false );
+ }
+ } }
+ aria-describedby={ postUrlSlugDescriptionId }
+ />
+