X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/cba41d1ab4c1360b606a891d179096f16c6b6b63..1f8560a20d5d1aa8886688bd7553b8a8fd704fff:/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 "\n";