From 58d52031106a1597cd7b84806cb30694972986b6 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 26 Jul 2012 12:24:59 +0200 Subject: [PATCH] Add a documentReady client_hook. --- src/templates/pad.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/templates/pad.html b/src/templates/pad.html index 36d6334c..12c99d03 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -347,8 +347,15 @@ } var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins'); + var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks'); + plugins.baseURL = baseURL; plugins.update(function () { + // Call documentReady hook + $(function() { + hooks.aCallAll('documentReady'); + }); + var pad = require('ep_etherpad-lite/static/js/pad'); pad.baseURL = baseURL; pad.init();