You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
642 B

[[block_formats]]
== `+block_formats+`
This option defines the formats to be displayed in the `+blocks+` dropdown toolbar button and the `+blocks+` menu item. Each item in the string should be separated by semi-colons and specified using the form `+title=block+`.
*Type:* `+String+`
*Default value:* `+'Paragraph=p; Heading 1=h1; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6; Preformatted=pre'+`
=== Example: using `+block_formats+`
[source,js]
----
tinymce.init({
selector: 'textarea', // change this value according to your HTML
block_formats: 'Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3'
});
----