-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drag and drop one block to another block container #86
Comments
Are you adding this to a .html or a .php block? I just checked and see this does not work in a .php block, but it does in a .html block.
which refers to the simple html block
|
Have you found an update to this? Or is there a way to hide the |
So I am not sure if this is the issue or not, but just incase it helps. If you create two blocks and one has a When you drag them onto the page builder. The php one is a nested element that looks like this: <div data-gjs-type="default" draggable="true" id="icm2u" class="IDKU5N4AKU4P39V7" data-cursor="default">
<div data-gjs-type="default" draggable="true" phpb-blocks-container="" id="i8odo"></div>
</div> Where the HTML one isn't nested and looks like <div data-gjs-type="default" draggable="true" phpb-blocks-container="" id="iap68" class="IDKU5N4CKX79L6U9 gjs-hovered"></div> I am not quite sure if its GrapesJS or soemthing you are doing causing this cause you don't have an unminfied version of your scripts available for me to easily debug the issue. |
The unminified scripts are located here: https://github.com/HansSchouten/PHPageBuilder/tree/master/src/Modules/GrapesJS/resources/assets/js |
It is possible to hide a block from the blocks sidebar using the setting: |
I am still not sure if its something in the PHP or the javascript that causing the wrapping, but its really the only difference I can find. I haven't found anything in the PHP classes that seems to be causing this. So I will look through the javascript. Being able to see the compiled version should help a lot. Thanks.
Yeah I kinda figured that out while trying to figure out how to solve this issue. As I'd prefer to use php files to have settings. |
All I can tell is it has something to do with the This is kinda a frustrating bug and I wish I could figure out whats causing it cause the workaround causes a lot of issues with my css. I am going to try and fine the problem again today, but If I am unable to I'll just have to wait for you to fix it. LOL |
Any update about this bug? I tried |
Anyone able to figure this out? It's quit annoying that the block is draggable initially, but after a save no longer is. |
Hi everyone, I guess the main issue is in using containers inside .html blocks. I personally use more and more .php blocks, which has the benefit of customizing the block with settings. Then to allow editable texts I include html blocks inside the code of the .php block (my paragraph block is html, all wrappers are php and include the paragraph using In this specific use-case of creating a layout I have a folder layout which contains the following code to create Bootstrap 5 layouts: https://gist.github.com/HansSchouten/3adb9725f312fe8ed6d665982f381181 |
Great project!
I can't drop blocks one to another using browser. The following code renders dashed boxes but doesn't accept the drop.
The text was updated successfully, but these errors were encountered: