Giter Club home page Giter Club logo

redmine_etherpad's Introduction

What does it do?

This redmine plugin adds a macro in your redmine wikis, which allows the embedding of etherpads. It provides the same result as this hack, but more easily, and without the unsafety of allowing arbitrary html.

Macro: etherpad()

To use, just add {{etherpad(nameOfPad)}} to the issue/wiki/page in which to embed a pad.

Requires at least one argument, the name of the etherpad to embed.

Other arguments should be listed in “key=val” format, and include:

  • width: the width of the iframe (e.g. “640px”, “100%”), default=640px.
  • height: the height of the iframe (e.g. (“800px”), default=480px.
  • showControls: true/false (default true)
  • showChat: true/false (default true)
  • showLineNumbers: true/false (default false)
  • useMonospaceFont: true/false (default false)
  • noColors: true/false (default false)

Example:

{{etherpad(myHotPad, useMonospaceFont=true, width=100%)}}

Installation

On Redmine 1.x, Navigate to:
[redmine_install_path]/vendors/plugins
On Redmine >= 2.1, navigate to:
[redmine_install_path]/plugins

Clone this repo.
git clone git://github.com/yourcelf/redmine_etherpad.git

If you are using redmine 1.x, checkout the redmine_1.x branch:

git checkout -b redmine_1.x origin/redmine_1.x

For redmine 2.1+, just use master.

Configuration

Add an “etherpad” configuration section to “config/configuration.yml” in which you define the etherpad host to use:

default:
  etherpad:
    host: https://etherpad.example.com

You can also list any of the embed arguments to replace defaults, for example:

default:
  etherpad:
    host: https://etherpad.example.com
    showLineNumbers: true
    useMonospaceFont: true

redmine_etherpad's People

Contributors

yourcelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redmine_etherpad's Issues

Error executing the etherpad macro

@yourcelf
Hi, if im trying to use your plugin i get following error:

Error executing the etherpad macro (undefined method `hash_to_querystring' for #<#Class:0x00000812a76880:0x00000810efb718>)

am i missing somthing?

Environment:
Redmine version 2.3.2.stable
Ruby version 1.9.3-p448 (2013-06-27) [amd64-freebsd9]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
redmine_etherpad 0.0.1

Access rights

Hi,
Any thoughts on how to harmonize Redmine access rights to the pads? Say for example that I have a Redmine project Foo that is restricted to only a few users. How can I create a pad on my own server and allow access to this pad only to authorized Redmine users? Since an iframe is directly injected to the Redmine HTML, I see no way to restrict access to the Etherpad server.

Maybe the use of random pad names could do it?

Has anyone given a thought about this issue in general?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.