From 5f770c1c952957a558bccb784441ee173f899446 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 16 Feb 2010 04:08:36 +0100 Subject: moved chaged files from infrastructure to public dir --- etherpad/src/etherpad/collab/ace/contentcollector.js | 18 ++++++++++++++++++ etherpad/src/etherpad/collab/ace/linestylefilter.js | 8 +++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/etherpad/src/etherpad/collab/ace/contentcollector.js b/etherpad/src/etherpad/collab/ace/contentcollector.js index 22e552a..5dd4f9c 100644 --- a/etherpad/src/etherpad/collab/ace/contentcollector.js +++ b/etherpad/src/etherpad/collab/ace/contentcollector.js @@ -340,6 +340,24 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, tname == "del") { doAttrib("strikethrough"); } + if (tname == "h1") { + doAttrib("h1"); + } + if (tname == "h2") { + doAttrib("h2"); + } + if (tname == "h3") { + doAttrib("h3"); + } + if (tname == "h4") { + doAttrib("h4"); + } + if (tname == "h5") { + doAttrib("h5"); + } + if (tname == "h6") { + doAttrib("h6"); + } if (tname == "ul") { var type; var rr = cls && /(?:^| )list-(bullet[12345678])\b/.exec(cls); diff --git a/etherpad/src/etherpad/collab/ace/linestylefilter.js b/etherpad/src/etherpad/collab/ace/linestylefilter.js index ffc8034..c7f79a5 100644 --- a/etherpad/src/etherpad/collab/ace/linestylefilter.js +++ b/etherpad/src/etherpad/collab/ace/linestylefilter.js @@ -25,7 +25,13 @@ linestylefilter.ATTRIB_CLASSES = { 'bold':'tag:b', 'italic':'tag:i', 'underline':'tag:u', - 'strikethrough':'tag:s' + 'strikethrough':'tag:s', + 'h1':'tag:h1', + 'h2':'tag:h2', + 'h3':'tag:h3', + 'h4':'tag:h4', + 'h5':'tag:h5', + 'h6':'tag:h6' }; linestylefilter.getAuthorClassName = function(author) { -- cgit v1.2.3-1-g7c22