#690December 28, 2017by TWCM3 answers
Hi @artf , The case is "switch-visibility" command stopped, then click the preview button or trigger preview command, it will go to preview mode, when exit the preview mode, the "sw-visibility" command ran, it haven't save the state before go to preview mode and cannot reset the visibility after stop the preview comma...
TWCM
Hi @artf, I found that the command running sequence when click the preview button: Is it a bug ? this running sequence make me cannot get the correct classname of canvas' body. so cannot store the state before run the preview command. I ca...
artf
@tommywulove I tried this in the demo and the sequence seems correct
TWCM
@artf but why i click the preview button, it will trigger the stop command once , then run the command ?
#680December 25, 2017by z1lk3 answers
Encountered this while developing a plugin. I've reproduced it in the official demo via Browserstack on a different OS and browser, so I'm pretty confident there's a bug here. Exact steps to reproduce:Load the demo, clear the canvas (trash icon), and refresh page to get a fresh demo pageSelect the "Build your template...
artf
Thanks @z1lk I confirm you about the issue in the demo, but the bug behind this was already fixed thanks to #661 The patch will be available in the next release
artf
Should be fixed now https://github.com/artf/grapesjs/releases/tag/v0.12.58
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.
#542November 18, 2017by duskhacker3 answers
In lieu of #540, I'm trying to manually remove a button from the options panel, with this: This works ok, the button goes away, but the pnm.render() seems to break the style manager, in that it becomes unresponsive. Non of the other stuff seems to break, just the styling. Is this a problem I'm introducing or a bug? Th...
duskhacker
It occurs to me that I can just hide the button with some CSS, which is what I've done. I'm still curious about the render though.
sbarfurth
This should be high priority, makes modifying panels after the first render impossible.
artf
I'm closing this as we've removed render method from the public Panel API, it should be executed only on init by the editor. In addition, now you can remove buttons easily by doing this panelManager.removeButton('panelId', 'buttonId')
#495November 8, 2017by telliott223 answers
Hi, From time to time, on my canvas the highlighter and toolbar appear in the wrong place. Is this a known bug? Do I have to manually refresh the canvas? It seems that the top css property on gjs-highlighter and gjs-badge aren't being calculated properly, they still line up horizontally just not vertically. Any ideas?...
artf
I'm aware of the toolbar "jump" when the content inside it changes (by adding or removing buttons) but not with the highlighter. Do you use the editor inside a scrolled page?
telliott22
Any way to stop the jumping when the content changes? Yes, the page is scrolled. Should I limit the height of the editor to the browsers height?
artf
Yeah, unfortunately, there is a bug which doesn't get a correct dimension of the scrolled page
#488November 7, 2017by richieteh943 answers
I'm used the html and css editor that mention in #324 . After I edited the html and css it will generate a CSS where I suspect caused by editor.setComponents() Not sure this is a bug or normal behavior. grapesjs version - 0.12.8 grapesjs preset - gjs-preset-newsletter 0.2.15
thecodefish
In my use case I am constantly getting & setting the html/css inside the editor, and what I found is that it would end up duplicating the 'default' styles (see the * and body styles in the image above - they appear twice). I managed to sol...
thecodefish
@chiqui3d I think whenever you need to modify the css from some external source, you'll probably want to reset the css composer first. So if you have something like editor.setStyle(css); in your code, you may need to call editor.CssCompose...
artf
First of all, update your grapesjs version, then be more specific about your changes. What did you change? What do you mean with unwanted css?
#481November 3, 2017by mathieuk3 answers
This is not a bug but an implementation question. If this is not the right place to ask these questions, please let me know. We're working on an implementation where we want to use GrapesJS to allow users to create an e-mail template. As part of this implementation we are working to create mail-merge functionality: we...
artf
Have you checked API-Rich-Text-Editor? You can add a custom action like this
artf
Probably in the next release, this feature will be available. So textable will be just another property, this will allow any component to be dropped inside Text components. Here is the code of the component from the example above:
mathieuk
Yes, I've used that and I've pretty much got that working. The difference is that I am not using a text placeholder like you are. I'm actually inserting a block (with a corresponding 'type') so that I can further configure these placeholde...
#439October 20, 2017by ateshuseyin3 answers
In my machine grapesjs is unstable. Generally at first request throws below error. After refreshing one or two times, it works. Bug exists in all versions I used.Uncaught TypeError: Cannot read property 'componentTypes' of undefined at F.i.renderChildren (grapes.min.js:2) at F.i.render (grapes.min.js:2) at F.i.addToCo...
ateshuseyin
I found the problem. One of my chrome extension (I think it is Backbone Inspector) causes the problem. Issue can be closed
ateshuseyin
Another error is;components.js:169 Uncaught TypeError: Cannot read property 'defaultTypes' of undefined at child.renderChildren (components.js:169) at child.render (components.js:212) at child.addToCollection (ComponentsView.js:65) at Comp...
artf
Weird, never got those issues, but if you see defaultTypes in components.js you're definitely working with an old version of grapesjs
#369October 3, 2017by ateshuseyin3 answers
I tried to use grapesjs from source by using require('grapesjs/src') to debug both my source and grapesjs. But could not success because of below issues;There is some requires like require('plugin_manager'). These can be passed by webpack config but it is not a nice solution.'<# VERSION #>' preprocessing should be don...
ateshuseyin
At DevicesView.js:5 there is underscore usage w/o require: template: _.template(`
ateshuseyin
I just notice that you are using ProvidePlugin. That is a solution but these kind of configurative solutions are a limitation to grapesjs users which are using from source.
artf
correct @ateshuseyin I just never configured it to work properly from source, indeed have to move few configurations from webpack to npm. Appreciate your help 👍
#340September 27, 2017by aryeharmonNo answers
I am trying to extend the editor to support css vars i added: to the page and i get in the browser: can you explain how the editor parses the css into the canvas? maybe i am missing something
#325September 20, 2017by OBezdietkoNo answers
Editor replaces all instances of '--'(double hyphen) with '-'(single hyphen) in the initial class names. For example in the editor iframe I receive 'mdl-cell-3-col' instead of initial 'mdl-cell--3-col' in the html element's class attribute. Why so? I can't use editor properly with Google's MDL or any css that was buil...