GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.38k stars 4.06k forks source link

[Question] Standard approach in slight restructuring the HTML toolbar & badge #3130

Closed jenter closed 3 years ago

jenter commented 3 years ago

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: image

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 advance for any feedback or insight

artf commented 3 years ago

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 commented 3 years ago

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

artf commented 3 years ago

Great, thanks Jason

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.