Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/25.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
TinyMCE:Don';t显示h1在";styleselect";工具栏上_Tinymce - Fatal编程技术网

TinyMCE:Don';t显示h1在";styleselect";工具栏上

TinyMCE:Don';t显示h1在";styleselect";工具栏上,tinymce,Tinymce,我正在使用Tinymce作为我博客的编辑。我根本不使用H1来写我的博客(因为它已经预定义为静态元素),所以我想从工具栏“styleselect(format)>标题”中删除H1。可能吗 inymce.init({ selector: '.content_textarea', menubar: false, toolbar: 'undo redo | styleselect | bold italic | numlist bullist | link image

我正在使用Tinymce作为我博客的编辑。我根本不使用H1来写我的博客(因为它已经预定义为静态元素),所以我想从工具栏“styleselect(format)>标题”中删除H1。可能吗

inymce.init({
    selector: '.content_textarea',
    menubar: false,     
    toolbar: 'undo redo | styleselect | bold italic | numlist bullist | link image | codesample source code | emoticons' 
});

谢谢。

如果您没有使用“工具栏”:

tinymce.init({
  selector: 'textarea',  // change this value according to your html
    // Define your own styles
    style_formats: [
    {title: 'Heading 2', format: 'h2'},
    {title: 'Heading 3', format: 'h3'},
    {title: 'Heading 4', format: 'h4'},
    {title: 'Heading 5', format: 'h5'},
    {title: 'Heading 6', format: 'h6'},
    {title: 'Normal', block: 'div'}
    ],
});
tinymce.init({
  selector: 'textarea',  // change this value according to your html
  toolbar: 'undo redo | formatselect | bold italic | link image',
  // Define your own styles
  block_formats: 'Paragraph=p; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6'
});
如果您正在使用“工具栏”:

tinymce.init({
  selector: 'textarea',  // change this value according to your html
    // Define your own styles
    style_formats: [
    {title: 'Heading 2', format: 'h2'},
    {title: 'Heading 3', format: 'h3'},
    {title: 'Heading 4', format: 'h4'},
    {title: 'Heading 5', format: 'h5'},
    {title: 'Heading 6', format: 'h6'},
    {title: 'Normal', block: 'div'}
    ],
});
tinymce.init({
  selector: 'textarea',  // change this value according to your html
  toolbar: 'undo redo | formatselect | bold italic | link image',
  // Define your own styles
  block_formats: 'Paragraph=p; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6'
});

如果您没有使用“工具栏”:

tinymce.init({
  selector: 'textarea',  // change this value according to your html
    // Define your own styles
    style_formats: [
    {title: 'Heading 2', format: 'h2'},
    {title: 'Heading 3', format: 'h3'},
    {title: 'Heading 4', format: 'h4'},
    {title: 'Heading 5', format: 'h5'},
    {title: 'Heading 6', format: 'h6'},
    {title: 'Normal', block: 'div'}
    ],
});
tinymce.init({
  selector: 'textarea',  // change this value according to your html
  toolbar: 'undo redo | formatselect | bold italic | link image',
  // Define your own styles
  block_formats: 'Paragraph=p; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6'
});
如果您正在使用“工具栏”:

tinymce.init({
  selector: 'textarea',  // change this value according to your html
    // Define your own styles
    style_formats: [
    {title: 'Heading 2', format: 'h2'},
    {title: 'Heading 3', format: 'h3'},
    {title: 'Heading 4', format: 'h4'},
    {title: 'Heading 5', format: 'h5'},
    {title: 'Heading 6', format: 'h6'},
    {title: 'Normal', block: 'div'}
    ],
});
tinymce.init({
  selector: 'textarea',  // change this value according to your html
  toolbar: 'undo redo | formatselect | bold italic | link image',
  // Define your own styles
  block_formats: 'Paragraph=p; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6'
});