GithubHelp home page GithubHelp logo

dtygel / tinymce-etherpadlite-embed Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 184 KB

Embed a collaborative text pad (Etherpad Lite - http://etherpad.org/) with a simple button in Tinymce (v3.x)

License: GNU Affero General Public License v3.0

CSS 11.84% JavaScript 88.16%

tinymce-etherpadlite-embed's Introduction

TinyMCE Etherpad-lite Plug-in

Button to insert a textpad of etherpad-lite into TinyMCE

Installation

  • Extract the zip to the TinyMCE plug-ins folder.
  • Add etherpad-lite to the plug-ins configuration.
  • Add etherpad-lite to the theme_advanced_buttons_n configuration.
  • Add configuration parameters of the plugin (see the explanations below)

Parameters

  • plugin_etherpadlite_padServerUrl (Default: "") The URL of the EtherPad Lite server. The plugin won't work without a defined server

  • plugin_etherpadlite_padNamesPrefix (Default: "") The prefix that will be added automatically to the pad that will be created. It's important to think of a specific prefix (like for example the url of your website), so that the pads will be unique. The names of the created pads will be numbered like this: padNamesPrefix1, padNamesPrefix2, etc. Each time one user clicks at "insert pad", a new number will be generated, ordered.

  • plugin_etherpadlite_padWidth (Default: 100%) The width of the pad that will be inserted

  • plugin_etherpadlite_padHeight (Default: 400px) The height of the pad that will be inserted

Simple usage example

tinyMCE.init({ mode : "textareas", theme : "advanced", plugins : "etherpadlite", theme_advanced_buttons2 : "bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,table,etherpadlite,separator,cleanup", content_css : "css/content.css",

// Parameters for etherpadlite Plugin:
plugin_etherpadlite_padServerUrl: "http://pad.textb.org/p/", 
plugin_etherpadlite_padNamesPrefix : "mypads-", 

});

NOTE

Here is an example of an existing pad server: http://pad.textb.org/p/

tinymce-etherpadlite-embed's People

Contributors

dtygel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

coletivoeita

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.