是的,可以将其设置为false。完整参数列表在文件中wp-includes/class-wp-editor.php
.
这些是$settings
调用时的数组wp_editor( $content, $editor_id, $settings );
:
array(
\'wpautop\' => true,
\'media_buttons\' => true,
\'textarea_name\' => $editor_id,
\'textarea_rows\' => 20,
\'tabindex\' => \'\',
\'tabfocus_elements\' => \':prev,:next\',
\'editor_css\' => \'\',
\'editor_class\' => \'\',
\'teeny\' => false,
\'dfw\' => false,
\'tinymce\' => false, // <-----
\'quicktags\' => true
);
检查源代码以了解每个参数的详细信息。我刚刚用一个元盒做了一个小测试,效果很好。