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