From 0772190fdd589e36b2d0047b57ef137973ac7d37 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 3 Feb 2012 07:57:59 +0000 Subject: [PATCH] Span & H1-H7 end tags now appended inline Span tags are now appended inline rather than with line feeds, to represent their default inline styling nature H1-H7 tags now also appended inline --- editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor.php b/editor.php index c4d25aa..f09f481 100644 --- a/editor.php +++ b/editor.php @@ -82,7 +82,7 @@ var cM = CodeMirror(document.body, { } endTag = ""; if (top.ICEcoder.tagString=="script") {endTag=""}; - if(top.ICEcoder.tagString=="title"||top.ICEcoder.tagString=="a") { + if(top.ICEcoder.tagString=="title"||top.ICEcoder.tagString=="a"||top.ICEcoder.tagString=="span"||(top.ICEcoder.tagString.slice(0,1)=="h"&&parseInt(top.ICEcoder.tagString.slice(1,2),10)>=1&&parseInt(top.ICEcoder.tagString.slice(1,2),10)<=7)) { cM.replaceSelection(endTag); cM.setCursor(cM.getCursor().line,cM.getCursor().ch-top.ICEcoder.tagString.length-3); } else if(top.ICEcoder.tagString=="html"||top.ICEcoder.tagString=="head") {