Issue #3130đź’¬ AnsweredOpened November 10, 2020by jenter2 reactions

Standard approach in slight restructuring the HTML toolbar & badge

Quick answerby artf❤ 1

Hi @jenter, good question. Unfortunately, I've never focused that much on the possibility of canvas extension or its UI elements, so for sure there is no right way to do that. If anyone is willing to propose solutions I'll be glad to evaluate them.

Read full answer below ↓

Question

Version: 0.15.10 This question is intended to validate if there is a proper way to extend the current https://github.com/artf/grapesjs/blob/master/src/canvas/view/CanvasView.js with a custom plugin. We were specifically reviewing the render() method within this file, to slightly alter the HTML to combine the toolbar and badge for this intended UI design: In the past, I have successfully extended commands with editor.Commands.extend('select-comp', { but wanted to get feedback if a similar approach could be taken with view files -and- if you see any red flags with this altered UI. thanks in adv...

Answers (4)

artf• November 18, 2020

Hi @jenter, good question. Unfortunately, I've never focused that much on the possibility of canvas extension or its UI elements, so for sure there is no right way to do that. If anyone is willing to propose solutions I'll be glad to evaluate them.

jenter• November 23, 2020

@artf I will review some proposals / thoughts and add it to this thread.

artf• November 25, 2020

Great, thanks Jason

GJSBlock• May 17, 2026

Thanks for reporting this, @jenter. Great question about [Question] Standard approach in slight restructuring the HTML toolbar & badge. The recommended approach with Canvas is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event...

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.