I want to use EtherPad (or a clone). My site is running Ruby on Rails. API or local install?

二次信任 提交于 2019-12-05 02:20:47

问题


I'd like to utilize an etherpad interface on my website. Two questions:

1) is there any site with an etherpad api that I could just call remotely? 2) if not, how much trouble is it to install scala and have the two run concurrently?

Thanks


回答1:


Check out http://piratepad.net and http://ietherpad.com

And you can embed those etherpad instances using a simple iframe as suggested here: http://etherpad.com/ep/blog/posts/embedding-etherpad

There doesn't seem to be a proper API yet for more robust interactions.




回答2:


The original etherpad.com has now gone away but at that link there is a list of clones.

The instructions for embedding etherpads seems to have gone away with the rest of etherpad.com but I believe it's as simple as this:

<div id="ep">
<iframe src="http://etherpad.com/foo?fullScreen=1"></iframe>
</div>

Replace "etherpad.com" with whatever clone you're using, "foo" with the name of your pad, and you may or may not want to change that fullScreen=1 to fullScreen=0 (or leave it off altogether).




回答3:


Installing scala might mean a few things:

  • Installing the SDK (i.e. scalac)
  • Installing the runtime

Assuming you mean the runtime, scala runs entirely on the Java Virtual Machine (JVM) so assuming you have 1.5+ JVM installed, you can run scala programs on it easily (Scala just compiles down to bytecode, after all). All a scala program requires is a few JARs on the classpath (scala-library and scala-compiler)




回答4:


Now there is a better solution Etherpad Lite it is easily installable and embedable. See http://etherpad.org



来源:https://stackoverflow.com/questions/2226146/i-want-to-use-etherpad-or-a-clone-my-site-is-running-ruby-on-rails-api-or-lo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!