add "A" to inline elements for html serializer
[roojs1] / Roo / htmleditor / TidyWriter.js
index dfb1144..9db08ab 100644 (file)
@@ -198,9 +198,9 @@ Roo.htmleditor.TidyWriter.prototype = {
         }
         
         if (this.in_inline) {
-            text = text.replace(/\s+/g,' ') // all white space inc line breaks to a slingle' '
+            text = text.replace(/\s+/g,' '); // all white space inc line breaks to a slingle' '
             if (text != ' ') {
-                text = text.replace(/\s+/,' ')  // all white space to single white space
+                text = text.replace(/\s+/,' ');  // all white space to single white space
                 
                     
                 // if next tag is '<BR>', then we can trim right..
@@ -388,7 +388,7 @@ Roo.htmleditor.TidyWriter.prototype = {
 
 Roo.htmleditor.TidyWriter.inline_elements = [
         'SPAN','STRONG','B','EM','I','FONT','STRIKE','U','VAR',
-        'CITE','DFN','CODE','MARK','Q','SUP','SUB','SAMP'
+        'CITE','DFN','CODE','MARK','Q','SUP','SUB','SAMP', 'A'
 ];
 Roo.htmleditor.TidyWriter.shortend_elements = [
     'AREA','BASE','BASEFONT','BR','COL','FRAME','HR','IMG','INPUT',