Pita/etherpad-lite — pull request #558 by jucovschi (2012-03-14 10:59:31+00:00)
Title: Fixes plugin architecture on the client side when used from inside IFrames (e.g. from linestylefilter.js)

file linestylefilter.js:32 requires the "hooks" module in order to notify client plugins of "aceAttribsToClasses" event. This does not work because the: plugin architecture is not initialized in the current IFrame. To test it, put a console.log(require("./pluginfw/plugins")) statement in linestylefilter.js and you'll see that it does not know of any plugins.

This patch makes the plugin architecture available from the first parent supporting require statements.