GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

3,464 issues found

#3623Jul 15, 2021by simxn12 answers
7 reactions

"/" in classes changing to "-"

Version: ^0.17.19 Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? I would expect the class to stay exactly the same as I name it. Describe the bug detailed When you add a class that contains a slash "/" character in it , in the DOM, it changes the slash character to a dash...

notauserx

I also faced the same problem. After looing into the source, I found this is due to https://github.com/artf/grapesjs/blob/8b423fdf093865a6bf55dc8285030ce99c111d6d/src/selectormanager/model/Selector.js#L123 Based on https://github.com/artf/...

GJSBlock

Thanks for reporting this, @simxn1. The issue with "/" in classes changing to "-" appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, crea...

#3622Jul 14, 2021by ronaldohoch4 answers
0 reactions

I18n functionality

Version: latest Are you able to reproduce the bug from the demo?[] Yes[ ] No What is the expected behavior? to editor.I18n.setLocale("es") work in runtime. Describe the bug detailed I don't know if it's a bug or it's not supposed to work this way, also, i don't know backbone enough to know if it's possible, but, when...

artf

Yeah, unfortunately, at the moment the UI (once rendered) is not updating on locale changes, so you would need to rerender the editor.

ronaldohoch

Well, i don't know if backbone have template binding, so i'll close for a while..

leonardolima99

Yeah, unfortunately, at the moment the UI (once rendered) is not updating on locale changes, so you would need to rerender the editor. Has this not been solved yet? I tried to use editor.render(), it works, but it duplicates the panels...

#3620Jul 13, 2021by jamesshin54 answers
0 reactions

SetComponent() encodes anything in <script> tags

When loading in HTML through setComponent, quotation marks turn into "&quot" and less than signs turn into "&lt". Any help would be greatly appreciated!

artf

Thanks @jamesshin5 that will be fixed in the next release.

jamesshin5

thanks so much for this! when do you think the next release will be? I did a workaround of just adding a component with script to canvas but want to change back asap

artf

I hope really soon but can't tell the exact day. In case it might be useful, we auto-tweet new releases on our twitter account: https://twitter.com/grapesjs

#3619Jul 13, 2021by san-1231 answer
0 reactions

How to add video upload and save to backend?

Hi artf, I have implemented image upload with multiple images and save it to remote database. Same way how to upload single video and save remote db Because everytime we need to put all videos to remote folder then configure it to src for video tag. It taking lot of time Pl guide me to implement it.

GJSBlock

Thanks for reporting this, @san-123. Great question about how to add video upload and save to backend?. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific m...

#3618Jul 13, 2021by san-1232 answers
0 reactions

Style manager size not setting to image control

WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issue Follow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.md Do a quick SEARCH first, to see if someone else didn't open the same issue All relative statements/questions have to be filled/answered, otherwise,...

san-123

Its duplicate

GJSBlock

Thanks for reporting this, @san-123. The issue with style manager size not setting to image control appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modificat...

#3615Jul 13, 2021by onmagic4 answers
0 reactions

Text in text component cannot update , cannot get final result from toHTML

it is text component, if select body, the text will correct save/apply/store in component toHTML method, if just updating text, but not leave the text component, just click save then use "editor.getHTML()", the result is not updated.

v-pasha2

Did you get a solution on this ?

v-pasha2

We are facing below issue with version "0.17.19" where as on version "0.14.62" its was working fine. We were trying inline editing experience, So when we check the component.getEl() function it returns the updated text for component where...

v-pasha2

@artf could you please check on this or any-work around for this ?

#3614Jul 12, 2021by kuhelbeher1 answer
0 reactions

Background color can't be set to #000000

Hello! Found a bug with background-color. It cannot be set to #000000 via color-picker in styles. Here's a demo but you can check it yourself in the grapesjs demo: https://user-images.githubusercontent.com/37115006/125304571-62303e00-e336-11eb-9e5d-a5e9d3b1c7e2.mp4 Other colors work fine.

GJSBlock

Thanks for reporting this, @kuhelbeher. The issue with Background color can't be set to #000000 appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications...

#3613Jul 12, 2021by anlumo2 answers
1 reactions

Inconsistent Image Selection

Version: 0.17.19 Are you able to reproduce the bug from the demo?[X] Yes[ ] No Reproducible here. What is the expected behavior? Selecting images in the asset manager interface by clicking on them. Describe the bug detailed What is the current behavior? When you change the asset associated with an image component, it'...

artf

Sounds legit, will be updated in the next release

GJSBlock

Thanks for reporting this, @anlumo. The issue with Inconsistent Image Selection appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creati...

#3612Jul 12, 2021by TRIGGEREDcoder4 answers
0 reactions

The grapesjs slider buttons, tabs are not working as expected

Version 0.17.19(grapesjs) Version 0.1.5(grapesjs-lory-slider) Version 1.0.6(grapesjs-tabs) Are you able to reproduce the bug from the demo? No What is the expected behavior? I should be able to traverse through different slides and tabs when clicked on previous or next buttons and tab names respectively. Describe the...

artf

Are you able to provide a reproducible demo, please?

TRIGGEREDcoder

Sorry @artf , I was facing this because of the script tag in the generated html which is of no use in angular component html. How can I use the html generated in angular files if the html contains script tag functions.

artf

@TRIGGEREDcoder if the main issue is solved I'm closing this one. Please open a new Discussion if you have questions

#3608Jul 9, 2021by anlumo4 answers
0 reactions

Disable Dragging

What are you trying to add to GrapesJS? I have implemented an alternative text editing component (not based on RTE). I want people to be able to drag-select text in this component. Describe your feature request detailed The problem is that drag-selection also triggers dragging the whole component. I want to be able to...

iabhiyaan

anlumo

Wouldn't that disable all dragging, even from the toolbar and the layer manager?

anlumo

I just tested it, another issue is that the dragging operation still eats the event, it just renders the component disabled.

Browse all topics