• Resolved abhishek kaushik

    (@abhishek-kaushik)


    Hi,

    I have created a custom taxonomy and added cmb2 wysiwyg filed.
    But while creating new terms wysiwyg fields are not being saved but when I am at edit term page and trying to save the wysiwyg. It works.

    $cmb_fields->add_field( [
    		'name'       => 'Name',
    		'id'         => 'wysiwyg_id',
    		'type'       => 'wysiwyg',
    		'desc'      => 'Add desc',
    		'options'    => [
    			'media_buttons' => false,
    			'textarea_name' => 'wysiwyg_id_textarea',
    			'quicktags'     => false,
    			'tinymce'       =>  [
    		'toolbar1'                 => 'bold, italic, blockquote, numlist, bullist, link, unlink',
    		'toolbar2'                 => false,
    		'toolbar3'                 => false,
    		'statusbar'                => false,
    		'table_appearance_options' => false,
    	],
    		],
    	] );
    
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wysiwyg not working while creating terms’ is closed to new replies.