Bug #85346
closedTyposcript Editor not showing entries from line about 670
100%
Description
I have many entries in typoscript template setup (about 800 lines). But editor shows empty lines after certain line (for my example line 673). see screenshots.
Files
Updated by Guido Schmechel over 6 years ago
Can you please possibly attach your TypoScript as a file? I simply generated 1000 lines with config.baseURL and that was no problem. Maybe it's more of a certain setting/line.
Updated by Georg Ringer over 6 years ago
- Status changed from New to Needs Feedback
Updated by Martin Weymayer over 6 years ago
yes - you are right. new editor has problems with scripts like analytics:
page.headerData.20 = TEXT
page.headerData.20.value (
<script>
var gaProperty = 'UA-xxx-3';
var disableStr = 'ga-disable-' + gaProperty;
if (document.cookie.indexOf(disableStr + '=true') > -1) {
window[disableStr] = true;
}
function gaOptout() {
document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
window[disableStr] = true;
}
</script>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxx-3', 'auto');
ga('send', 'pageview');
ga('set', 'anonymizeIp', true);
</script>
)
two more thins would be nice to have:
- height of editor should be higher
- clicking "strg + s" should save datas like in "old" editor
martin
Updated by Riccardo De Contardi about 6 years ago
- Status changed from Needs Feedback to New
The issue is still reproducible with 9.5.2-dev (latest master)
if you just try to copy and paste the code in comment 3 inside the TS Setup field, everything is not visibile. The problem seems caused by the second script block
Updated by Georg Ringer about 6 years ago
- Category set to t3editor
- Status changed from New to Accepted
Updated by Riccardo De Contardi over 5 years ago
- Related to Bug #88262: t3Editor: JS Crash "VM3084 typoscript.js:1193 Uncaught TypeError: Cannot read property 'lex' of null" added
Updated by Riccardo De Contardi over 5 years ago
As reported also here #88262 the editor throws the error:
Uncaught TypeError: Cannot read property 'lex' of null
The "Problematic" piece fo code that crashes the editor is just:
function()
To be more precise, the error triggers when you write:
page.headerData.20 = TEXT page.headerData.20.value ( function() something function() )
or
page.headerData.20 = TEXT page.headerData.20.value ( something something() something function() )
but on both cases only at the second "function()
" and only when you write the "()
"
It does not occur with:
page.headerData.20 = TEXT page.headerData.20.value ( something() something function() )
Updated by Nikolas Hagelstein over 5 years ago
Confirmed on 9.5.6 happens to facebook tracking pixels as well.
Updated by Gerrit Code Review over 5 years ago
- Status changed from Accepted to Under Review
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60900
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61053
Updated by Andreas Fernandez over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9441ed246dddb8f477d461d618f3f313c3fe583d.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed