GrapesJS Issues

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

1,399 issues found

🔍 outdated
#837Feb 5, 2018by RiyaThete3 answers
0 reactions

Javascript Deletes

Whenever I import, using import plugin, javascript part of the code is deleted. Is there any way to preserve it? I want to used the exported html file directly, but cannot use it now because javascript is missing in it

arthuralmeidap

What is the name of the plugin?

RiyaThete

The 3rd last import plugin .It is available on http://grapesjs.com/demo.html

arthuralmeidap

try to run editor.getJs(). see if it returns the previous imported JS.

#836Feb 5, 2018by kickbk2 answers
1 reactions

Intercept and prevent an asset from being removed

How would you go about intercepting and preventing an asset from being removed? I suspect the image may already have been removed by the time we run "asset:remove". If so how do we tap into the actions and ask for confirmation? The reason I ask is because I want to tie a deletion in GJS to permanent deletion of images...

kickbk

Missed it in the docs.

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.

#835Feb 4, 2018by chiqui3d2 answers
1 reactions

Update the Canvas with a custom function

I'm trying to create a function that replaces all the attributes of link, these make the change in the canvas, but don't save it when I try it with the editor.storage() function; here the code:

artf

@chiqui3d in this way you're just updating the view, the output code is generated by the model instead (when you update the model changes are reflected in the view) So your example will be something like 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.

#834Feb 4, 2018by Praunda3 answers
2 reactions

Is there anyway to edit the final HTML - CSS code with an integrated code editor?

Hello there! I was wondering if I can edit the final code with a code editor.

cjpollard

Someone put up a nice bit of code for that here. https://github.com/artf/grapesjs/issues/74#issuecomment-322427387

JulyanoF

@Praunda to get html to edit: editor.getHtml(); to get css to edit: editor.getCss();

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.

#833Feb 4, 2018by rohanreddyg2 answers
0 reactions

On click of links with events Editor loading inside another editor

I am trying to load an existing Ad content into GrapesJS editor. On dragging new custom components into editor with some script, editor is loading inside the root editor frame. Not sure what is causing this issue.

artf

@rohanreddyg can you create a live demo of your case, please

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.

#832Feb 2, 2018by chiqui3d3 answers
4 reactions

Avoid settings hereditation

Hello, When I add a column(row) and add a background color, this color is added to everything I had previously and also to the next ones you add. Is it really its functionality or is it a bug?

artf

@chiqui3d indeed I've updated the grid system which enables a more natural editing of rows/columns. BTW I still think the example of images is a nice showcase of the "power" of classes and not a "problem"

ryandeba

Hi @chiqui3d, I bet this is happening because the selected component has the same class as other components. Those images from the demo all have the class badge-avatar, so changing one effectively changes them all. I believe it is working...

chiqui3d

@artf Yes you're right, I didn't think of it that way, now I see the meaning.

#831Feb 2, 2018by ensemblebd3 answers
2 reactions

StorageManager dynamic url endpoints

FEATURE REQUEST SPA approach for dynamically loading and storing utilizing the storageManager urlStore and urlLoad config options. It would be GREAT if your code checks if it's a function, not assume it's a string literal defined finitely, explicitly, at time of initial configuration (page load). Changing the config v...

JulyanoF

@ensemblebd you tried to change like it: editor.StorageManager.getConfig().urlStore = "myUrl"?

artf

The correct way of doing so would be updating the Storage model

ensemblebd

I ended up just making second ajax request after calling editor.store(), to store the data I wish to store. I'll give that a try though, that is not the way in which I changed it.

#830Feb 2, 2018by kewilson3 answers
1 reactions

Clean pull of master won't load localhost:8080 on Windows OS

Hi all, Having an issue after pulling latest master and simply trying to run, no modifications made at all. Environment: Windows 7, node 8.9.4_x64, npm 5.6.0, UAC = On Steps to reproduce: 1) Administrator cmd shell 2) npm i 3) npm update 4) npm run build-n (note that build-dev was tried too) 5) npm start --> results i...

kewilson

switched over and pulled the preset web page repo .. now seeing what I expected.

kewilson

Would also note that I ran tests and those executed and passed fine.

kewilson

tl;dr - So does webpack-dev-server need to have cross-env in order to work on windows? I was able to run an older version of grapesjs that still used cross-env in its startup. It seems that the changes of this commit is the cause of the cu...

#829Feb 1, 2018by JulyanoF2 answers
0 reactions

"Hidden feature"?

Hello @artf . I was implementing modal of AssetsManager and I found it: Is it some "feature" or something else that wasn't completely implemented yet? Is it working? I really didn't find it in any file. If it is working, how can I activate it? When I remove the style display:none from it and try to use, it is working...

artf

Hi @JulyanoF unfortunately just some legacy part, as Assets are already highly customizable I'm not gonna implement such a feature in the core

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.

#828Feb 1, 2018by maxtacco2 answers
0 reactions

Components 'add' event fires different number of times

Hi, I've noticed that if I add the following code in my custom component the event fires differently depending on whether a new child component is drag and dropped from blocks vs canvas. Only one event is fired when I drag and drop a child component from the blocks section. But, when I drag and drop from canvas I can...

artf

Hi @maxtacco, unfortunately, this is due to how the Sorter works when moves components and honestly, at the moment, I can't see better workaround than your one

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