#1350August 8, 2018by shlomoko2 answers
When using the code: I would expect the panel to appear without any buttons. It does not appear to do so... [update] I switched to: Which when used on 3 buttons, deleted the first and the last, but not the second. [update 2] I have finally added the next functions, as a temp workaround until bug is resolved.. What I a...
artf
editor.Panels.getPanel('options').get('buttons').reset()
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.
#1349August 7, 2018by Sheetalordant2 answers
Hi @artf Thank you for great library. I want to update style manager properties on the basis of components type. For example, If there is text components on canvas then there should be only text related properties like font, font-family and no width and height. Is that possible?
artf
Yes, please check #1131
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.
#1348August 7, 2018by ionic6663 answers
hi,after npm build, there has a problem
umesh2k8
npm install grapesjs
HakuTheWolfSpirit
npm install grapesjs and did you import it in your Vue view? import grapesjs from 'grapesjs'; Here is an example on how to use grapesjs in a SPA with Vue.
ionic666
@Patrick-Spiegel thanks,The example you provided is nice to me.
#1347August 7, 2018by manishkumaruit1 answer
Hi @artf , I am using your plugin and i want to use blocks in different tabs like blocks,widgets and grids but when i am using the properties of blockManager like blockManager : {appendTo: '#blocks'}. Its showing all blocks in single tabs but i want to show blocks in different-2 tabs which i have list of blocks. I am...
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.
#1346August 6, 2018by FrciSmrci3 answers
Hey @artf , I think that the slider component would come handy from the UX perspective for the user interaction of some of the integer properties as well, like font-size / line-height, etc. I would like to propose that the slider component is extended with a default unit property which would take in an string, but wit...
artf
Yeah, sorry, I was too much busy with other stuff this week, hope to release this weekend 😬
artf
It could be already possible with this kind of configuration but unfortunately I notice that currently the slider itself does not update its pointer (due to a not numeric value). I'll fix that in the next release
FrciSmrci
Thank you @artf :) When is the plan to do the next release?
#1345August 6, 2018by alibouaziz3 answers
i want to export the disposition to an image, but give me blank image. var div = document.querySelector('#wrapper'); html2canvas(div, { onrendered: function (canvas) { var screanshot = canvas.toDataURL("image/png"); } }); thanks.
HakuTheWolfSpirit
I advise you to ask the question under the html2canvas tag on StackOverflow. This is not really an issue with grapesjs. Also check wether your document.querySelector returns null. I think you are not using the iframe document.
artf
@alibouaziz the #wrapper is inside the GrapesJS's iframe, so querySelector returns nothing. You can access the content of the iframe via Canvas module, so to get the body you would do editor.Canvas.getBody()
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.
#1344August 6, 2018by fabripeco2 answers
Hi! Is there a way to set a global option to extend units array in styleManager? I would like to give, for example, the choice for em, rem, mm... for each "dimensional" property. Or should I extend every single property? Thanks a lot for your reply!
artf
Each property is independent from the other so there are no global options
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.
#1343August 6, 2018by ploutos272 answers
We are facing a small issue and unfortunately we are not able to figure out why is happening. We don;t want to make it with the wrong way so we thought a good idea to share the problem. We have create and add successfully the buttons in the panelManager as the code below, but when save data or even click at any of the...
ploutos27
it seems like the problem fixed after I add: context: "sw-visibility", Thanks!
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.
#1342August 6, 2018by ryzraz3 answers
hi, Is that possible to add a new css class to the body of editor's iframe ??
ploutos27
@ryzraz what do you mean an existing class ? Even thought, setStyle can replace properties of existing classes by overwrite each classes as you like.. example:::
ploutos27
Hi @ryzraz you can use setStyle as below
ryzraz
hi @ploutos27, its an existing class .. i wanted here to add that class to the body of iframe..!
#1341August 6, 2018by HakuTheWolfSpirit3 answers
Hello, I have some questions and issues about and with the grapes editorProblem 1 In a component, which class is there extended? Is it really this class?Problem 2 I have created a codesandbox which shows which issues I currently have. It is oriented on the mjml-pluginSandbox Output Sandbox CodeSteps to reproduceDrag t...
artf
Problem 1 It depends (you can extend other types), but that is the base for all the componentsProblem 2 Here you should point out only issues related to the core library and not its pluginsProblem 3 Please read carefully this https://grape...
HakuTheWolfSpirit
Please read carefully this https://grapesjs.com/docs/modules/Components.html Yeah, forgot an important line defaults: { ...defaultModel.prototype.defaults, ...props } Here you should point out only issues related to the core library and no...
adelliinaa
What are the steps of importing a customised component?