CMB2_Type_Wysiwyg

CMB wysiwyg field type.

Defined (1)

The class is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/includes/types/CMB2_Type_Wysiwyg.php  
  1. class CMB2_Type_Wysiwyg extends CMB2_Type_Base { 
  2.  
  3. /** 
  4. * Handles outputting a 'wysiwyg' element 
  5. * @since 1.1.0 
  6. * @param array $args Override arguments 
  7. * @return string Form wysiwyg element 
  8. */ 
  9. public function render() { 
  10. $a = $this->parse_args( 'wysiwyg', array( 
  11. 'id' => $this->_id(),  
  12. 'value' => $this->field->escaped_value( 'stripslashes' ),  
  13. 'desc' => $this->_desc( true ),  
  14. 'options' => $this->field->options(),  
  15. ) ); 
  16.  
  17. ob_start(); 
  18. wp_editor( $a['value'], $a['id'], $a['options'] ); 
  19. echo $a['desc']; 
  20.  
  21. return $this->rendered( ob_get_clean() );