在网页中嵌入可编辑的Google文档电子表格 [英] Embed editable Google Doc Spreadsheet in web page
问题描述
我正在尝试通过包含Google Doc电子表格的iframe在django模板中嵌入live电子表格。我希望电子表格可以从嵌入的网页上编辑。我从我的Google文档电子表格中剪切并粘贴iframe标记,并将其放入我的网页。
I am trying to embed a "live" spreadsheet in a django template via an iframe containing a Google Doc spreadsheet. I want the spreadsheet to be editable from the web page where it is embeded. I cut and paste the iframe markup from one of my Google Docs spreadsheet and put it into my web page.
<iframe width='800' height='700' frameborder='0'
src='https://docs.google.com/spreadsheet/pub?
key=0AhfnV_dHuG5tdFFzdDRMMnRkWlVEbE9HZ1ZvUnFpcUE&
output=html&widget=true'></iframe>
这将显示电子表格,并反映电子表格中的更改,但不可编辑。如何使其可以从网页编辑?
This displays the spreadsheet and also reflect the changes in the spreadsheet but is not editable. How do I make it editable from the web page?
推荐答案
问题是Google文档中的发布到网络给出了您是电子表格的不可编辑版本。 (所以这不是一个django问题。)
The problem is that the "publish to web" in Google Docs gives you a non-editable version of the spreadsheet. (So this is not really a django problem.)
你需要做分享,在谁有访问权限中选择有链接的人 ,然后选择无登录的任何人都可以编辑。
然后使用共享链接作为src =值。
You will need to do "share", select in "Who has access" that "Anyone with a link" does, and select that Anyone with no sign-in can edit. Then use the sharing link as the src= value.
这篇关于在网页中嵌入可编辑的Google文档电子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!