monsieurbiz / SyliusRichEditorPlugin

This plugin add a rich editor on fields to be able to drag and drop elements and edit it.
MIT License
67 stars 41 forks source link

CollectionForm is not a function when adding image collection #251

Open JordiDekker opened 3 hours ago

JordiDekker commented 3 hours ago

Hi! I really like to use the RichEditior in various ways to help shop admins to add more data to their pages. When trying to add an image collection the editor is not working as intended:

Uncaught TypeError: $(...).find(...).CollectionForm is not a function

The default Sylius, where the CollectionForm is defined, is loaded into the page using:

<!-- BEGIN BLOCK | event name: "sylius.admin.layout.javascripts", block name: "scripts", template: "@SyliusAdmin/_scripts.html.twig", priority: 10 -->
<script src="/build/admin/admin-entry.js"></script>
<script src="/build/app/admin/app-admin-entry.js"></script>
<!-- END BLOCK | event name: "sylius.admin.layout.javascripts", block name: "scripts" -->

I am not sure why the CollectionForm is the only thing that's not working. All other thing of the editor are working fine.

maximehuran commented 3 hours ago

Hi @JordiDekker !

Which version of Sylius are you using ?

JordiDekker commented 2 hours ago

@maximehuran Sylius 1.12.19 with RichEditor plugin version 2.10.2.