TinyMCE image customization
How can I cu开发者_StackOverflow社区stomize TinyMCE so that I'll be able to choose a css class for a specific image?
you can use the style_formats setting of tinymce to use the style plugin with classes of your own (using content_css setting too)
// Style formats
style_formats: [{
title: 'Styles'
}, {
title: 'Absatz 1',
block: 'p',
classes: 'absatz1',
exact: true
}, {
title: 'Absatz 2',
block: 'p',
classes: 'absatz2',
exact: true
},
精彩评论