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") {