TinyMCE-更改默认背景颜色

时间:2020-10-27 13:53:44

标签: jquery css tinymce

我正在使用TinyMCE编辑器。 一切正常,但是当我保存textarea编辑器的内容时​​,它会使用默认的background-color:#fff保存该内容,而当我在非白色背景色的页面上显示该内容时,则显示为:

enter image description here

我正在使用TinyMCE的初始化:

tinymce.init({
selector: '.full-featured',
plugins: 'searchreplace autolink directionality visualblocks visualchars image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern help',
toolbar: 'formatselect | bold italic strikethrough forecolor backcolor permanentpen formatpainter | link image media pageembed | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent | removeformat | addcomment',
height: 400,
image_caption: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt 42pt 48pt",
font_formats: "",
invalid_styles: 'margin margin-top margin-right margin-bottom margin-left width font-family'
});

是否可以为保存的每个TinyMCE内容设置默认的透明背景颜色?

谢谢。

0 个答案:

没有答案