no message

This commit is contained in:
kuaifan 2025-04-07 08:46:09 +08:00
parent 7a275bd802
commit 617e0837c9

View File

@ -319,7 +319,6 @@ export default {
resize: !isFull, resize: !isFull,
convert_urls: false, convert_urls: false,
toolbar_mode: 'sliding', toolbar_mode: 'sliding',
content_css: this.themeName === 'dark' ? 'dark' : 'default',
setup: (editor) => { setup: (editor) => {
editor.ui.registry.addMenuButton('uploadImages', { editor.ui.registry.addMenuButton('uploadImages', {
text: this.$L('图片'), text: this.$L('图片'),
@ -476,6 +475,9 @@ export default {
} }
}, },
}; };
if (!optionInfo.inline) {
optionInfo.content_css = this.themeName === 'dark' ? 'dark' : 'default';
}
if (this.autoSize) { if (this.autoSize) {
optionInfo.plugins.push('autoresize') optionInfo.plugins.push('autoresize')
} }