/** This action is documented in wp-admin/edit-form-blocks.php */ do_action( 'enqueue_block_editor_assets' );
'<p>' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '</p>' . '<p>' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '</p>', ) );
/**
* Enqueue control related scripts/styles.
*
* @since 3.4.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*/ publicfunctionenqueue(){ wp_enqueue_media(); }
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 3.4.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*
* @see WP_Customize_Control::to_json()
*/ publicfunctionto_json(){
publicfunctionenqueue_preview_scripts(){}
/**
* Loads the required scripts and styles for the widget control.
*
* @since 4.8.0
*/ publicfunctionenqueue_admin_scripts(){ wp_enqueue_media(); wp_enqueue_script( 'media-widgets' ); }
/**
* Loads the required scripts and styles for the widget control.
*
* @since 4.8.0
*/ publicfunctionenqueue_admin_scripts(){ wp_enqueue_editor(); wp_enqueue_media(); wp_enqueue_script( 'text-widgets' ); wp_add_inline_script( 'text-widgets', sprintf( 'wp.textWidgets.idBases.push( %s );', wp_json_encode($this->id_base ))); wp_add_inline_script( 'text-widgets', 'wp.textWidgets.init();', 'after' ); }
/**
* Outputs the Text widget settings form.
*
* @since 2.8.0
* @since 4.8.0 Form only contains hidden inputs which are synced with JS template.
* @since 4.8.1 Restored original form to be displayed when in legacy mode.
*
* @see WP_Widget_Text::render_control_template_scripts()
* @see _WP_Editors::editor()
*
* @param array $instance Current settings.
*/