如何使用重氮主题取消所有tinymce窗口的主题

发布于 2024-12-07 19:18:16 字数 112 浏览 10 评论 0原文

我在 Diazo 中制作了一个漂亮的复杂风格主题,但我不想为所有 TinyMce(弹出)窗口设置主题。

当然有一种巧妙的方法可以使用规则文件来实现它。 有什么建议吗?

谢谢 维托

I made a nice complex style theme in Diazo, but I don't want to theme all the TinyMce (popup) windows.

Surely there is a clever way to make it using the rules file.
Any suggestions?

Thank's
Vito

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

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

发布评论

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

评论(2

时光沙漏 2024-12-14 19:18:16

最简单的方法是确保您的主题具有如下条件:

<theme href="theme.html" css:if-content="#visual-portal-wrapper" />

这样,任何主题都不会应用于不是使用 main_template 呈现的页面(该页面将具有 id 为 Visual-portal-wrapper 的 div)。

马丁

The easiest way is to make sure your theme has a condition like this:

<theme href="theme.html" css:if-content="#visual-portal-wrapper" />

This way, no theme is applied to anything that isn't a page rendered with main_template (which would have a div with id visual-portal-wrapper).

Martin

离笑几人歌 2024-12-14 19:18:16

这里的解决方案是将响应标头添加到 Products.TinyMCE 以关闭主题。请参阅: http://pypi.python.org/pypi/plone.app.theming#disabling-the-theme-for-a-pspecial-view-script-or-template

The solution here is to add response headers to Products.TinyMCE to switch off theming. See: http://pypi.python.org/pypi/plone.app.theming#disabling-the-theme-for-a-particular-view-script-or-template

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