28172c9a3c13c8f848eda8df6a8bb4e827cd5d78
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Configuration / TypoScript / Helper / ParseFunc.typoscript
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 "default" transformation.
51 lib.parseFunc_RTE < lib.parseFunc
52 lib.parseFunc_RTE {
53 # Processing <ol>, <ul> and <table> blocks separately
54 externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre
55 externalBlocks {
56 ol {
57 stripNL = 1
58 stdWrap.parseFunc = < lib.parseFunc
59 }
60 ul {
61 stripNL = 1
62 stdWrap.parseFunc = < lib.parseFunc
63 }
64 pre {
65 stdWrap.parseFunc < lib.parseFunc
66 }
67 table {
68 stripNL = 1
69 stdWrap {
70 HTMLparser = 1
71 HTMLparser {
72 tags.table.fixAttrib.class {
73 default = contenttable
74 always = 1
75 list = contenttable
76 }
77 keepNonMatchedTags = 1
78 }
79 }
80 HTMLtableCells = 1
81 HTMLtableCells {
82 # Recursive call to self but without wrapping non-wrapped cell content
83 default.stdWrap {
84 parseFunc = < lib.parseFunc_RTE
85 parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
86 }
87 addChr10BetweenParagraphs = 1
88 }
89 }
90 div {
91 stripNL = 1
92 callRecursive = 1
93 }
94 article < .div
95 aside < .div
96 blockquote < .div
97 footer < .div
98 header < .div
99 nav < .div
100 section < .div
101 dl < .div
102 dd < .div
103 }
104 nonTypoTagStdWrap {
105 encapsLines {
106 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt
107 remapTag.DIV = P
108 nonWrappedTag = P
109 innerStdWrap_all.ifBlank = &nbsp;
110 }
111 }
112 nonTypoTagStdWrap {
113 HTMLparser = 1
114 HTMLparser {
115 keepNonMatchedTags = 1
116 htmlSpecialChars = 2
117 }
118 }
119 }