blob: dbcc368a9fe840ce73cd4ce1976c2e06749f9b63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
// only load text editor if the user is logged in
if (\OCP\User::isLoggedIn()) {
$eventDispatcher = \OC::$server->getEventDispatcher();
$eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function() {
OCP\Util::addStyle('files_texteditor', 'DroidSansMono/stylesheet');
OCP\Util::addStyle('files_texteditor', 'style');
OCP\Util::addStyle('files_texteditor', 'mobile');
OCP\Util::addscript('files_texteditor', 'editor');
OCP\Util::addscript('files_texteditor', 'vendor/ace/src-noconflict/ace');
});
}
|