【TinyMce】关于TinyMce中内容编辑器p标签行间距过大的调整


关于TinyMce中内容编辑器p标签行间距过大的调整

在配置项中设置content_style

tinymce.init({
    ...
    content_style: "p {margin-block: 0em !important}",
    ...
})

官方文档

tinymce.init({
selector: 'textarea',  // change this value according to your HTML
content_style: 'div { margin: 10px; border: 5px solid red; padding: 3px; } ' +
    '.blue { color: blue; } .red { color: red; }'
});

文章作者: zxc
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 zxc !
 上一篇
【hexo】hexo创建博客时创建对应文件夹 【hexo】hexo创建博客时创建对应文件夹
hexo创建博客时创建对应文件夹_config.yml文件中 post_asset_folder: false # 创建文章时自动创建对应的文件夹
2021-02-19
下一篇 
【SpringBoot】IDEA启动SpringBoot项目报错Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer 【SpringBoot】IDEA启动SpringBoot项目报错Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
IDEA启动SpringBoot项目报错Failed to introspect annotated报错信息2021-02-05 16:08:28.728 ERROR 1676 — [ main] o.s.boot.Sp
2021-02-05 zxc
  目录