首页 > 解决方案 > 在 iframe 中调用 Etherpad 的正确格式是什么

问题描述

我正在尝试以这种方式在网页上调用 etherpad。

<iframe src='http://pad.domain/p/PAD_NAME?sessionID=sessionID&authorName=authorName&userName=userName&showChat=false&showLineNumbers=false' width=600 height=400></iframe>

这是在网页上包含 etherpad 的正确方法吗?

当我使用这种方式然后调用 /setHTML API 时,API 所做的更改会保存在 DB 中,但不会反映在 pad 中。

标签: etherpad

解决方案


最后,我像下面这样调用了 etherpad,它工作得非常好。

<iframe src='http://pad.domain/p/PAD_NAME&authorName=authorName&showChat=false&showLineNumbers=false' width=600 height=400></iframe>

此外,当使用唯一的 padID 时,/setHTML API 现在工作正常。可能主要错误是调用 etherpad。


推荐阅读