简体   繁体   中英

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

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

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.

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).

Installing scala might mean a few things:

  • Installing the SDK (ie 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 )

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM