Commit 982ecdbf authored by Bernhard Fürst's avatar Bernhard Fürst
Browse files

Add plugin code.

parent 4d0a2343
# name: embed-etherpad-lite
# about: Embed Etherpad Lite pads using Onebox.
# version: 1.0
# authors: Bernhard Fürst
# url:
class Onebox::Engine::EtherpadLiteOnebox
include Onebox::Engine
# Try to guess Etherpad Lite links like http(s)://domain.tld/p/pad-id
matches_regexp /^https?:\/\/[^\/]+\/p\/[^\/]+/
# See
def to_html
"<iframe name='embed_readwrite' src='#{@url}?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false' style='border-width:0' frameborder='0' scrolling='no' width='100%' height=600></iframe><br><a href='#{@url}' target='_blank'>Goto this EtherPad</a>"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment