'; echo ''; return ob_get_clean(); } /** * Normalize parameters for field. * * @param array $field Field parameters. * @return array */ public static function normalize( $field ) { $field = parent::normalize( $field ); $field = wp_parse_args( $field, [ 'raw' => false, 'options' => [], ] ); $field['options'] = wp_parse_args( $field['options'], [ 'editor_class' => 'rwmb-wysiwyg', 'dfw' => true, // Use default WordPress full screen UI. ] ); // Keep the filter to be compatible with previous versions. $field['options'] = apply_filters( 'rwmb_wysiwyg_settings', $field['options'] ); return $field; } }