GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

πŸ” outdated
#1020Apr 9, 2018by Blendman9742 answers
0 reactions

Non local connexion

Using latest version with my ubuntu laptop. Node is installed, "npm start" is working but I can't manage to acces grapesjs from another computer, node server seems to be accepting only local connexion. Is there a way to fix this ? And is there a way I can change the port on wich it's running (8080) ?

artf

We're using webpack-dev-server as a development server therefore you can use any of its options, eg.

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1019Apr 9, 2018by faizansaiyed3 answers
0 reactions

Body Background color does not change second time.

Hey, I'm using [email protected]. I'm having an issue with body CSS stylings. My scenario: I'm opening a blank file from local file system. I changed body background color to #ff0000 and saved the file. File is saved properly with css as of body{background-color:#ff0000} when I opened that file in text editor locally. But...

faizansaiyed

Maybe related to #552

artf

Hey thanks Faizan, as you already realized, we aware of this issue, therefore I close this one and suggest you to follow it there (subscribe to it)

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1018Apr 9, 2018by andresmgsl2 answers
1 reactions

Change default panel for Block Manager and Style Manager

Hi again Artf, I was reviewing the files that you defined with the basic commands (such as opening the style manager) and I have a question about it. Is it possible to modify the default panel name in which the Block Manager and Style Manager are opened? As we can see here and here the names of the panels are hard-cod...

artf

Well yeah, those panels are designed that way just to create the "tab effect", you can add a new command with the same id and implement your logic. I also suggest to have a look at how to create a fully custom panels

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1016Apr 8, 2018by johndc72 answers
0 reactions

Button staying pressed after running command

Is there any way to keep a button from staying pressed after the command completes? Been looking through the documentation and didn't see anything regarding this

artf

The button instance is passed as a second argument if the command is executed from a button, so you can disable it in this way

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1015Apr 7, 2018by andresmgsl3 answers
0 reactions

Where are the built in properties defined?

Hey artf, really nice tool. I'm customizing it and i need to do some adjustment. Thanks

artf

Hi Andres, if you're talking about Component's properties you will find them here

andresmgsl

Thank you for your answer, I did not refer to those but to these, but I could already notice that they are native CSS properties. I have another doubt but I will open a new problem to touch it in detail.

artf

Ah ok, those are created from this factory object

#1014Apr 7, 2018by tommedema3 answers
1 reactions

Making preview mode remember if visibility mode should be restored or not

Currently when you enable preview mode and then disable it again, it always turns on visibility mode, even if visibility mode was turned off. This can be rather annoying. I would like to create a PR to fix this, but could use your advice because I'm not completely following how you would do this properly in the way yo...

artf

I really like the idea, what about keeping track of all commands status at Commands level?!? Like for example, on any runCommand(CMDID) we gonna store it inside Commands.active object (eg. active[CMDID] = 1) and clear on stopCommand. Then...

tommedema

@artf I can probably do it if I can ask some questions here along the way. I'm still getting used to Backbone. Where would you put that Commands object? Could you elaborate more on this?I'd like also to move the runCommand/stopCommand logi...

artf

For Commands I mean the Commands moduleCould you elaborate more on this? I'd like, for example, moving this Editor. runCommand logic inside the Commands module, so in the Editor we will get:

#1012Apr 6, 2018by anand-gopinath3 answers
0 reactions

Is it possible to export the html content with data attributes in editor?

@artf Is it possible to export the html content with data attributes in order reuse? We discussed about this on earlier , on How to pass data attributes in a model <img width="914" alt="screen shot 2018-04-06 at 4 07 48 pm" src="https://user-images.githubusercontent.com/25955939/38417119-c0af0b02-39b4-11e8-8606-4fb2bf...

anand-gopinath

@artf - Could you please take a look...

artf

No @anand-gopinath, data-gjs-* attributes are only for import purpose

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1011Apr 6, 2018by pg16712 answers
0 reactions

Does grapejs provide variable selection in the UI

I have just come across grapejs and it looks amazing but I cannot find good information on how to manage variables. Is there are a way to give grapejs a list of allowed variables so the user can insert them easily through the UI when creating a template (editing text) or do they have to just type in the variable synta...

artf

There is no such a built-in feature but you can easily extend grapesjs for it. If you're looking for the usage of variables during the text editing this snippet might help you. You can also make use of Blocks to create draggable variables,...

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1009Apr 5, 2018by krunal0393 answers
0 reactions

Richtext editor for trait

Is there way to have richtext box for trait. We want to user to insert rich text for trait and not sure how can we do it. We have below use case. There would be mutliple picture on page and once user mouse hover it will display some rich text and we want create component so admin can easily create page with above feat...

Piterden

But traits actually, are attributes of an element. For what purpose you need to use RTE there.

krunal039

We need user to add rich text with image and rich text is only visible when image mouse hover and user can drag and drop multiple image with rich text. On 6 April 2018 at 05:32, Denis Efremov <[email protected]> wrote: But traits ac...

Piterden

You don't need a RTE-trait. Why user can't use RTE in inline mode?

#1008Apr 5, 2018by rajatkumcom2 answers
0 reactions

Convert local storage into sessionStorage

Thanks in advance! I want to use browser's sessionStorage instead of localStorage. Could some one please help me with this.

artf

Implement it via a custom storage https://github.com/artf/grapesjs/wiki/API-Storage-Manager#add

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Browse all topics