diff options
author | Constantin Jucovschi <jucovschi@gmail.com> | 2012-03-14 11:45:25 +0100 |
---|---|---|
committer | Constantin Jucovschi <jucovschi@gmail.com> | 2012-03-14 11:45:25 +0100 |
commit | 1a64a6c1c5ece11307db152581ae51d34a9449bf (patch) | |
tree | 7cdbdb4f4d9ea64786923e9445af831fb3eec05c /src/static/js/ace.js | |
parent | 0431c15325aace9bbb3ea5242ae2f3e88b195638 (diff) | |
download | etherpad-lite-1a64a6c1c5ece11307db152581ae51d34a9449bf.zip |
makes plugin architecture work in client-side from inside IFrames as well
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r-- | src/static/js/ace.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 1306dba0..659503d8 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -261,6 +261,11 @@ require.setGlobalKeyPath("require");\n\ // Inject my plugins into my child. iframeHTML.push('\ <script type="text/javascript">\ + parent_req = require("./pluginfw/parent_require.js");\ + parent_req.getRequirementFromParent(require, "ep_etherpad-lite/static/js/pluginfw/hooks");\ + parent_req.getRequirementFromParent(require, "ep_etherpad-lite/static/js/pluginfw/plugins");\ + parent_req.getRequirementFromParent(require, "./pluginfw/hooks");\ + parent_req.getRequirementFromParent(require, "./pluginfw/plugins");\ require.define("/plugins", null);\n\ require.define("/plugins.js", function (require, exports, module) {\ module.exports = require("ep_etherpad-lite/static/js/plugins");\ |