0

Mezzanine is looking good and working well but I'm having trouble when I edit some blog posts and pages because the tinymce edit window displays in its own style using a very small font. I need it to be at least roughly WYSIWYG.

Following the documentation for django_tinymce and for tiny mce, I set up my settings thus:

TINYMCE_DEFAULT_CONFIG = {'theme': "simple",
                          'relative_urls': False,
                          'content_css': ','.join([os.path.join(STATIC_URL, path) for path in [
                              "css/animate.css",
                              "css/bootstrap.min.css",
                              "css/font-awesome.min.css",
                              "css/jquery.bxslider.css",
                              "css/main.css",
                              "css/mezzanine.css",
                              "css/bootstrap-theme.css",
                              "css/custom-styles.css"]]),
                          'theme_advanced_font_sizes': "10px,12px,13px,14px,16px,18px,20px",
                          'font_size_style_values': "10px,12px,13px,14px,16px,18px,20px"}

This has no effect. I'm not sure how to dig in and see what is going on. The above css files are all available when I type in the generated urls.

4

1 回答 1

3

Mezzanine 和 django_tinymce 彼此无关 - 大概您正在配置甚至没有安装的软件。

来自夹层文档:

如果您只想自定义其 JavaScript 设置中指定的 TinyMCE 选项,您可以通过 TINYMCE_SETUP_JS 设置来实现,该设置允许您指定指向您自己的 TinyMCE 设置 JavaScript 文件的 URL。

http://mezzanine.jupo.org/docs/admin-customization.html#wysiwyg-editor

不像 django-tinymce 那样直接,但你可以获得相同的结果。

另请注意,样式(例如提到的小字体)已经在 Mezzanine 的开发版本中进行了更新,因此如果您针对它进行构建,您甚至可能不需要配置:

https://github.com/stephenmcd/mezzanine/commit/6dff64bf058ac0e83c3c313b4167f8bbd1ac9560

于 2014-04-07T06:03:13.587 回答