The glitch is quite ironic. It's in "https://grapesjs.com/". It's in the section "Responsive design"; almost half of the image - is beyond my screen's border to the right. I tried on Pale-Moon and the newest FireFox. There isn't even a slider to see the whole image.
nojacko
I don't think that's a glitch. It's quite a common thing for that style of "text next to image" designs. On small screens you still get to see the editor with a mobile sized canvas and on big screens you get to see more. Importantly, nothi...
Cosmograph
I'm not talking about the editor (in which also - part of the text is not visible); rather about your index page (see the link I posted). P.S. - it's true also for some other wide images on that page.
nojacko
Yeah, index page looks fine to me but it would probably help if you provide a screenshot so any issue could be seen and then fixed. (I'm not the creator or a member of the project... just a user.)
Running latest version (0.14.29) on local server. Using the example webpage preset. Ubuntu 18.04, Chromium 68. Assetmanager init: And extend image type: The all_files variable is load from php, and it has the right data and format, all images stored on the server. The problem is that the onRemove is not triggering as...
artf
Hi GΓΆranbut reappearing when reloading the page you're initializing the asset manager with assets: allfiles so if you don't change allfiles you always get the same set of imagesAlso when dragging an image to the canvas, the image is not sh...
ageir
@artf I don't think you understood me. They are reappearing because they didn't get deleted on the server. all_files are generated via php on page reload, and showing the correct files on the server. The problem is that onRemove isn't trig...
artf
Ah ok probably because your assets are already rendered. Try to apply those changes but inside a plugin
I have my own window.onbeforeunload handler, and I'm not passing in a noticeOnUnload config to grapesjs, so I wouldn't expect grapesjs to mess with it. PR for this incoming.
artf
Thanks Duarte, fix applied and will be available in the next releaseI'm not passing in a noticeOnUnload config to grapesjs, so I wouldn't expect grapesjs to mess with it. Just a note, noticeOnUnload is true by default π¬
dsgh
Oops, I meant I'm passing a noticeOnUnload as false π 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.
Hi. I'm developing a plugin for charts using chart.js. I need to persist the model of the chart inside the generated component to render the chart on back canvas loads. In order to achieve this, I decided to persist the model of the chart in an HTML atribute of the component. This is the generated HTML of the componen...
artf
You can use onRender
gabrigcl
Thanks, this method works! However, I have to store the model of the chart inside the html of the component, in order to make possible that the generated template render the chart outside the grapesjs editor. I can't persist anything insid...
artf
@gabrigcl I don't understand which is the problem now... I can't persist anything inside a custom html attribute of the component, the way I want But it's exactly what you've showed in your previous post, try elaborate better what you need...
Hi Artf, Thank you for your work, I would like to change the styles of the traits. And when user select video or input's make trait icon active. When we make like that user will understand where they can change video id and also for maps. How can I achieve these work please help me, sir. And also for image alt tags al...
Questions Q: Are you using the latest release (older versions are NOT supported)? A: Yes Q. Are you facing the bug with your local copy of GrapesJS or with the current demo? A: Local copy, latest chrome on Linux 64bitThe issue When opening the asset manager via editor.runCommand('open-assets') it should render the lis...
artf
The issue is that currently open-assets doesn't handle correctly the default types option (which I think, in this case, it should return all assets, even not images). I'll fix this in the next release, but for now, what I think it should b...
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.
I want to know how can I get that component from which element is dragged and drop to the other component. I need to add a class if component become empty if element is dragged and droped to the outside element. I can get the component which dragged and in which it droped but not from where it dragged. Any Help would...
artf
In your case, I think it would be better listen to inner components changes (eg. what if I delete all children components?), but currently, there is no such an event, so I'll try to add it for the next release. It should be something like...
sakshigarg9
@YashPrince how did you get the id of the dragged component and where it was dropped
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 @artf , I am using grapesjs newsletter plugin with ckeditor plugin. I dragged TEXT element in canvas and did some editing with ckeditor. i have connected it to database. when ever i save content in database after reloding the editor i set content value from database field and after that TEXT element get converted i...
artf
@Siddharth-ss42279 If you need to EDIT the template created from GrapesJS, you SHOULD NOT USE ITS HTML.... you should import its JSON... so you're doing it WRONG It's like doing this and then complaining why your el doesn't have click list...
artf
What do you store in your database? The HTML and CSS?
Siddharth-ss42279
Hi @artf Actually, i get in-lined html using command editor.Commands.get('gjs-get-inline-html').run(editor) and saving it to database and for rendering content i am using editor.setComponent(content_field) problem is when i render content...
Hi @artf, I had an issue when I have tables in the editor and I add new rows then if my table is saved when is loaded again an extra tbody tag is added to my table. I don't know why this behaviour is happening on the editor. Best Regards.
jvillena
Hi @artf, The issue is solved if I commented in the initialize method of the tbody in the grapesjs core. But I don't understand once you are including it without checking if the tbody tag already exist.
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.