Переглянути джерело

去掉富文本p标签上下间距

natasha 1 рік тому
батько
коміт
f8cfee6ff7
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/components/common/RichText.vue

+ 1 - 0
src/components/common/RichText.vue

@@ -117,6 +117,7 @@ export default {
         language: 'zh_CN',
         language: 'zh_CN',
         skin_url: `${process.env.BASE_URL}tinymce/skins/ui/oxide`,
         skin_url: `${process.env.BASE_URL}tinymce/skins/ui/oxide`,
         content_css: `${process.env.BASE_URL}tinymce/skins/content/${this.isHasSpace ? 'index-nospace' : 'index'}.css`,
         content_css: `${process.env.BASE_URL}tinymce/skins/content/${this.isHasSpace ? 'index-nospace' : 'index'}.css`,
+        content_style: 'p { margin:0 }', // 去掉p标签上下间距
         min_height: this.height,
         min_height: this.height,
         width: '100%',
         width: '100%',
         autoresize_bottom_margin: 0,
         autoresize_bottom_margin: 0,