First stab at getting client side require(plugin/..) to work from within etherpad

This commit is contained in:
Egil Moeller 2012-02-26 17:48:17 +01:00
parent fd5b7c1080
commit 763361a7c9
40 changed files with 122 additions and 122 deletions

View file

@ -20,8 +20,8 @@
* limitations under the License.
*/
var padcookie = require('/pad_cookie').padcookie;
var padutils = require('/pad_utils').padutils;
var padcookie = require('ep_etherpad-lite/static/js/pad_cookie').padcookie;
var padutils = require('ep_etherpad-lite/static/js/pad_utils').padutils;
var padeditor = (function()
{
@ -34,7 +34,7 @@ var padeditor = (function()
viewZoom: 100,
init: function(readyFunc, initialViewOptions, _pad)
{
Ace2Editor = require('/ace').Ace2Editor;
Ace2Editor = require('ep_etherpad-lite/static/js/ace').Ace2Editor;
pad = _pad;
settings = pad.settings;