Our community is looking for talented writers who are passionate about our ecosystem (jamstack, open-source, javascript) and willing to share their knowledge/experiences through our Write for the community program.
thanks tahaygun, that was a quick solution! +1 from me
I was tearing my hair out with errors due to /n characters when pasting the above code in. Not sure if it’s a mac/windows thing?
Hi,
I’m sorry to say that but this tutorial does look a bit messy as explanations are not clear + files and/or paths are not the good ones.
Can you please review it ?
There is a significant error in the instructions that prevent the plugin from working. This probably explains why a few of the comments are pointing out that nothing happened for them when restarting Strapi.
The step that says:
Replace the content of your ".src\plugins\wysiwyg\admin\src\components\QuillEditor\index.js" with the following code:
Should instead say:
Replace the content of your ".src\plugins\wysiwyg\admin\src\index.js" with the following code:
I had the same issue as @Jeff_Poulton, although it is not working as expected yet.
If I immediately click the ‘MediaLib’ button after the page loads, I get a white screen.
In order to get the MediaLibDialog component to work I have to first select the editor and type ‘something’. It doesn’t matter what I type, I can add a whitespace and then remove it again, as long as in the information component to the right the text with the label ‘created’ changes from ‘now’ to a time string.
After that it works as expected.
The information component also updates when I edit another field on the same collection type, but this does not fix the dialog.
I suspect something about the Quill editor initializes at the first interaction that the media-library component needs. But I don’t now what or how to find that out.