Replies: 4 comments 2 replies
-
I believe you can implement the first three features with the current API, not too sure about the last one but it could be possible, some APIs could certainly be provided to make this easier. Anyways I doubt this would be added by default since the goal now is to make the core behave more headless. |
Beta Was this translation helpful? Give feedback.
-
@Ju99ernaut thanks for the reply, could you point me to the relevant APIs? |
Beta Was this translation helpful? Give feedback.
-
I think you can do it in a ugly way, by setting up the toolbar in every component.select and add 2 more buttons, insert before/after, with this, you can open a modal with blocks and on click, drop it on selected model position +1 or -1. |
Beta Was this translation helpful? Give feedback.
-
Yeah, as mentioned by @Ju99ernaut the long-term goal is to make the core more headless so it would be possible to create the editor with your UI framework/components of choice. One thing I'm planning for the Canvas API is to allow an easier approach for stuff like:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently inserting a block requires switching to blocks tab resulting in an unnecessary click every so often.
I've recorded a short overview of how this is solved in another web builder: https://www.youtube.com/watch?v=A2PfRPRDT5E
A similar feature could be a good fit for GrapeJS and also a first step to enable layouts in which sidemenu (style & layer managers, blocks) can be hidden and pages designed (more) fluently.
f(currentBlock) returns blocksToOffer[]
would be nice. If a block is in certain state it might make sense to offer a different set of blocks to insert.@artf what do you think about this?
Beta Was this translation helpful? Give feedback.
All reactions