Bug #94310
closedRTEHTMLArea Bug Chrome 91.0.4472.101
0%
Description
Hello everyone,
i would like to report the following bug.
I have installed the extension rtehtmlarea.
I want to edit a standard text element. When the wysiwyg editor is shown, i can see the following error :
Uncaught TypeError: Cannot read property 'documentElement' of null
at Iframe.initializeIframe (Iframe.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:202)
at Iframe.render (Iframe.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:57)
at Framework.render (Framework.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:75)
at new Framework (Framework.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:45)
at Editor.createFramework (Editor.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:189)
at Editor.generate (Editor.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:175)
at Editor.js?bust=cb447f8edb30784c674c7418ad59e08d5e85f7c9:179
I check
typo3\sysext\rtehtmlarea\Resources\Public\JavaScript\HTMLArea\Editor\Iframe.js
where the problem seems to be located :
At row 201 :
// WebKit
} else if (UserAgent.isWebKit && (!iframe.contentDocument.documentElement || !iframe.contentDocument.body)) {
window.setTimeout(function () {
self.initializeIframe();
}, 50);
Seems iframe.contentDocument is not initialized (eg :is null)
Tested in TYPO3 7.6.32
Rtehtmlarea version 7.6.32 and 8.7.0
Chrome version 91.0.4472.101 (64 Bit)
Updated by Christian Kuhn about 3 years ago
- Status changed from New to Closed
Hey. Thanks for the report.
I fear, the core team won't do anything about this anymore:
Core v7 reached end-of-life since november 2018. The extension has been extracted to https://github.com/FriendsOfTYPO3/rtehtmlarea since v8 and might be maintained over there.
If you really need support for this in v7, you could contact typo3.com to find out if they fixed or will fix this issue in their ELTS plans.
I'll go ahead and close this issue.
Updated by Stefano Danieli about 3 years ago
- Related to Bug #94334: rtehtmlarea errors in Chrome and Edge after latest update added
Updated by Stefano Danieli about 3 years ago
Daniel Huf wrote in #note-3:
Not sure about the side effects, but removing the webkit part seems to make it work.
web/typo3conf/ext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/Iframe.js line 202 to 205
[...]
Thank you :
https://github.com/FriendsOfTYPO3/rtehtmlarea/issues/46
Here, seems to be another solution (tested and running on Typo3 v7.6.32
).
Updated by Daniel Huf about 3 years ago
Stefano Danieli wrote in #note-4:
Daniel Huf wrote in #note-3:
Not sure about the side effects, but removing the webkit part seems to make it work.
web/typo3conf/ext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/Iframe.js line 202 to 205
[...]Thank you :
https://github.com/FriendsOfTYPO3/rtehtmlarea/issues/46
Here, seems to be another solution (not yet tested by me).
Oh thanks, didn't see that
Updated by Daniel Huf about 3 years ago
Oops sorry, forget my response. I updated the version over composer and the cache was in the way. 8.7.3 https://github.com/FriendsOfTYPO3/rtehtmlarea ist working on the v8