GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

829 issues found

๐Ÿ” question
#839February 5, 2018by JulyanoF3 answers
1 reactions

[QUESTION] Create custom selected component settings

There is a option in panel to change setting of component (For links, there is an option no change link - HREF - and target, for texts, id and title and for images, alt attribute). I would like to know how can I create that inputs and how can I change this attrs in selected component? I created a Panel's view to use a...

arthuralmeidap

@JulyanoF , Sorry, I missed the parenthesis. It is editor.TraitManager.getTraitsViewer().el

arthuralmeidap

Here is what you looking for: https://github.com/artf/grapesjs/wiki/Components

JulyanoF

@arthuralmeidap ok, but how can I show the component in my current Command?

#838February 5, 2018by josefph3 answers
4 reactions

[QUESTION] How do I save the images to database?

Please do bare with me but it's really hard to understand the documentation. Can you guys help me do do this?

JulyanoF

@pranzikkin @pranzikkin it is an array of files:$FILES['files']You can debug and see the response on browser's network (console).As it is passing a single file of each time, the file is passing at the first position, so you can take the na...

arthuralmeidap

@pranzikkin put the http\https for the url; something like http://<youraddress>

josefph

@JulyanoF thank you for the great help. got it working now. @arthuralmeidap thank you for the help. got it working now.

#837February 5, 2018by RiyaThete3 answers
0 reactions

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

#834February 4, 2018by Praunda3 answers
2 reactions

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

#830February 2, 2018by kewilson3 answers
1 reactions

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

#829February 1, 2018by JulyanoF2 answers
0 reactions

[QUESTION] "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.

#828February 1, 2018by maxtacco2 answers
0 reactions

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

#827February 1, 2018by hillelcoren3 answers
0 reactions

[QUESTION] Change location of command panel

Amazing library, thank you!! I have two questions I'm hoping you can help with.How can I move the command panel from the top to the left as is shown here: https://github.com/artf/grapesjs/wikiI was having trouble getting the block icons to show, I saw individual letters instead. I was able to fix it by copying the mai...

artf

Hi @hillelcoren How can I move the command panel from the top to the left as is shown here Panels are all arranged freely by CSS so you can move them as you wantI was having trouble getting the block icons to show, I saw individual letters...

hillelcoren

Thanks for your help!

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.

#822January 30, 2018by josefph3 answers
0 reactions

[QUESTION] How to get the html and css code in view code tool?

or how to get all the html code and css so that I could save it in my database. Or there is already a functionality in the documentation? your help will be much appreciated :)

josefph

Sorry for this post. I was only able to look at the Open Issues not knowing that there are closed issues. I was able to know that I could use editor.getHtml() and editor.getCss() which I could just save right away in my database to save my...

artf

@pranzikkin you can set up a remote storage #778 which will store your data automatically

josefph

what do i put in UrlStore?

#820January 29, 2018by JulyanoF3 answers
0 reactions

[QUESTION] Change and get value of editor.getSelected() block

How can I change and get the content of current selected block?

JulyanoF

To get content: editor.getSelected().get('content') To set content: editor.getSelected().set('content', 'myhtml')

artf

@JulyanoF be aware that content is for static strings (used mainly for custom RTEs) therefore by doing this editor.getSelected().set('content', '<div>TEXT1</div>...') you wouldn't be able to edit inner elements.

JulyanoF

selected.components() @artf I don't want to create a new component into the selected block,. I need only edit the content. When I use this method, it is creating a new div into the previous block. How can I avoid it?