dimitrov-adrian / directus-extension-editorjs-interface

Block editor (Editor.js) interface for Directus 9
https://www.npmjs.com/package/directus-extension-editorjs
GNU General Public License v3.0
180 stars 42 forks source link

Bug: Image Plugin not working in Directus rc 68 #19

Closed PeterEhses closed 2 years ago

PeterEhses commented 2 years ago

After updating from rc 94 to 98 (jump due to database update bug with new login system), the image plugin won't show the image anymore. The json is updated correctly as far as I can tell, but the ui shows the loading spinner. image

The following Error is thrown repeatedly:

 Uncaught TypeError: Cannot read properties of null (reading 'getBoundingClientRect')
    at c (index.js:27)
    at l (index.js:27)
    at index.js:27
    at p.show (index.js:27)
    at E.updateToolboxesPosition (index.js:27)
    at E.hideToolboxes (index.js:27)
    at Object.onClick (index.js:27)
    at d.popoverClicked (index.js:27)
    at HTMLDivElement.<anonymous> (index.js:27)
PeterEhses commented 2 years ago

I've solved the problem for now by giving read access for all files to public since the problem seems to be that the image url is created without access token when it would normally need one.

dimitrov-adrian commented 2 years ago

@PeterEhses indeed the issue was the missing token, thanks for catching this.