开发者

TinyMCE image customization

开发者 https://www.devze.com 2023-02-01 13:47 出处:网络
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 class

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
},
0

精彩评论

暂无评论...
验证码 换一张
取 消