diff options
Diffstat (limited to '')
-rw-r--r-- | infrastructure/ace/www/ace2_inner.js | 7 |
1 files changed, 7 insertions, 0 deletions
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']]); } |