aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-02-16 04:09:30 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2010-02-16 04:09:30 +0100
commitd1f8713c9dc21685e09d974d8c330c1bd716b1ed (patch)
tree29dd4a68d91b619bf436bf946c0183e01c69b46f
parent5f770c1c952957a558bccb784441ee173f899446 (diff)
downloadetherpad-d1f8713c9dc21685e09d974d8c330c1bd716b1ed.tar.gz
etherpad-d1f8713c9dc21685e09d974d8c330c1bd716b1ed.tar.xz
etherpad-d1f8713c9dc21685e09d974d8c330c1bd716b1ed.zip
export headlines as inline objects to html
-rw-r--r--etherpad/src/etherpad/pad/exporthtml.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/etherpad/src/etherpad/pad/exporthtml.js b/etherpad/src/etherpad/pad/exporthtml.js
index 48ea1a4..2512603 100644
--- a/etherpad/src/etherpad/pad/exporthtml.js
+++ b/etherpad/src/etherpad/pad/exporthtml.js
@@ -47,8 +47,8 @@ function getPadHTML(pad, revNum) {
var apool = pad.pool();
- var tags = ['b','i','u','s'];
- var props = ['bold','italic','underline','strikethrough'];
+ var tags = ['b','i','u','s','h1','h2','h3','h4','h5','h6'];
+ var props = ['bold','italic','underline','strikethrough','h1','h2','h3','h4','h5','h6'];
var anumMap = {};
props.forEach(function(propName, i) {
var propTrueNum = apool.putAttrib([propName,true], true);
@@ -288,6 +288,7 @@ function getPadHTMLDocument(pad, revNum, noDocType) {
'<meta http-equiv="Content-type" content="text/html; charset=utf-8" />\n'+
'<meta http-equiv="Content-Language" content="en-us" />\n'+
'<title>'+'/'+pad.getId()+'</title>\n'+
+ '<style type="text/css">h1,h2,h3,h4,h5,h6 { display: inline; }</style>\n' +
'</head>\n')+
'<body>';