#3208December 24, 2020by burgil1 answer
Hey there, Is it possible to use the web builder features on a normal hosting provider without npm? say apache or other solutions? Thank you!
gixid192
You can check the document here: https://grapesjs.com/docs/getting-started.html#import-the-library
#3207December 23, 2020by shkhalid3 answers
I am trying to create as custom block. But the form is not submitting when i use components inside content. I am able to get all the form data when i use content instead of component. But then it's not allowing me drag new inputs to form.
gixid192
The important part - the html is missing. If you can, you should share the code in codesandbox or similar online editors.
artf
Yeah, we need the complete code to understand the issue. Anyway, if you're using script please define a Custom Component instead of placing it directly in the Block, or you'll face issues on storing. I know that this is how is illustrated...
no-response[bot]
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 ac...
#3206December 23, 2020by jrkd3 answers
Feature: The ability to create multiple pages in Grapesjs. Functional design Globally:[ ] Include a link to the right of 'Device [dropdown list]' in the top banner that says 'Current Page: <page-name>'[x] Include a new menu item to the right of 'Blocks' in the right column. The icon will be something like the FA pages...
artf
The Pages module is now merged https://github.com/artf/grapesjs/pull/3411 and the new version will be soon released. A simple demo using the Pages API: https://codepen.io/artf/pen/XWpJQoY
artf
Sounds great, I really like the idea of having this one as a plugin, so if you think we need something to add (eg. some event) to make it work better, let me know.
jrkd
Got the core of this functionality working this arvo. @artf Let me know if this is still desired and I'll spend some more time on it in Jan. Note to self, TODO: add/remove page actions, visual tweaks, integrate with the storage manager & r...
#3205December 22, 2020by OleksandrNeroda3 answers
https://grapesjs.com/demo.html when i edit the button text to 'test' after reload the result:
OleksandrNeroda
@artf maybe you can help with this?
fzerman
This demo saves your changes to your local storage of the browser. If you didn't save, it is normal. Try to save or run editor.store() in console.
OleksandrNeroda
@Swindler36 in my project i do not use the local storage only everything is saved to the database, but the problem the same. I don't think that is a local storage problem.
#3204December 22, 2020by maivanchuong1 answer
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...
artf
Don't be disrespectful, read, and follow the issue template...
#3203December 21, 2020by MariusDK3 answers
Hi, I want add attributes to the category of blocks but the don’t apply.
MariusDK
@artf any advice on this?
artf
Please, elaborate better on what you're trying to achieve.
MariusDK
I want to add an html attribute on the category of blocks like Basic Category . something like this
#3202December 21, 2020by vbeskrovny1 answer
Hello everyone, can you please point me to the right direction?When I save the html code and css code - it gets new-line-trimmed. Is there any way to avoid any trimming?After inserting "custom code" block, saving and restoration from the remote storage it appears as either "Default" type of "text" type. How to set dat...
vbeskrovny
Solved by using json content from the StorageManager.
#3200December 20, 2020by sprklinginfo2 answers
Hello, If I drag and drop a block on a dynamically added component, how can I get/access the component that the block is dropped onto? I set dragMode to 'absolute' (design mode) so users can freely drop a block anywhere on pages with a background image for each page. The pages are dynamically added when the editor is...
artf
Sorry mate, but here I reply only to your main questionIf I drag and drop a block on a dynamically added component, how can I get/access the component that the block is dropped onto? all other things seem too much confusing to me and hones...
inthismachine
@artf is there a way to wrap <mj-text>xxx</mj-text> inside a mj-section and mj-column if it is dropped illegally? Like if the user tried to drop it on the body. Reason is I would like to auto add a dropped text block in to a 1 column row i...
#3199December 19, 2020by mohd74691 answer
@artf - In the documentation, it says that If we need to customize the aspect of each block preview we can pass a render callback function in the block. But here is the actual thing Basically, I wrapped this render callback in a function named func() and calling it on some ajax request If I call this on page load it w...
artf
The block manager doesn't see the change if you do this block.attributes.render = .... You have to update the property explicitly in this way: And be careful, the render function SHOULD return the HTML string or the DOM node, NOT a Promise...
#3198December 19, 2020by mprince2k181 answer
When I runCommand for inline CSS, It's giving me a warning and undefined.
artf
There is no built-in command to get inlined CSS, but you can find how it was implemented in the newsletter plugin here: https://github.com/artf/grapesjs-preset-newsletter/blob/master/src/openExportCommand.js The core functionality is a few...