[TYPO3-RTE] Table in Unordered List

Tapio Markula tapio.markula at xetpoint.fi
Tue Dec 2 09:03:53 CET 2008


Entire related config:

lib.parseFunc.denyTags=
styles.content.links.allowTags = 
a,abbr,acronym,address,blockquote,b,big,br,caption,cite,code,col,colgroup,dfn,dl,dt,dd,div,em,h1,h2,h3,h4,h5,h6,hr,i,img,kbd,li,link,ol,p,pre,q,samp,small,span,strong,sub,sup,table,td,tfoot,th,thead,tr,tt,ul,var


lib.parseFunc_RTE {
denyTags=
     allowTags=a, abbr, acronym, address, blockquote, br, caption, cite, 
code, div, em, embed,h1, h2, h3, h4, h5, h6, hr, i, iframe, img, li, 
link, object, ol, p, param, pre, q,span, strong, sub, sup, table, 
tbody,thead,tfoot, td, th, tr, tt, ul
     # @description Parse certain block elements seperately
     externalBlocks = table,blockquote,ol,ul,div,dl,dd
     externalBlocks {
         # The blockquote content is passed into parseFunc again...
         blockquote.stripNL=1
         blockquote.callRecursive=1
         blockquote.callRecursive.tagStdWrap.HTMLparser = 1

         div.stripNL=1
         div.callRecursive = 1

         dl.stripNL=1
         dl.callRecursive = 1

         dd.stripNL=1
         dd.callRecursive = 1

         ol.stripNL=1
         ol.stdWrap.parseFunc = < lib.parseFunc

         ul.stripNL=1
         ul.stdWrap.parseFunc = < lib.parseFunc

         table.stripNL=1
         table.stdWrap.HTMLparser = 1
         table.callRecursive=1
	table.callRecursive.tagStdWrap.HTMLparser = 1
	table.stdWrap.HTMLparser.keepNonMatchedTags = 1
         table.HTMLtableCells=1
	table.HTMLtableCells.default >
         table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc
	table.stdWrap.HTMLparser.tags.table.fixAttrib.class  >

     }
     nonTypoTagStdWrap.encapsLines {
         nonWrappedTag =
         encapsTagList = cite, 
div,p,pre,h1,h2,h3,h4,h5,h6,dt,hr,table,tbody,tr,th
         innerStdWrap_all.ifBlank = &nbsp;
addAttributes.P.class >

     }
     nonTypoTagStdWrap.HTMLparser = 1
     nonTypoTagStdWrap.HTMLparser {
         keepNonMatchedTags = 1
         htmlSpecialChars = 2
     }
}

lib.parseFunc.tags.a = TEXT
lib.parseFunc.tags.a {
   current = 1
   typolink.parameter.data = parameters : allParams
   typolink.parameter.postUserFunc = user_tinymce_rte->getHref
   typolink.ATagParams.data = parameters : allParams
   typolink.ATagParams.postUserFunc = user_tinymce_rte->getATagParams
}

lib.parseFunc_RTE.tags.a < lib.parseFunc.tags.a

related user function:

class user_tinymce_rte {
		function getHref($content,$conf) {
			if (preg_match('/\w*href\s*=\s*"([^"]+)"\s*/i', $content, $regs))
				$content = $regs[1];
			return $content;
		}
		function getATagParams($content,$conf) {
			return preg_replace('/\w*href\s*=\s*"([^"]+)"\s*/i', '', $content);
		}
	}


More information about the TYPO3-project-rte mailing list