'CKEditor5 Vue(tify)2 Laravel - Cannot read property 'getAttribute' of null

I followed this

https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/frameworks/vuejs-v2.html#integrating-a-custom-build-from-the-online-builder

guide to install CKEditor5 with vue2, laravel and inertia, got the following error:

ckeditor.js:5 TypeError: Cannot read property 'getAttribute' of null
at IconView._updateXMLContent (iconview.js:100)
at IconView.render (iconview.js:76)
at IconView.on (observablemixin.js:254)
at IconView.fire (emittermixin.js:196)
at IconView.(anonymous function) [as render] (http://localhost:4000/_nuxt/vendors.pages/test.js:59093:16)
at ViewCollection.on (viewcollection.js:68)
at ViewCollection.fire (emittermixin.js:196)
at ViewCollection.add (collection.js:182)
at ButtonView.render (buttonview.js:168)
at ButtonView.on (observablemixin.js:254)

As far as I understand by the posts I saw on the internet, the issue is that svg images cannot be loaded, but the solutions I found did not work.

If you want to take a look I created a Public Repository with the project, maybe you can easly find the issue (find TODO::CKEDITOR5)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source