#1443September 19, 2018by sapien992 answers
Hey artf, first gratulations to this awesome project, i really enjoy using it. Second: this is NOT about running grapesjs within an angular project, its more the exact opposite: grapesjs already runs fine as a angular 6 component. What i want to do is to use other angular-components within the grapesjs canvas. On the...
artf
All custom scripts loaded via canvas.scripts are loaded BEFORE components, so if you try to mount on something obviously it doesn't work. Probably you need also make use of Component related scripts
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.
#1442September 19, 2018by comedydriving2 answers
I'm able to save my json data to the database, but I cannot get the template to load it properly. My json data can be seen here: when I load the page it shows like this in the console, which leads me to believe the json isn't loading properly: Is something not formatted in my json correctly?
comedydriving
Solved. So the first issue is the content type needed to be json. Then I had to update my store php script to accept the json data: $POST = jsondecode(filegetcontents('php://input'), true); Lastly, my field in the database was set to "text...
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.
#1441September 19, 2018by ageir3 answers
Running latest version (0.14.29) on local server. Using the example webpage preset. Ubuntu 18.04, Chromium 69. I got a problem dragging images to the canvas. I'm using a php backend. The image is uploaded and added to the assetmanager but the image doesn't show up in the canvas, only the missing file icon and the name...
JulyanoF
@ageir I did some different (for file upload): and and for list images:
artf
Because of your custom uploadFile (why not using just the original???), you're not calling the callback https://github.com/artf/grapesjs/blob/dev/src/asset_manager/view/FileUploader.js#L105
mathiasbc
HI @artf, I have the same issue, my configuration looks like this: This function works alright, I can actually upload images and they will show in the asset manager. For the image block I have: Which is directly copied from the newsletter...
#1440September 19, 2018by ionic6663 answers
i just want to listen for changes to the selection box,but i can't enter the function updateType
JulyanoF
@ionic666 I guess you will need to create a custom trait: https://github.com/artf/grapesjs/wiki/Traits#define-new-trait-type
artf
not having changeProp: 1, it will be a simple attribute, so you have listen to: change:attributes:data-sensor
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.
#1439September 18, 2018by kickbk3 answers
I upload an image with the assets manager which stores the image on the server. I select the image to insert into the canvas and it stores it in the LocalStorage. Great! Now I delete the image. It removes it from the server and from the Assets Manager. Great! I refresh the page. Since the image was used in the canvas,...
artf
Ok... @kickbk this is why I ask to specify all the info when you create new issues, so please, next time, do it btw those are different components, try this: wrapper.find('[data-gjs-type=mj-image][src="...."]')
artf
I am thinking the solution here could be that when we remove the image from AM it should also remove it from the canvas and LS. Ok, but this kind of logic it's only up to you, definitely not something we should add inside the coreMind you,...
kickbk
When I do wrapper.find(img[src="${src}"]) I get an empty array. In fact, I get an empty array on wrapper.find(img) as well. I am getting the wrapper, it just seems to have no images inside it. Are we querying the wrong element?
#1438September 18, 2018by mrajeshkrossark3 answers
@artf Bro, I want to load the html page which contains css and js for effects (parallax). I worked around 10 days but still I cant able to find whether am doing it right. So can you provide me instructions to do it in correct way. Ultimate goal is to provide set of templates for the user in the react wrapper page and...
artf
https://grapesjs.com/docs/getting-started.html
suresh5
@artf Bro, I want to load the html page which contains css and js for effects (parallax). I worked around 10 days but still I cant able to find whether am doing it right. So can you provide me instructions to do it in correct way. Ultimate...
mrajeshkrossark
> @artf Bro, I want to load the html page which contains css and js for effects (parallax). I worked around 10 days but still I cant able to find whether am doing it right. So can you provide me instructions to do it in correct way. Ultima...
#1436September 18, 2018by peakrams3 answers
Hi, I'm studying the editor and I think I understand the difference between components and blocks. Now, I was wondering if GrapesJS offers the possibily to manage a block as an atomic entity or permits to define components as a tree with of nodes. For example, I have a block called separator that basically is a table...
artf
The main issue that I can foresee is that the source code should be importable so as it is generated by the editor and I'm not sure if the editor can distinguish the separator element from any td component of a table component used for tab...
artf
the fact that it has returned a type for this node prevents the editor from testing the inner nodes of this node for a component type? No, inner nodes will be still traversed, but you can actually prevent that with this as a return to your...
artf
Yeah, the content property could really solve my problem but I guess I have to manually keep it's value in sync (with string manipulation) with the changes made by the users to the properties and the traits of the separator component, and,...
#1435September 17, 2018by benschiefer2 answers
Checkbox type traits are not getting shown as "checked" in the component settings. To reproduce:Import markupSelect the input element in the canvasGo to Component SettingsNotice that the Checked setting is not checked. The same issue can be noticed for the "required" attribute. Similarly, if you import or or the compo...
artf
Should be fixed with the latest https://github.com/artf/grapesjs/releases/tag/v0.14.33 and https://github.com/artf/grapesjs-plugin-forms/releases/tag/v1.0.1 (changed the name of the plugin gjs-plugin-forms -> grapesjs-plugin-forms)
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.
#1434September 17, 2018by YashPrince3 answers
@artf Please check you demo page text is hiding under the toolbar. how can we update the toolbar position?
artf
At the moment the position is hard-coded but we can extend it as we do with the RTE toolbar via events
artf
Closed by https://github.com/artf/grapesjs/pull/1730
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.
#1433September 17, 2018by YashPrince3 answers
@artf how can we show toolbar on hover. Currently toolbar is open when we select any element but I want to show it on hover. Any help would be appreciated.
artf
The only way I can help you here is to tell you to check this command https://github.com/artf/grapesjs/blob/dev/src/commands/view/SelectComponent.js (id of the command: select-comp) which is responsible for showing the toolbar. So you can...
sakshigarg9
@YashPrince Hi, were you able to solve this? I need a similar implementation