diff --git a/www/pad/inner.js b/www/pad/inner.js
index 18cccfc6b..9b56e56bb 100644
--- a/www/pad/inner.js
+++ b/www/pad/inner.js
@@ -452,8 +452,8 @@ define([
var $iframe = $('html').find('iframe').contents();
var ifrWindow = $html.find('iframe')[0].contentWindow;
- var customCss = '/customize/ckeditor-contents.css?' + CKEDITOR.CRYPTPAD_URLARGS;
- $iframe.find('head').append('')
+ var customCss = '/customize/ckeditor-contents.css?' + window.CKEDITOR.CRYPTPAD_URLARGS;
+ $iframe.find('head').append('');
framework._.sfCommon.addShortcuts(ifrWindow);