[FEATURE] Show list of failed input fields in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Configuration / TypoScript / Static / Setup / lib.parseFunc.ts
1 # Creates persistent ParseFunc setup for non-HTML content.
2 lib.parseFunc {
3         makelinks = 1
4         makelinks {
5                 http {
6                         keep = {$styles.content.links.keep}
7                         extTarget = {$styles.content.links.extTarget}
8                 }
9                 mailto {
10                         keep = path
11                 }
12         }
13         tags {
14                 link = TEXT
15                 link {
16                         current = 1
17                         typolink {
18                                 parameter.data = parameters : allParams
19                                 extTarget = {$styles.content.links.extTarget}
20                         }
21                         parseFunc.constants = 1
22                 }
23                 a = TEXT
24                 a {
25                         current = 1
26                         typolink {
27                                 parameter.data = parameters:href
28                                 title.data = parameters:title
29                                 aTagParams.data = parameters:allParams
30                                 target.data = parameters:target
31                                 extTarget = {$styles.content.links.extTarget}
32                                 extTarget.override.data = parameters:target
33                         }
34                 }
35         }
36         allowTags = {$styles.content.allowTags}
37         denyTags = *
38         sword = <span class="ce-sword">|</span>
39         constants = 1
40         nonTypoTagStdWrap {
41                 HTMLparser = 1
42                 HTMLparser {
43                         keepNonMatchedTags = 1
44                         htmlSpecialChars = 2
45                 }
46         }
47 }
48
49
50 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
51 lib.parseFunc_RTE < lib.parseFunc
52 lib.parseFunc_RTE {
53         # Processing <table> and <blockquote> blocks separately
54         externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre
55         externalBlocks {
56                 # The blockquote content is passed into parseFunc again...
57                 blockquote {
58                         stripNL = 1
59                         callRecursive = 1
60                         callRecursive {
61                                 tagStdWrap {
62                                         HTMLparser = 1
63                                         HTMLparser.tags.blockquote.overrideAttribs = style="margin-bottom:0;margin-top:0;"
64                                 }
65                         }
66                 }
67
68                 ol {
69                         stripNL = 1
70                         stdWrap.parseFunc = < lib.parseFunc
71                 }
72
73                 ul {
74                         stripNL = 1
75                         stdWrap.parseFunc = < lib.parseFunc
76                 }
77
78                 table {
79                         stripNL = 1
80                         stdWrap {
81                                 HTMLparser = 1
82                                 HTMLparser {
83                                         tags.table.fixAttrib.class {
84                                                 default = contenttable
85                                                 always = 1
86                                                 list = contenttable
87                                         }
88                                         keepNonMatchedTags = 1
89                                 }
90                         }
91                         HTMLtableCells = 1
92                         HTMLtableCells {
93                                 # Recursive call to self but without wrapping non-wrapped cell content
94                                 default.stdWrap {
95                                         parseFunc = < lib.parseFunc_RTE
96                                         parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
97                                 }
98                                 addChr10BetweenParagraphs = 1
99                         }
100                 }
101
102                 div {
103                         stripNL = 1
104                         callRecursive = 1
105                 }
106
107                 article < .div
108                 aside < .div
109                 footer < .div
110                 header < .div
111                 nav < .div
112                 section < .div
113                 dl < .div
114                 dd < .div
115         }
116         nonTypoTagStdWrap {
117                 encapsLines {
118                         encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt
119                         remapTag.DIV = P
120                         nonWrappedTag = P
121                         innerStdWrap_all.ifBlank = &nbsp;
122                 }
123         }
124         nonTypoTagStdWrap {
125                 HTMLparser = 1
126                 HTMLparser {
127                         keepNonMatchedTags = 1
128                         htmlSpecialChars = 2
129                 }
130         }
131 }