From c1ba9ea804f1a6074dcc69d888e00681947fd13f Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 1 Nov 2014 01:06:27 +0000 Subject: [PATCH 1/7] add rtl support --- README.md | 3 ++- etherpad.jquery.json | 2 +- index.html | 1 + js/etherpad.js | 24 +++++++++++++----------- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 658a63f..33b3b39 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ The Etherpad jQuery Plugin easily allows you to embed and access a pad from Ethe 'width' : 100, // The width of the embedded IFrame 'height' : 100, // The height of the embedded IFrame 'border' : 0, // The width of the border (make sure to append px to a numerical value) -'borderStyle' : 'solid' // The CSS style of the border [none, dotted, dashed, solid, double, groove, ridge, inset, outset] +'borderStyle' : 'solid', // The CSS style of the border [none, dotted, dashed, solid, double, groove, ridge, inset, outset] +'rtl' : false // Show text from right to left # Copyright diff --git a/etherpad.jquery.json b/etherpad.jquery.json index 0e6a605..4082283 100644 --- a/etherpad.jquery.json +++ b/etherpad.jquery.json @@ -6,7 +6,7 @@ "color", "animation" ], - "version": "1.0.1", + "version": "1.0.2", "author": { "name": "John McLear", "url": "https://github.com/ether/etherpad-lite-jquery-plugin" diff --git a/index.html b/index.html index 4d0ec21..b13b80d 100644 --- a/index.html +++ b/index.html @@ -43,6 +43,7 @@

Available options and parameters

'height' : 100, // The height of the embedded IFrame 'border' : 0, // The width of the border (make sure to append px to a numerical value) 'borderStyle' : 'solid' // The CSS style of the border [none, dotted, dashed, solid, double, groove, ridge, inset, outset] + 'rtl' : false // Show right to left text

If you are confused, view the source code for examples

diff --git a/js/etherpad.js b/js/etherpad.js index c1862e9..73d066b 100644 --- a/js/etherpad.js +++ b/js/etherpad.js @@ -14,13 +14,13 @@ 'userColor' : false, 'hideQRCode' : false, 'alwaysShowChat' : false, - 'pageview' : false, 'width' : 100, 'height' : 100, 'border' : 0, 'borderStyle' : 'solid', 'toggleTextOn' : 'Disable Rich-text', 'toggleTextOff' : 'Enable Rich-text', + 'plugins' : {}, 'rtl' : false }; @@ -37,6 +37,11 @@ $.extend( settings, options ); } + var pluginParams = ''; + for(var option in settings.plugins) { + pluginParams += '&' + option + '=' + settings.plugins[option] + } + var iFrameLink = '