Issue Bug Closed

#47274Tab key in Chrome inserts weird SPAN tags

Florian Seirer 04/16/13, 12:19 updated 10/02/18, 12:13

Description

IE9 and Firefox 17 don’t. They just jump to the next element in the browser.

On the other hand, Google Chrome inserts
<span class="Apple-tab-span" style="white-space:pre">    </span>
when you press the tabulator key while typing inside the editor.

I was actually expecting the browser to insert a blockquote tag or something similar. Apparently, this doesn’t happen if the editor is configured to not use the indent and outdent buttons.

Either way, the behaviour should be equal among all browsers.

This is my RTE configuration:

RTE {
  default {
    logDeprecatedProperties.logAlsoToBELog = 1
    defaultContentLanguage = de
    enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
    removeComments = 1
    removeTrailingBR = 1
    removeTags = address,area,article,aside,at,b,base,basefont,bdi,bdo,big,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,em,fieldset,figcaption,figure,font,footer,frame,frameset,h1,h5,h6,head,header,hgroup,html,i,iframe,img,input,ins,isindex,kbd,keygen,label,legend,link,map,mark,menu,meta,meter,nav,nobr,object,optgroup,option,output,param,pre,progress,psonormal,q,rp,rt,ruby,s,samp,sdfield,section,select,small,source,strike,strong,summary,textarea,time,title,track,tt,u,var,wbr
    removeTagsAndContents = applet,audio,embed,form,noframes,noscript,style,script,video,o:lock,v:shape,v:shapetype,v:stroke,v:f,v:imagedata,v:stroke,v:path,v:formulas,v:shadow,v:group,w:wrap,o:p
    showButtons = *
    toolbarOrder = undo,redo,copy,cut,paste,pastetoggle,pastebehaviour,findreplace,link,unlink,acronym,line,insertcharacter,subscript,superscript,unorderedlist,orderedlist,citation,quotation,bar,chMode,linebreak,formatblock,blockstyle,textstyle
    buttons {
      acronym.pages = 1965
      formatblock {
        removeItems = address,article,div,section,footer,header,nav,aside,pre,h1,h5,h6
        postfixLabelWithTag = 1
        width = 140
      }
      indent {
        useBlockquote = 1
      }
      link {
        popupSelector.disabled = 1
        targetSelector.disabled = 1
        properties.class.allowedClasses = 
      }
      blockstyle {      
        tags.p.allowedClasses =  warning,info,error,success        
        width = 120
      }
      textstyle {
        tags.span.allowedClasses := addToList(regierungsmitglied)
        showTagFreeClasses = 1
        width = 150
      }
      pastetoggle.setActiveOnRteOpen = 1
    }    
    proc {    
      allowedClasses := addToList(regierungsmitglied,info,warning,error,success)
      allowedClasses := removeFromList(csc-frame-frame1, csc-frame-frame2, important, name-of-person, detail, MsoNormal)
      entryHTMLparser_db.tags {
        span.fixAttrib.style.unset = 1
        span.rmTagIfNoAttrib = 1
        p.fixAttrib.style.unset = 1
        p.fixAttrib.align.unset >
        p.fixAttrib.class.list = 
        p.fixAttrib.class.trim = MsoNormal
        a.fixAttrib.onmouseover.unset = 1
        a.fixAttrib.onmouseout.unset = 1
        div.fixAttrib.style.unset = 1
        em.fixAttrib.style.unset = 1
        ol.fixAttrib.start.unset = 1
        ol.fixAttrib.type.unset = 1
        ol.fixAttrib.style.unset = 1
        ul.fixAttrib.start.unset = 1
        ul.fixAttrib.type.unset = 1
        li.fixAttrib.class.unset = 1
        li.fixAttrib.style.unset = 1
        strong.fixAttrib.style.unset = 1
        table.fixAttrib.class.unset = 1
        table.fixAttrib.style.unset = 1
        table.fixAttrib.border.unset = 1
        table.fixAttrib.cellpadding.unset = 1
        table.fixAttrib.cellspacing.unset = 1
        th.fixAttrib.style.unset = 1
        tr.fixAttrib.style.unset = 1
        td.fixAttrib.style.unset = 1
        td.fixAttrib.width.unset = 1
        img.fixAttrib.usemap.unset = 1
      } 
    }
  }
  classes := removeFromList(csc-frame-frame1, csc-frame-frame2, important, name-of-person, detail) 
  classes {
    regierungsmitglied {
      name = Regierungsmitglied
      value = font-weight:bold;
    }    
    warning {    
      name = Warnung
      value = background-color:gold;
    }
    info {
      name = Information
      value = background-color:lightskyblue;
    }
    error {
      name = Fehler
      value = background-color:firebrick; color:white;
    }
    success {
      name = Erfolg
      value = background-color:forestgreen; color:white;
    }
  }
}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.