X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/cba41d1ab4c1360b606a891d179096f16c6b6b63..refs/tags/v3.7:/page.inc.php
diff --git a/page.inc.php b/page.inc.php
index 80f773d..1253338 100644
--- a/page.inc.php
+++ b/page.inc.php
@@ -51,8 +51,12 @@ register_shutdown_function(function () {
global $User;
if (!empty($User['admin'])) {
- print ''."\n";
- print ''."\n";
+ $ckesrc = '/lib/ckeditor'; # local install
+ if (!file_exists(DOCROOT . $ckesrc)) {
+ $ckesrc = '//cdn.ckeditor.com/4.7.3/full-all'; # remote fallback
+ }
+ printf(''."\n", "$ckesrc/ckeditor.js");
+ print ''."\n";
}
print "