您能告诉我是否可以在 Tinymce 中为图像设置多个类吗?现在我在 Tinymce init 函数中有这样的东西:
image_class_list: [
{ title: 'None', value: ''},
{ title: 'Left', value: 'fL'},
{ title: 'Right', value: 'fR'},
{ title: 'Gallery', value: 'gallery'}
],
这允许我从图像对话框的列表中选择一个类。我想设置多个。可能还是不可能?
最佳答案
您确实可以像这样使用多个类:
image_class_list: [
{title: 'None', value: ''},
{title: 'Dog', value: 'dog'},
{title: 'Cat', value: 'cat'},
{title: 'DogCat', value: 'cat dog'}
],
请注意最后一个示例,该示例使用由空格分隔的多个值。
关于javascript - Tinymce 图像的多个类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36011801/