mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
client Var value for disabling scripts
This commit is contained in:
parent
94920e5552
commit
a8487dd5dc
1 changed files with 7 additions and 2 deletions
|
@ -226,8 +226,13 @@ function Ace2Editor()
|
||||||
var includedCSS = [];
|
var includedCSS = [];
|
||||||
var $$INCLUDE_CSS = function(filename) {includedCSS.push(filename)};
|
var $$INCLUDE_CSS = function(filename) {includedCSS.push(filename)};
|
||||||
$$INCLUDE_CSS("../static/css/iframe_editor.css");
|
$$INCLUDE_CSS("../static/css/iframe_editor.css");
|
||||||
$$INCLUDE_CSS("../static/css/pad.css");
|
|
||||||
$$INCLUDE_CSS("../static/custom/pad.css");
|
// disableCustomScriptsAndStyles can be used to disable loading of custom scripts
|
||||||
|
if(!clientVars.disableCustomScriptsAndStyles){
|
||||||
|
console.log("loading custom shit"); // cake remove me
|
||||||
|
$$INCLUDE_CSS("../static/css/pad.css");
|
||||||
|
$$INCLUDE_CSS("../static/custom/pad.css");
|
||||||
|
}
|
||||||
|
|
||||||
var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){
|
var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){
|
||||||
if (path.match(/\/\//)) { // Allow urls to external CSS - http(s):// and //some/path.css
|
if (path.match(/\/\//)) { // Allow urls to external CSS - http(s):// and //some/path.css
|
||||||
|
|
Loading…
Reference in a new issue