如何覆盖文档查看器图标以在Plone中以全屏模式查看?

时间:2021-06-19 07:23:26

Where exactly can I override the collective.documentviewer code to disable the icon to view the document full screen in another window? Actually when I only click on the 'customize' button for the documentviewer in zcml it throws up an exception for 'widget', even without addition of a letter of code there and the viewer crashes.I am using version 2.2.1 for collective.documentviewer and Plone 4.1.4 on linux. Please guide.

我可以在哪里覆盖collective.documentviewer代码来禁用图标以在另一个窗口中全屏查看文档?实际上,当我只在zcml中单击documentviewer的'customize'按钮时,它会为'widget'抛出一个异常,即使没有添加代码和查看器崩溃。我正在使用版本2.2.1进行集合。 linux上的documentviewer和Plone 4.1.4。请指导。

1 个解决方案

#1


1  

You need to carefully blank the <div> section for 'View Document in Fullscreen' in this javascript: collective.documentviewer-2.2.1 py2.6.egg/collective/documentviewer/resources/assets/viewer.js

您需要在此javascript中仔细删除“以全屏查看文档”的

部分:collective.documentviewer-2.2.1 py2.6.egg / collective / documentviewer / resources / assets / viewer.js

#1


1  

You need to carefully blank the <div> section for 'View Document in Fullscreen' in this javascript: collective.documentviewer-2.2.1 py2.6.egg/collective/documentviewer/resources/assets/viewer.js

您需要在此javascript中仔细删除“以全屏查看文档”的

部分:collective.documentviewer-2.2.1 py2.6.egg / collective / documentviewer / resources / assets / viewer.js