GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#1021April 9, 2018by FrciSmrci3 answers
0 reactions

[QUESTION] Style Manager sectors

Hey @artf , due to the lack of documentation I have a hard time figuring out, how to add component settings (traits ) to the Style Manager panel section as you did in the demo. Could you please give me a hint how to implement this? I think that the demo project code if open sourced would come real handy when it comes...

artf

I think that the demo project code if open sourced would come real handy when it comes to understanding of the grapesjs as a whole. It is indeed, the whole site is open sourced, you just have to switch the branch https://github.com/artf/gr...

FrciSmrci

@artf Omg, thank you. :) Not sure how I manage to miss this.

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.

#1020April 9, 2018by Blendman9742 answers
0 reactions

[QUESTIONS/BUG?] 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.

#1019April 9, 2018by faizansaiyed3 answers
0 reactions

[Issue] 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.

#1018April 9, 2018by andresmgsl2 answers
1 reactions

[Question] 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.

#1016April 8, 2018by johndc72 answers
0 reactions

[Question] 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.

#1015April 7, 2018by andresmgsl3 answers
0 reactions

[Question] 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

#1014April 7, 2018by tommedema3 answers
1 reactions

[Question] 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:

#1013April 7, 2018by tommedema3 answers
5 reactions

[Feature] Allow editing text nodes

Issue: text nodes that do not have a parent are not editable. Text nodes that have a parent but also have a sibling (e.g. a span), are also not editable. Support for raw text nodes is necessary. Example that doesn't work: Expected behavior is that the text node Try to edit me can be edited. Actual behavior is that it...

mipierce

tommedema

@artf <gjs-text-node> seems like a good solution!

artf

Aware and agree, the question is just How?. Text nodes don't have contentEditable property, so probably we need to try to wrap them all inside <span>s (only in its View) and see how all is handled

#1012April 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.

#1011April 6, 2018by pg16712 answers
0 reactions

[Question] 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.