Issue #2154✓ SolvedOpened July 20, 2019by adelliinaa8 reactions

Custom Component Integration

Quick answerby artf7

Ok, but what will you do with the output (Angular components) of the editor? I mean, how you will use it at the end? Anyway, I see two different approaches to this kind of situation:Create a custom render for each component (the exact thing/concept I've made with MJML). This is the most accurate approach because I sho...

Read full answer below ↓

Question

Hello! I want to integrate a custom component with GrapesJS, using Angular CLI 7, but it doesn’t render. My component is built on top of another open-source component. When I want to include it in any Angular project, I would just import the dependencies/libraries in the typescript files and the component itself (e.g.: <h2> <custom-comp> </custom-comp> </h2>) in the HTML. In order to use it within GrapesJS, I initially created a Block Manager, where I attached my custom component: var editor = grapesjs.init({...}); var blockManager = editor.BlockManager; blockManager.add(‘custom-comp’, { labe...

Answers (3)

👍 Most helpfulartfAugust 9, 2019

Ok, but what will you do with the output (Angular components) of the editor? I mean, how you will use it at the end? Anyway, I see two different approaches to this kind of situation:Create a custom render for each component (the exact thing/concept I've made with MJML). This is the most accurate ap...

artfJuly 31, 2019

@adelliinaa let's start from a simple question because I don't understand, what kind of editor are you trying to create? A builder for Angular components?!?

adelliinaaJuly 31, 2019

I want to create a form builder similar to the one which you created with the MJML components, but using Angular CLI instead of JS. And yes, the customed components which I want to integrate within GrapesJS are built in Angular as well.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.