forked from FriendsOfREDAXO/redactor2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboot.php
27 lines (20 loc) · 984 Bytes
/
boot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
if (rex::isBackend() && !empty(rex::getUser())) {
// TODO:
// Sprache es auch beachten / Abhängig von Sprachdateien in langs ?
// Profiles sind Sprachen der Profiles anpassen
// $customPlugins reinladen ?
// skin dynamisch reinladen -> lieber über project AddOn
// clang_id in Profile ?
// $redactorLanguage im Profile ??
rex_view::addCssFile($this->getAssetsUrl('vendor/redactor.css'));
rex_view::addJsFile($this->getAssetsUrl('vendor/redactor.js'));
rex_view::addCssFile($this->getAssetsUrl('redactor_custom.css'));
rex_view::addJsFile($this->getAssetsUrl('redactor_plugins.min.js'));
rex_view::addJsFile($this->getAssetsUrl('redaxo.js'));
if (!file_exists($this->getAssetsUrl('cache/profiles.js'))) {
redactor2::createJavascriptFile();
}
rex_view::addJsFile($this->getAssetsUrl('cache/profiles.js'));
rex_view::addJsFile($this->getAssetsUrl('langs/'.redactor2::getRedactorLanguage().'.js'));
}