简体   繁体   English

如何在 Tinymce3.0 中设置默认字体和字体大小?

[英]How to set default Font and Font Size in Tinymce3.0?

Not able to change default font and font size.无法更改默认字体和字体大小。 I have tried different methods as following.我尝试了以下不同的方法。

  1. content_style: "body { font-size: 14pt; font-family: Arial; }"内容样式:“正文{字体大小:14pt;字体系列:Arial;}”
  2. this.getDoc().body.style.fontSize = '14px'; this.getDoc().body.style.fontSize = '14px';

tinymce3.0 问题

I have done a workaround to fix this issue, Please find the following details.我已经做了一个解决方法来解决这个问题,请找到以下详细信息。

Modified the following file and changed title from 'advanced.fontdefault' to 'Font'.修改了以下文件并将标题从“advanced.fontdefault”更改为“Font”。 \tiny_mce\themes\advanced\editor_template.js \tiny_mce\themes\advanced\editor_template.js

tinymce 默认字体标题问题已修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM