关于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; }'
});