开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜