如何使用重氮主题取消所有tinymce窗口的主题
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的方法是确保您的主题具有如下条件:
这样,任何主题都不会应用于不是使用 main_template 呈现的页面(该页面将具有 id 为 Visual-portal-wrapper 的 div)。
马丁
The easiest way is to make sure your theme has a condition like this:
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
这里的解决方案是将响应标头添加到 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