GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
Other
22.8k stars 4.12k forks source link

BUG: Custom Component not able to visible in grapsJs/studio at first rendering #6081

Closed MdShadabAhamad closed 3 months ago

MdShadabAhamad commented 3 months ago

GrapesJS version

What browser are you using?

chrome

Reproducible demo link

https://stackblitz.com/edit/vitejs-vite-4noagg?file=src%2FApp.tsx

Describe the bug

I am not able to see my custom component at the first time of my react application rendering , when i try to search it on the block section then its appeared and after searching it can be visible in block section.

Code of Conduct

artf commented 3 months ago

Use the plugins when you want to extend something at the GrapesJS API level

<StudioEditor
        ref={editorRef}
        options={{
          plugins: [
            editor => addCustomComponent(editor)
          ],
          // ...
MdShadabAhamad commented 3 months ago

i also added custom style setupStyleManager but its show blank ,https://stackblitz.com/edit/vitejs-vite-4noagg?file=src%2FApp.tsx