summaryrefslogtreecommitdiff
path: root/addons/pad/static/plugin/ep_disable_init_focus/README.md
diff options
context:
space:
mode:
authorHitesh Trivedi <htr@openerp.com>2014-10-01 16:17:43 +0530
committerRichard Mathot <rim@openerp.com>2014-12-05 14:45:06 +0100
commitf570ea1e3edaa2a1387abe5018bafcc7ab07ef5f (patch)
treef5de8fc6048466503592598c339c41be310abc5c /addons/pad/static/plugin/ep_disable_init_focus/README.md
parent1c834d009f555ad8c44b9a6609676146ab80e295 (diff)
[ADD] pad: new etherpad plugin to remove autofocus
In the form views where the pads are used, Etherpad-lite automatically focus on the pad content, even if the user has already started to type into another field. This behavior is quite annoying for "quick changes", so we provide a (very tiny) plugin for Etherpad-lite that will prevent this autofocus. Detailed installation instructions are also included.
Diffstat (limited to 'addons/pad/static/plugin/ep_disable_init_focus/README.md')
-rw-r--r--addons/pad/static/plugin/ep_disable_init_focus/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/addons/pad/static/plugin/ep_disable_init_focus/README.md b/addons/pad/static/plugin/ep_disable_init_focus/README.md
new file mode 100644
index 00000000000..49a904a2100
--- /dev/null
+++ b/addons/pad/static/plugin/ep_disable_init_focus/README.md
@@ -0,0 +1,28 @@
+Readme
+======
+
+`ep_disable_init_focus` is a very simple
+[Etherpad-lite](https://github.com/ether/etherpad-lite) plugin, which disable
+the focus on the pad content after its loading.
+
+Rationale
+---------
+
+Etherpad-lite autofocus can be annoying to end-users when it is used in Odoo's
+"pad" widget, because it will override web client focus rules. This plugin is
+design to get rid of this behavior.
+
+
+Installation instructions
+-------------------------
+
+1. Stop your Etherpad-lite server.
+2. Copy the `ep_disabl_init_focus` folder into the `node_modules` folder of
+ your Etherpad-lite installation.
+3. in the folder of your Etherpad-lite installation, run this command to
+ install the plugin:
+
+ ```sh
+ npm install node_modules/ep_disable_init_focus/
+ ```
+4. Restart the Etherpad-lite server.