MCPcopy Create free account
hub / github.com/TruthHun/BookStack / applyParameterCss

Function applyParameterCss

static/mergely/editor/editor.js:643–651  ·  view source on GitHub ↗
(saveState)

Source from the content-addressed store, hash-verified

641 return text;
642 }
643 function applyParameterCss(saveState) {
644 var cb = '#' + parameters.get('cb',color_defaults.cb),
645 cg = '#' + parameters.get('cg',color_defaults.cg),
646 ab = '#' + parameters.get('ab',color_defaults.ab),
647 ag = '#' + parameters.get('ag',color_defaults.ag),
648 db = '#' + parameters.get('db',color_defaults.db),
649 dg = '#' + parameters.get('dg',color_defaults.dg);
650 applyColorCss(makeColorCss(cb, cg, ab, ag, db, dg), cb, cg, ab, ag, db, dg, saveState);
651 }
652 function applyColorCss(cssText, changeBorder, changeBackground, addedBorder, addedBackground, deletedBorder, deletedBackground, saveState) {
653 $('<style type="text/css">' + cssText + '</style>').appendTo('head');
654 ed.mergely('options', {

Callers 1

editor.jsFile · 0.70

Calls 3

applyColorCssFunction · 0.70
makeColorCssFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected