mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
allow plugins to add multiple styles
This commit is contained in:
parent
fccfc3bd41
commit
197a41627d
1 changed files with 5 additions and 2 deletions
|
@ -433,9 +433,12 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
||||||
{
|
{
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
|
|
||||||
|
var stylesForExportCSS = "";
|
||||||
// Include some Styles into the Head for Export
|
// Include some Styles into the Head for Export
|
||||||
hooks.aCallAll("stylesForExport", padId, function(err, stylesForExport){
|
hooks.aCallAll("stylesForExport", padId, function(err, stylesForExport){
|
||||||
|
stylesForExport.forEach(function(css){
|
||||||
|
stylesForExportCSS += css;
|
||||||
|
});
|
||||||
// Core inclusion of head etc.
|
// Core inclusion of head etc.
|
||||||
var head =
|
var head =
|
||||||
(noDocType ? '' : '<!doctype html>\n') +
|
(noDocType ? '' : '<!doctype html>\n') +
|
||||||
|
@ -454,7 +457,7 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
||||||
'ol ol ol ol ol ol{ list-style-type: lower-roman; }' +
|
'ol ol ol ol ol ol{ list-style-type: lower-roman; }' +
|
||||||
'ol ol ol ol ol ol ol { list-style-type: decimal; }' +
|
'ol ol ol ol ol ol ol { list-style-type: decimal; }' +
|
||||||
'ol ol ol ol ol ol ol ol{ list-style-type: lower-latin; }' +
|
'ol ol ol ol ol ol ol ol{ list-style-type: lower-latin; }' +
|
||||||
stylesForExport +
|
stylesForExportCSS +
|
||||||
'</style>\n' + '</head>\n') +
|
'</style>\n' + '</head>\n') +
|
||||||
'<body>';
|
'<body>';
|
||||||
var foot = '</body>\n</html>\n';
|
var foot = '</body>\n</html>\n';
|
||||||
|
|
Loading…
Reference in a new issue