Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html cmb2 tinymce菜单栏未显示_Html_Wordpress_Tinymce - Fatal编程技术网

Html cmb2 tinymce菜单栏未显示

Html cmb2 tinymce菜单栏未显示,html,wordpress,tinymce,Html,Wordpress,Tinymce,我使用CMB2允许前端提交使用自定义帖子类型。代码运行良好,但问题是它不支持菜单栏。有文本区、提交按钮和标题,但菜单栏不显示。有什么问题吗 下面是我的代码: $cmb->add_field( array( 'name' => __( 'New Post Content', 'wds-post-submit' ), 'id' => 'submitted_post_content', 'type' => 'wysiwyg',

我使用CMB2允许前端提交使用自定义帖子类型。代码运行良好,但问题是它不支持菜单栏。有文本区、提交按钮和标题,但菜单栏不显示。有什么问题吗

下面是我的代码:

$cmb->add_field( array(
    'name'    => __( 'New Post Content', 'wds-post-submit' ),
    'id'      => 'submitted_post_content',
    'type'    => 'wysiwyg',
    'options' => array(
    'wpautop' => true, // use wpautop?
    'media_buttons' => true, // show insert/upload button(s)
    'textarea_name' => $editor_id, // set the textarea name to something different, square brackets [] can be used here
    'textarea_rows' => get_option('default_post_edit_rows', 10), // rows="..."
    'tabindex' => true,
    'editor_css' => '', // intended for extra styles for both visual and HTML editors buttons, needs to include the `<style>` tags, can use "scoped".
    'editor_class' => '', // add extra class(es) to the editor textarea
    'teeny' => false, // output the minimal editor config used in Press This
    'dfw' => false, // replace the default fullscreen with DFW (needs specific css)
    'tinymce' => array(
        'menubar' => true;

    ), // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
    'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
),
) );
$cmb->add_字段(数组)(
'name'=>\('newpost Content','wds Post submit'),
“id'=>“已提交帖子内容”,
'类型'=>'所见即所得',
“选项”=>数组(
'wpautop'=>true,//是否使用wpautop?
“媒体按钮”=>true,//显示插入/上载按钮
'textarea_name'=>$editor_id,//将textarea名称设置为其他名称,此处可以使用方括号[]
'textarea_rows'=>get_选项('default_post_edit_rows',10),//rows=“…”
“tabindex”=>true,
'editor_css'=>'',//用于视觉和HTML编辑器按钮的额外样式,需要包含``标记,可以使用“作用域”。
'editor_class'=>'',//向编辑器文本区域添加额外的类
'teeny'=>false,//输出此按钮中使用的最小编辑器配置
'dfw'=>false,//用dfw替换默认全屏(需要特定css)
“tinymce”=>数组(
“菜单栏”=>true;
),//load TinyMCE,可用于使用数组()将设置直接传递给TinyMCE
“quicktags”=>true//load quicktags可用于使用数组()将设置直接传递给quicktags
),
) );

有点晚,但是:更改

“菜单栏”=>true

“菜单栏”=>正确