CKEditor 初始调整 - 字体大小

发布于 2024-10-07 10:55:15 字数 268 浏览 0 评论 0原文

我在网页上使用 CKEditor。 相当令人印象深刻,但我有一些非常烦人的问题,我希望你能帮助我超车。

1)当编辑器由Javascript创建时,默认字体大小(我猜是12px)对于my7的需要来说太小了。当用户开始在新文档上打字时,我希望字体大小为 18px。

2)我可以通过选择文本块然后使用字体大小组合来更改文本块的字体大小。我不能做的是设置字体大小的组合(即 30px),然后以该大小键入。例如,我想我可以在 Microsoft Word 上执行后者。

谢谢, 担

I am using CKEditor on a webpage.
Quite impressive but I have few very annoying issues I hope you can help me overtake.

1) When the editor is created by Javascript the default font size (12px, I guess) is too small for my7 needs. I would like the font size to be 18px as the user starts typing on a new document.

2) I can change the font size of a block of text by selecting the block of text and then using the combo for the font size. What I can't do is set the combo for the font size (i.e. to 30px) and then type at that size. I think I can do the latter on Microsoft word, for example.

Thanks,
Dan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甩你一脸翔 2024-10-14 10:55:15

很简单,

打开“ckeditor/content.css”,编辑这部分:

.cke_editable
{
    font-size: 21px;
    line-height: 1.6em;
    font-family:'me_quran' //example font
}

Pretty easy guys,

open 'ckeditor/content.css', edit this part :

.cke_editable
{
    font-size: 21px;
    line-height: 1.6em;
    font-family:'me_quran' //example font
}
烟雨扶苏 2024-10-14 10:55:15

如果您使用默认样式,则必须在以下位置更改它:

Providers\HtmlEditorProviders\Fck\FCKeditor\editor\css\fck_editorarea.css

只需更改样式:

body, td
{
 font-family: Arial, Verdana, Sans-Serif;
 font-size: 12px;
}

这有帮助吗?

来源

If you are using the default styles, then you must change it at:

Providers\HtmlEditorProviders\Fck\FCKeditor\editor\css\fck_editorarea.css

Just change the style:

body, td
{
 font-family: Arial, Verdana, Sans-Serif;
 font-size: 12px;
}

Does thi help?

Source

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文