From 6fb20c578f97c66125122ff9a71751a946083328 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 5 Feb 2010 04:18:00 +0100 Subject: remove other headline properties on setting (no sense in setting two headlines at one region) --- infrastructure/ace/www/ace2_inner.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'infrastructure') diff --git a/infrastructure/ace/www/ace2_inner.js b/infrastructure/ace/www/ace2_inner.js index a6233d3..645e406 100644 --- a/infrastructure/ace/www/ace2_inner.js +++ b/infrastructure/ace/www/ace2_inner.js @@ -2086,6 +2086,13 @@ function OUTER(gscope) { [[attributeName,'']]); } else { + if (attributeName == 'h1' || attributeName == 'h2' || attributeName == 'h3' || + attributeName == 'h4' || attributeName == 'h5' || attributeName == 'h6') { + performDocumentApplyAttributesToRange(rep.selStart, rep.selEnd, + [['h1',''], ['h2',''], ['h3',''], + ['h4',''], ['h5',''], ['h6','']]); + } + performDocumentApplyAttributesToRange(rep.selStart, rep.selEnd, [[attributeName,'true']]); } -- cgit v1.2.3-1-g7c22