#831February 2, 2018by ensemblebd3 answers
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.
#830February 2, 2018by kewilson3 answers
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
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
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
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.
#826February 1, 2018by maxtacco1 answer
Hi, I think there is a bug related to the generation of element id attributes. When modifying element's style the value of the element's id attribute is auto generated and added to the HTML that once can see in the Code editor. Then the id attribute value is updated correctly when Id editor is used in the Settings to...
maxtacco
Also, if this is the case would be nice to set the default "empty" value strategy for traits in the configuration of a component. For example, emptyValue: "" or emptyValue: null or emptyValue: () => {}.
#824January 31, 2018by anand-gopinath3 answers
I wish to remove/hide the below mentioned "view" from the Panel. Is it possible via API or I need to externally hide using css ? editor.Panels.getPanel("views").attributes.buttons.models[2].attributes.visible = false;
ryandeba
@anand-gopinath - this code works for me in a plugin: editor.Panels.removeButton("views", "open-layers"); It doesn't seem to work for me after the editor has fully loaded...I suspect that it needs to get removed before the view is rendered...
ryandeba
@anand-gopinath In case it's helpful, here's some code that I'm using to reorder those buttons (this also probably needs to run in a plugin):
artf
Thanks Ryan, I'll add a new listener, in the next release, which should fix the issue
#823January 30, 2018by JulyanoF2 answers
When I use editor.getSelected().set('content', 'somethig'), theoretically it changes value correctly as I see in editor, but when I call editor.getHtml() or I enable autosave (that probably call getHtml()), it is showing "<div class="c891">somethingInsert your text here</div>". It is always incrementing the text. Edit...
artf
https://github.com/artf/grapesjs/issues/820#issuecomment-361732512
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
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?
#821January 30, 2018by Deepak8133 answers
Hi @artf, Please let us know how we can set the href attribute of anchor inside div when element is dragged i.e <div class="social_icons rrssb-buttons c3250"> <a href="https://www.facebook.com/sharer/sharer.php?u=http://starteo.softobiz.com" class="popup rrssb-facebook" id="ibvm"><i aria-hidden="true" class="facebookS...
JulyanoF
@Deepak813 I guess that it isn't in model, it should be something like: editor.getSelected().set('href', 'https://www.facebook.com/sharer/sharer.php?u=') You don't need to access model
Deepak813
Hi @JulyanoF, Thanks for the message, I have used this code when element is dragged but display following error: Uncaught TypeError: Cannot read property 'set' of null. As i want to update the href of anchor tag inside the div when element...
JulyanoF
@Deepak813 Oh, you want to change anchor when is draggin/dropping?