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