#3083Oct 20, 2020by Joshmamroud3 answers
Hi @artf , How would you recommend highlighting the components on the canvas that the selected block can be dropped into based on draggable & droppable rules? In other words, when a user starts dragging a block from the block manager I would like to highlight (add a border or inset box-shadow) the components on the ca...
artf
With the introduction of Canvas Spots I think this feature request can be considered done. Here is a quick demo example https://github.com/GrapesJS/grapesjs/assets/11614725/ea956282-b6bd-455e-af9b-6b5fb7707d71
artf
I think, currently, it's not easy to achieve it. The Sorter module is quite old and messy and I'd need to refactor it in order to allow such functionality (which, for sure, I'd be glad to have). Unfortunately, no ETA for such a thing :/
kerryj89
Was just thinking of this. I think it's the natural evolution and necessary when you can set limitations of where something is droppable.
#2282Sep 20, 2019by pouyamiralayi3 answers
Hi there! the currently used structure of grapesjs is based on leveraging backbonejs model-view concept for implementing the Virtual Dom inside the ecosystem of grapesjs. Virtual Dom is a great practice which has a vast area of applications and benefits; but the downside of virtual dom is the actual gap between virtua...
artf
Yes @lexoyo the final goal here would be to stop relying on Backbone's View and migrate all editor UI elements to web components. In the end, there will be @grapesjs/core (no UI) and @grapesjs/core-ui with a set of reusable and extendable...
lexoyo
Ok that's interesting :) I can't wait to see that and i will contribute as much as i can
lexoyo
Nice idea I use lit-html quite lot, it's the same approach but also adds web components when/if needed But i don't get where would backbone stop? And what would be without it. I guess it is a question that is broader about what @artf annou...
#1806Feb 18, 2019by WebEtSolutions3 answers
Hi and thank's for your job ! It's possible to make traits under cateogories like blocks ? If it's possible, maybe use the Category object like the BlockManager ? Categories on BlockManager work fine, so if TraitManager add the same system of category, it's perfect ! What it's the best method for you for implements th...
artf
Will be available in the next release, Thanks @amirrahmani76 for the PR ❤️
WebEtSolutions
Hi, no problem we will work for this PR.
Uysim
Do we have this feature yet?
#1745Jan 23, 2019by sankaran853 answers
Hi Team, We are using grapesjs newsletter plugin in our project for importing and preview the template. We are facing some difficulty in retaining the template structure which we import in to grapesjs editor. Please check the below example IMPORTED HTML EXPECTED OUTPUT ACTUAL OUTPUT , what we get from editor using the...
wimurk
@artf i am. First get the html with ->getHtml then put it in an dom element. Then extract the body en remove the title, meta, etc from the dom. Then extract the html again. Long live JQuery. But still would be a great feature to do all tha...
artf
<img width="1253" alt="5" src="https://github.com/GrapesJS/grapesjs/assets/11614725/830ea394-773f-4d76-8ea0-37af7e250760"> Added the possibility of importing HTML documents https://github.com/GrapesJS/grapesjs/pull/5895
artf
Currently, the editor imports only the content inside the body. To make it understand also other document nodes, it'd require a refactor of the current HTML parser