Skip to content
Snippets Groups Projects
Commit ec1c706b authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Add an example for the style_formats configuration option

parent 92bae649
No related branches found
No related tags found
No related merge requests found
...@@ -14,4 +14,50 @@ tinymce.init({ ...@@ -14,4 +14,50 @@ tinymce.init({
external_plugins: { external_plugins: {
typo3filemanager: 'EXT:tinymce4_rte/Resources/Public/Plugins/Typo3FileManager/typo3filemanager.min.js' typo3filemanager: 'EXT:tinymce4_rte/Resources/Public/Plugins/Typo3FileManager/typo3filemanager.min.js'
} }
// Example for adding/changing style formats
// ,style_formats: [
// {
// title: 'Headers', items: [
// {title: 'Header 2', block: 'h2'},
// {title: 'Header 3', block: 'h3'},
// {title: 'Header 4', block: 'h4'}
// ]
// },
// {
// title: 'Inline', items: [
// {title: 'Bold', icon: "bold", inline: 'strong'},
// {title: 'Italic', icon: "italic", inline: 'em'},
// {title: 'Underline', icon: "underline", inline: 'span', styles: {'text-decoration': 'underline'}},
// {title: 'Strikethrough', icon: "strikethrough", inline: 'span', styles: {'text-decoration': 'line-through'}},
// {title: 'Superscript', icon: "superscript", inline: 'sup'},
// {title: 'Subscript', icon: "subscript", inline: 'sub'},
// {title: 'Code', icon: "code", inline: 'code'}
// ]
// },
// {
// title: 'Blocks', items: [
// {title: 'Paragraph', block: 'p'},
// {title: 'Blockquote', block: 'blockquote'},
// {title: 'Div', block: 'div', format: 'greenBox'},
// {title: 'Pre', block: 'pre'}
// ]
// },
// {
// title: 'Alignment', items: [
// {title: 'Left', icon: "alignleft", block: 'div', styles: {'text-align': 'left'}},
// {title: 'Center', icon: "aligncenter", block: 'div', styles: {'text-align': 'center'}},
// {title: 'Right', icon: "alignright", block: 'div', styles: {'text-align': 'right'}}
// ]
// }
// ],
// formats: {
// greenBox: {
// block: 'div',
// wrapper: 1,
// remove: 'all',
// classes: 'box-green'
// }
// }
}); });
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment