#3166December 1, 2020by nanaya13 answers
*Version:0.16.27 Are you able to reproduce the bug from the demo? [ ] Yes [ ] No What is the expected behavior? In the right panel and canvas, the pasted node should be after the copied node. What is the current behavior? I copy a node. In the views-container(right panel), the pasted node is after the copied node. But...
artf
I've tried locally but the node is placed correctly. Are you able to create a live demo, please?
nanaya1
Sorry, I did not elaborate on the scenario where this error occurred. The components that come with grapesjs do not produce this error, because they don‘t have spaces,carriage returns or tabs. I found this problem while customizing compone...
nanaya1
@artf I accidentally closed the issue.
#3161November 27, 2020by ssmanoj-grapes3 answers
The collection of the selected component before Undo The collection of the selected component after Undo Code to replace the component with new component Uncaught TypeError: n.getEl is not a function and Uncaught TypeError: t.getSelectors is not function are the errors reported on save. I’m unable to replace the selec...
artf
Sorry, but without a reproducible demo, this issue doesn't make sense to me
ssmanoj-grapes
Hi artf, Please find the demo video of the issue grapejs-issue.zip.
artf
Ok, as you're not able to create a reproducible demo, I have to close this...
#3157November 25, 2020by pranay22101 answer
I want to apply script to rte element which is select html element, on selecting the value for from one select field the dynamic values should get appended to other select field but the script is not working in rte rte.add('custom-childkey', { icon: htmlForChild, // Bind the 'result' on 'change' listener event: 'chang...
artf
Maybe because it's stringify and not stringfy...
#3152November 23, 2020by fq-selbach3 answers
Version: 16.27 Are you able to reproduce the bug from the demo? [x ] Yes [ ] No Describe the bug: I discovered an issue with gjs-hovered, the class that handles the mouse-hover outline for elements. Sometimes the blue outline will move relative to its parent during scrolling . Check out this JsFiddle (and scroll with...
lofcz
Would be nice to have this fixed, not the end of the world, but mildly annoying.
artf
I'm closing this one as it was actually already fixed, indeed the old demo is working now properly. You might still face the issue if your editor is placed in a scrollable container, in that case, use this option please: https://github.com...
#3149November 21, 2020by MarksEliel1 answer
Version: Last In the demo the bug does not appear, I believe that for using localstorage for storage. Grapesjs works normally, with background, but when I insert the background layers, except, everything is displayed correctly. The problem is that when I reload the editor, it does not show the layers that were created...
artf
In the demo the bug does not appear, I believe that for using localstorage for storage. No, using local storage or remote one has no difference as the JSON structure to use is the same. Indeed, I guess you're loading back the HTML instead...
#3137November 12, 2020by Asha15972 answers
Not getting styles of the selected element Here is my code, const model = editor.StyleManager.getModelToStyle(component); let styleObject = model.getStyle(); console.log("styles", styleObject) Version: 0.14.49 Are you able to reproduce the bug from the demo? [X] Yes [ ] No What is the expected behavior? When an elemen...
artf
First of all, you need to upgrade your grapesjs version (you're using a 2 years old one), then you have to provide a live demo of the issue.
no-response[bot]
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...
#3134November 11, 2020by josfh20053 answers
Version: 0.16.27 Are you able to reproduce the bug from the demo? [ X] Yes [ ] No What is the expected behavior? When a try to drag a component the canvas should not scroll to the top of the page. Describe the bug detailed Whenever I try to drag a component that is in the last sections of the page, the canvas scroll t...
artf
Hi José, are you able to provide a screencast of your issue? I've tried to drag the last section of the template but seems all good to me
josfh2005
Hi @artf , You can check it out here https://recordit.co/vn1ZVN6J1N, is not with the sections, it happens with any element but only the first time I try to drag something.
artf
Ah ok, only the first time, I've got it now on my side too 👍
#3132November 11, 2020by tranthanhhoaNo answers
Version: 0.16.27 Summary: Trait with [type ="number"] not working Steps to reproduce: Try to type something such as "abc" for a trait which type is "number" Expected: Don't accept the string Actual: Still accepts the string
#3131November 11, 2020by Joshmamroud3 answers
Version: 0.16.27 Are you able to reproduce the bug from the demo? [] Yes [X] No What is the expected behavior? Paste as plain text (text node) without Grapes JS wrapping pasted text in <font /> element. What is the current behavior? When I paste text as plain text into an empty Text element, the editor wraps it in a <...
Joshmamroud
@artf do you know if this is this happening in the component or the RTE or somewhere else? Could you please point me in the right direction? Any help on this would be greatly appreciated. Thanks!
artf
I can't reproduce it, but I see you're using a custom dm-text component, so that might be a reason?!
Joshmamroud
@artf I don't believe so. Here is the configuration of the dm-text component type Do you see anything here that might be causing it?
#3125November 9, 2020by fq-selbach2 answers
Version: 0.16.27 Are you able to reproduce the bug from the demo? [x] Yes [ ] No What is the expected behavior? When adding background-image via Style Manager it show as background-image: url(...);. What is the current behavior? Instead of background-image:url(https://grapesjs.com/docs/logo.png); you will get backgrou...
johnkeel-thork
Was about to report the same problem. Added Image as background: <img width="847" alt="Screenshot 2021-12-23 at 12 06 51" src="https://user-images.githubusercontent.com/26764290/147238562-8df3ea2a-aca7-4b08-9d64-73fd1495d699.png"> Its bein...
artf
Closing as from the same jsfiddle the issue seems to be solved