-
-
Notifications
You must be signed in to change notification settings - Fork 3k
How to use Etherpad Lite with jQuery
The Etherpad Lite jQuery plugin easily allows you to add a pad from Etherpad in a web page. It injects the pad contents into a div using iframes.
Include jQuery.js, include etherpad.js, assign a pad to a div. If you get confused look at the examples in index.html
Example #1: Sets the pad id and puts the pad in the div { $('#examplePadBasic').pad({'padId':'test'}); }
Example #2: Sets the pad id, some more parameters and puts the pad in the div { $('#examplePadBasic').pad({'padId':'test','showChat':'true'}); }
Available options and parameters { 'host' : 'http://beta.etherpad.org', // the host and port of the Etherpad instance, by default the foundation will host your pads for you 'baseUrl' : '/p/', // The base URL of the pads 'showControls' : false, // If you want to show controls IE bold, italic etc. 'showChat' : false, // If you want to show the chat button or not 'showLineNumbers' : false, // If you want to show the line numbers or not 'userName' : 'unnamed' // The username you want to pass to the pad. }
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
- Contribution guidelines
- Installing Etherpad
- Deploying Etherpad as a service
- Deploying Etherpad on CloudFoundry
- Deploying Etherpad on Heroku
- Running Etherpad on Phusion Passenger
- Putting Etherpad behind a reverse Proxy (HTTPS/SSL)
- How to setup Etherpad on Ubuntu 12.04 using Ansible
- Migrating from old Etherpad to Etherpad
- Using Etherpad with MySQL
- Customizing the Etherpad web interface
- Enable import/export functionality with AbiWord
- Getting a list of all pads
- Providing encrypted web access to Etherpad using SSL certificates
- Optimizing Etherpad performance including faster page loads
- Getting to know the tools and scripts in the Etherpad /bin/ folder
- Embedding a pad using the jQuery plugin
- Using Embed Parameters
- Integrating Etherpad in a third party app (Drupal, MediaWiki, WordPress, Atlassian, PmWiki)
- HTTP API client libraries