[TYPO3-rte] Empty menus with IE

Graham Knight G.Knight at cs.ucl.ac.uk
Mon Jul 27 20:09:27 CEST 2009


Hi,

I have a couple of configurations (one below) which work fine with Firefox but with IE 8 I get empty menus for both block style and text style. Has anyone else encountered this or can suggest a solution?

Many thanks.

Graham

RTE.classes {
	align-left {
		name = Align Left
		noShow = 1
	}		
	align-right {
		name = Align Right
		noShow = 1
	}		
	align-center {
		name = Centred
		noShow = 1
	}		
	align-justify {
		name = Justify
		noShow = 1
	}
	colouredtext {
		name = Coloured
		noShow = 1
	}
	fixedwidth {
		name = Fixed Width
		noShow = 1
	}
	heavytype {
		name = Heavy Type
		noShow = 1
	}		
}

RTE.default {
	showStatusBar = 1
	ignoreMainStyleOverride = 1
	enableWordClean = 1
	removeTrailingBR = 1
	removeTags = center, font, o:p, sdfield, strike,u
#	disableObjectResizing = 1
#	buttons.table.enableHandles = 0
	showTagFreeClasses = 1
	showButtons := addToList(copy, cut, paste, spellcheck, underline, strikethrough, indent, outdent, insertparagraphbefore, insertparagraphafter, left, center, right, justifyfull)
  # Style sheet
	contentCSS = fileadmin/UCL-CS/css/cs_home.css
  # Classes to show in edit boxes
	classesCharacter = fixedwidth, heavytype, colouredtext
	classesTable = greytable, layouttable
	classesTD = colouredtext
	classesParagraph = colouredtext, centred, clearblock
	classesImage = leftimage, rightimage
  # Configure formatblock drop-down menu
	buttons.formatblock.postfixLabelWithTag = 1
  #	buttons.formatblock.removeItems = div
  # Configure blockstyle drop-down menu
	buttons.blockstyle.postfixLabelWithClassName = 0
	buttons.blockstyle.showTagFreeClasses = 1
	buttons.blockstyle.tags.p.allowedClasses = colouredtext align-left, align-right, align-center, align-justify
	buttons.blockstyle.tags.div.allowedClasses = clearblock, indent, leftimage, rightimage
	buttons.blockstyle.tags.img.allowedClasses = leftimage, rightimage, divider
	buttons.blockstyle.tags.table.allowedClasses = greytable, layouttable
	buttons.blockstyle.tags.td.allowedClasses = dummy
	buttons.blockstyle.tags.th.allowedClasses = dummy
	buttons.blockstyle.tags.tr.allowedClasses = dummy
	buttons.blockstyle.tags.thead.allowedClasses = dummy
	buttons.blockstyle.tags.tbody.allowedClasses = dummy
	buttons.blockstyle.tags.li.allowedClasses = dummy
	buttons.blockstyle.tags.ul.allowedClasses = dummy
	buttons.blockstyle.tags.ol.allowedClasses = dummy
	buttons.blockstyle.tags.h1.allowedClasses = dummy
	buttons.blockstyle.tags.h2.allowedClasses = dummy
	buttons.blockstyle.tags.h3.allowedClasses = dummy
	buttons.blockstyle.tags.h4.allowedClasses = dummy
	buttons.blockstyle.tags.h5.allowedClasses = dummy
  # Configure text style drop-down menu
	buttons.formattext.postfixLabelWithTag = 0
	buttons.textstyle.showTagFreeClasses = 1
	buttons.textstyle.postfixLabelWithClassName = 0
  # Configure table dialogues
	disableAlignmentFieldsetInTableOperations = 1
	disableSpacingFieldsetInTableOperations = 1
	disableColorFieldsetInTableOperations = 1
	disableLayoutFieldsetInTableOperations = 1
	disableBordersFieldsetInTableOperations = 1
	buttons.table.properties.tableClass.defaultValue = layouttable
	buttons.table.removeFieldsets = alignment, borders, color, description, layout, spacing
	buttons.rowproperties.removeFieldsets = alignment, borders, color, layout, rowgroup, style
	buttons.cellproperties.removeFieldsets = alignment, borders, color, layout, style
	buttons.toggleborders.keepInToolbar = 1
	buttons.toggleborders.setOnTableCreation = 1
  proc {  	
  	## TRANSFORMATION METHOD
  	overruleMode = ts_css
  	# Allow forms
  	allowTagsOutside := addToList(form, input, select, option)
  	allowTags := addToList(form, input, select, option)
  	denyTags >
	allowedClasses = fixedwidth, heavytype, colouredtext, greytable, layouttable, leftimage, rightimage, clearblock, divider, align-left, align-right, align-center, align-justify, indent
  	dontConvBRtoParagraph = 1
  	preserveDIVSections = 1
  	dontUndoHSC_db = 1
  	dontHSC_rte = 1
  	
    entryHTMLparser_db = 1
    entryHTMLparser_db {   
    	htmlSpecialChars = 0
    	removeTags < RTE.default.removeTags
    	tags {
        # Remap div and p - seems to be needed to stop empty paragraphs being generated
    		div.remap = box
    		p.remap = para
    		# Restrict table attributes
		table.fixAttrib.class.casesensitiveComp = 1
		table.allowedAttribs = class
    		table.fixAttrib.class.list = layouttable, greytable, grey
    		table.fixAttrib.class.lower = 1
#    		table.fixAttrib.class.default = layouttable
#    		table.fixAttrib.class.removeIfEquals = unknown
#       	table.rmTagIfNoAttrib = 1   		
    		td.allowedAttribs = 0
    		tr.allowedAttribs = 0
    		th.allowedAttribs = 0
    		thead.allowedAttribs = 0
    		tbody.allowedAttribs = 0
    		# Restrict paragraph attributes
    		p.allowedAttribs = class
    		p.fixAttrib.class.list = unknown, colouredtext, align-center, align-left, align-right, align-justify, indent
    		p.fixAttrib.class.removeIfEquals = unknown
    		# Restrict header attributes
    		h1.allowedAttribs = 0
    		h2 < .h1
    		h3 < .h1
    		h4 < .h1
    		# Restrict div attributes
    		div.allowedAttribs = class
    		div.fixAttrib.class.list = unknown, clearblock, divider, indent
    		div.fixAttrib.class.removeIfEquals = unknown    		
        	div.rmTagIfNoAttrib = 1   		
    		# Restrict span attributes
    		span.allowedAttribs = class
    		span.fixAttrib.class.list = unknown, colouredtext, fixedwidth
    		span.fixAttrib.class.removeIfEquals = unknown
        	span.rmTagIfNoAttrib = 1   		
        # Restrict blockquote atributes		
    		blockquote.allowedAttribs = class
    		blockquote.fixAttrib.class.default = indent
    		blockquote.remap = p
    	}
    	## TAGS ALLOWED
    	allowTags < RTE.default.proc.allowTags
    	allowTagsOutside < RTE.default.proc.allowTagsOutside
    }
    
    exitHTMLparser_db = 1
    exitHTMLparser_db {   	
        # undo the re-mapping
        tags.box.remap = div  
        tags.para.remap = p
#        allowTags < RTE.default.proc.allowTags
#        allowTagsOutside < RTE.default.proc.allowTagsOutside
    }
    
    HTMLparser_db = 1
    HTMLparser_db {    	
    	xhtml_cleaning = 1
    }       
  }
  
  FE >
  FE < RTE.default
  FE.proc.allowedClasses >
  FE.proc.allowedClasses < RTE.default.proc.allowedClasses
  FE.proc.allowTags < RTE.default.proc.allowTags
  FE.proc.allowTagsOutside < RTE.default.proc.allowTagsOutside

  #FE.showStatusBar = 0
  #FE.hideButtons = chMode
}

#RTE.config.tt_content.bodytext >
#RTE.config.tt_content.bodytext < RTE.default
RTE.config.tt_content.bodytext.proc.allowedClasses < RTE.default.allowedClasses
RTE.config.tt_content.bodytext.proc.allowTags < RTE.default.proc.allowTags

#includeLibs.user_parseFunc = fileadmin/UCL-CS/php/parseFunc.txt

lib.parseFunc.nonTypoTagUserFunc = user_parseFunc->stripEmptyTags
lib.parseFunc.nonTypoTagUserFunc.tagList = b,strong,i,p
lib.parseFunc_RTE.nonTypoTagUserFunc = user_parseFunc->stripEmptyTags
lib.parseFunc_RTE.nonTypoTagUserFunc.tagList = b,strong,i,p 
lib.parseFunc.allowTags < RTE.default.proc.allowTags
lib.parseFunc_RTE.allowTags < RTE.default.proc.allowTags
lib.parseFunc_DB.allowTags < RTE.default.proc.allowTags

mod.SHARED.colPos_list=1,0


More information about the TYPO3-project-rte mailing list