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.
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.
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.
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.
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.
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.
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...
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.
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.