diff --git a/static/js/ace2_inner.js b/static/js/ace2_inner.js index a90b2bd46..722a36cbd 100644 --- a/static/js/ace2_inner.js +++ b/static/js/ace2_inner.js @@ -2975,7 +2975,7 @@ function Ace2Inner(){ return str.replace(/[\n\r ]/g, ' ').replace(/\xa0/g, ' ').replace(/\t/g, ' '); } - //FIXME: duplicated with contentcollector.js + //FIXME: duplicated with contentcollector.js ? var _blockElems = { //blocks and paragraphs "div": 1, @@ -2986,6 +2986,8 @@ function Ace2Inner(){ "ol": 1, "ul": 1, //titling styles + //fixme: they are blocks in this file but *not* in contentcollector.js + // => there times were I really feal like a hacker :s "h1": 1, "h2": 1, "h3": 1, diff --git a/static/js/contentcollector.js b/static/js/contentcollector.js index 0b730976c..25054cf7e 100644 --- a/static/js/contentcollector.js +++ b/static/js/contentcollector.js @@ -85,10 +85,12 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class "ol": 1, "ul": 1, //titling styles - "h1": 1, - "h2": 1, - "h3": 1, - "h4": 1, + //fixme: they actually *are* blocks but handling them as blocks breaks Drag&Drop + // => what is the real meaning of this structure ??? + //"h1": 1, + //"h2": 1, + //"h3": 1, + //"h4": 1, }; function isBlockElement(n) @@ -185,10 +187,10 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class "ol": 1, "ul": 1, //titling styles - "h1": 1, - "h2": 1, - "h3": 1, - "h4": 1, + //"h1": 1, + //"h2": 1, + //"h3": 1, + //"h4": 1, }; function _isEmpty(node, state)