Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
DReffects2 Posted June 6, 2022 Posted June 6, 2022 Well it's rather simple: Insert the following HTML code into the source code view of the WYSIWYG editor and you will breakt it: <blockquote class="ipsQuote">Hello there!</blockquote> This will throw the following JS error: Uncaught TypeError: b.children[0].hasClass is not a function at a.upcast (plugin.js?t=M38E:2:54) at Array.<anonymous> (ckeditor.js?v=3467ab98ca1654518773:29:457) at iterator (ckeditor.js?v=3467ab98ca1654518773:978:440) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.htmlParser.element.forEach (ckeditor.js?v=3467ab98ca1654518773:302:462) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.htmlParser.element.forEach (ckeditor.js?v=3467ab98ca1654518773:303:57) at b.<anonymous> (ckeditor.js?v=3467ab98ca1654518773:993:47) at b.e (ckeditor.js?v=3467ab98ca1654518773:10:246) at b.<anonymous> (ckeditor.js?v=3467ab98ca1654518773:12:91) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js?v=3467ab98ca1654518773:13:285) at CKEDITOR.htmlDataProcessor.toHtml (ckeditor.js?v=3467ab98ca1654518773:323:170) upcast @ plugin.js?t=M38E:2 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:29 iterator @ ckeditor.js?v=3467ab98ca1654518773:978 forEach @ ckeditor.js?v=3467ab98ca1654518773:302 forEach @ ckeditor.js?v=3467ab98ca1654518773:303 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:993 e @ ckeditor.js?v=3467ab98ca1654518773:10 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:12 window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire @ ckeditor.js?v=3467ab98ca1654518773:13 toHtml @ ckeditor.js?v=3467ab98ca1654518773:323 setData @ ckeditor.js?v=3467ab98ca1654518773:368 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:375 e @ ckeditor.js?v=3467ab98ca1654518773:10 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:12 window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire @ ckeditor.js?v=3467ab98ca1654518773:13 setData @ ckeditor.js?v=3467ab98ca1654518773:276 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:809 CKEDITOR.editor.setMode @ ckeditor.js?v=3467ab98ca1654518773:353 exec @ ckeditor.js?v=3467ab98ca1654518773:925 exec @ ckeditor.js?v=3467ab98ca1654518773:205 execCommand @ ckeditor.js?v=3467ab98ca1654518773:274 CKEDITOR.tools.extend.click @ ckeditor.js?v=3467ab98ca1654518773:678 execute @ ckeditor.js?v=3467ab98ca1654518773:679 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:680 (anonymous) @ ckeditor.js?v=3467ab98ca1654518773:31 callFunction @ ckeditor.js?v=3467ab98ca1654518773:31 onclick @ ?do=edit&d=6&id=13842&csrfKey=e5a0e93d973b6315bd8617bc97e651cf:1 Bascially, if a <blockquote >with the class "ipsQuote" does NOT start with an an html element like <p>, <div>, <span> etc. the editor will break. This works (despite <xzy> is NOT a valid html tag): <blockquote class="ipsQuote"><xyz>Hello there!</xyz></blockquote> this kills the editor: <blockquote class="ipsQuote">Hello there!</blockquote>
Marc Posted June 6, 2022 Posted June 6, 2022 I have tagged our developers on this to advise. Someone will be in touch on this DReffects2 1
Andy Millne Posted June 7, 2022 Posted June 7, 2022 Thank you for reporting, this will be resolved in a future release. DReffects2 and SeNioR- 1 1
SeNioR- Posted July 20, 2023 Posted July 20, 2023 From time to time I see this error in the console. Uncaught TypeError: Cannot read properties of null (reading 'getElementsByTag') at $.setState (ckeditor.js?v=75e091aa041689860322:858:110) at $.g (ckeditor.js?v=75e091aa041689860322:852:133) at b.f (ckeditor.js?v=75e091aa041689860322:10:246) at b.<anonymous> (ckeditor.js?v=75e091aa041689860322:12:91) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js?v=75e091aa041689860322:13:285) at ckeditor.js?v=75e091aa041689860322:355:85
Stuart Silvester Posted July 20, 2023 Posted July 20, 2023 25 minutes ago, SeNioR- said: From time to time I see this error in the console. Uncaught TypeError: Cannot read properties of null (reading 'getElementsByTag') at $.setState (ckeditor.js?v=75e091aa041689860322:858:110) at $.g (ckeditor.js?v=75e091aa041689860322:852:133) at b.f (ckeditor.js?v=75e091aa041689860322:10:246) at b.<anonymous> (ckeditor.js?v=75e091aa041689860322:12:91) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js?v=75e091aa041689860322:13:285) at ckeditor.js?v=75e091aa041689860322:355:85 It might be related to https://github.com/ckeditor/ckeditor4/issues/5369 but it's pretty safe to say this won't be fixed. CKEditor 4 isn't going to receive any further updates. SeNioR- 1
Recommended Posts