python - How do I use javascript in atreal.richfile.preview code in Plone? -


I want to add javascript to the unreal. Richfile.preview Egg How do I do it? In fact, I want to disable copy / paste in the preview viewer, while document / xls / pdf file to be previewed?

In JMI, / mssite / portal_view_customizations / atreal.richfile.preview.interfaces.ipreview -rfpreview at < / P>

Use custom code with javascript:

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title Till: Content = "here / headline" & gt; & Lt; / Heading & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Script type = "text / javascript" & gt; Document.onkeydown = function (e) {if (e.ctrlKey & amp; amp; A.keycod === 65) {return false; } If (e.ctrlKey & amp; ekeykey === 67) {return false; } If (e.ctrlKey & amp; amp; ekeykey === 86) {return false; } Back true; } Document.oncontextmenu = function () {return false; } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body tal: content = "structure view / getpreview" & gt; & Lt; / Body & gt; & Lt; / Html & gt;    

Comments