From d1f8713c9dc21685e09d974d8c330c1bd716b1ed Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 16 Feb 2010 04:09:30 +0100 Subject: export headlines as inline objects to html --- etherpad/src/etherpad/pad/exporthtml.js | 5 +++-- 1 file 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) { '\n'+ '\n'+ ''+'/'+pad.getId()+'\n'+ + '\n' + '\n')+ ''; -- cgit v1.2.3