Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tinymce4_rte
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Huber
tinymce4_rte
Commits
ec1c706b
Commit
ec1c706b
authored
10 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Configuration/TinyMce/standard.js
+46
-0
46 additions, 0 deletions
Configuration/TinyMce/standard.js
with
46 additions
and
0 deletions
Configuration/TinyMce/standard.js
+
46
−
0
View file @
ec1c706b
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment