GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

231 issues found

๐Ÿ” general
#5828Apr 18, 2024by HBR122 answers
0 reactions

Event works also on component mount

event works also on component mount

artf

Follow the issue template please, there is a reason it's there...

GJS Helper

The issue "event works also on component mount" typically arises from a misunderstanding of how event listeners are bound in JavaScript, especially within a framework like GrapesJS that manages its own component lifecycle and DOM rendering...

#5689Feb 20, 2024by mitcht4 answers
0 reactions

<> is introduced at the beginning editor.getHtml()

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome Version 121.0.6167.185 (Official Build) (64-bit)Reproducible demo link https://jsfiddle.net/ja50kzne/4/Describe the bug How to reproduce the bug?I had a webpage from a previous version of grapesJS that loads into grap...

mitcht

I whittled the json down a quite a bit, and noticed there is some possibly invalid JSON being generated as output? Its like the introduction of the escaped double quotes is off slightly. JSON.stringify and JSON.parse don't seem to care abo...

artf

The root component of the page should be a wrapper, in your case is a textnode (eg. this might break a lot of stuff), with an empty tagName (the reason behind <>) and for some reason content: "undefined"(?) <img width="377" alt="Screenshot...

mitcht

This is what was coming out of Grapes 0.18.4, therefor it was generated by grapes. I would expect if content was "undefined", grapes would either strip it or ignore it. For now i'm just stripping the <> out on my end, but I thought I'd jus...

#5657Jan 31, 2024by leo-budgetsimple1 answer
0 reactions

HTML Comment Tags disable text edit

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 120Reproducible demo link https://jsfiddle.net/btmry08e/Describe the bug How to reproduce the bug?Init a grapesjs editor with this html: What is the expected behavior? To be able to edit the text What is the current b...

GJS Helper

The issue you've encountered where an HTML comment tag like <!-- --> disables text editing in GrapesJS is a known behavior related to how browsers handle contenteditable elements and how GrapesJS's text editor component initializes. While...

#5442Oct 3, 2023by kishanp1024 answers
0 reactions

After applying the text color not able to set the background color

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link https://jsfiddle.net/a3xgLm7c/3/ Describe the bug How to reproduce the bug?Select the text and apply the text colorSelect the same text and apply the background color What is the expected beha...

mapsmarketing

Hi @kishanp102 , I tried to reproduce the issue with the steps described but both the text and background colours are being applied (please see screenshot). <img width="318" alt="image" src="https://github.com/GrapesJS/grapesjs/assets/7955...

kishanp102

Drag and drop the text component then apply the font color and click outside again click on the text and put the background color it is not applying screencast-jsfiddle.net-2023.10.11-091942.webm

mapsmarketing

Yep, you are right @kishanp102 it doesn't apply a new background colour on it after you've already set one. It's definitely a bug.

#5392Sep 17, 2023by joukhar4 answers
11 reactions

Latest version 0.21.6 doesn't come with src folder

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 114.0.5735.199 (Official Build) (64-bit) Reproducible demo link N/A Describe the bug Latest version 0.21.6 doesn't come with src folder when installing grapesjs using npm npm install [email protected] Code of...

joukhar

it was just one file scss files are more organized and more powerful that css files but i have a backup plan

artf

@bgrand-ch I think what you're mentioning is fixable with CSS variables. I was also thinking about introducing a new small module for theming, that would allow updating the editor appearance programmatically, and under the hood, it would b...

joukhar

because of sass files to overwrite variables it is very important

#5373Sep 8, 2023by padcom4 answers
1 reactions

`getDirtyCount()` returns `1` after loading

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome latest Reproducible demo link https://github.com/padcom/grapes-bug-dirty-after-loading/blob/master/src/App.vue#L37 Describe the bug Clone and start the projectOpen console Current behavior: number of changes is 1 Ex...

artf

Hi @padcom this is an expected behavior as the load itself updates the state of the editor. You can simply clear the dirty counter via editor.clearDirtyCount() right after your manual load.

padcom

Please note, that if you enable autoload: and disable loading: number of changes is 0, even though the result is the same - the page is loaded. Since in my project I desperately need to be able to load the page at a specific time this is m...

padcom

I beg your pardon? Are you quite serious that it is the "expected" behavior? Have you seen that in any other editor out there that the project is automatically modified upon loading and then automatically saved? I find that hard to believe.

#5134May 20, 2023by yashvi20261 answer
0 reactions

Enable the default RTE with a command

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v91 Reproducible demo link https://grapesjs.com/demo.html Describe the bug I want to trigger rte with a command ,i found enableEditing but it doesnt work ,is there is any command to trigger rte Code of Conduct [X] I...

GJS Helper

The issue you're encountering is that enableEditing is not a public command or method intended for programmatically triggering the Rich Text Editor (RTE) in GrapesJS. The RTE in GrapesJS is typically enabled automatically when a text compo...

#5110May 13, 2023by yashvi20262 answers
0 reactions

`enableEditing` is attached to to the view and you can get its instance from the model, so select the component and run this in console `editor.getSelected().view.enableEditing()`

i am getting editor.getSelected().view.enableEditing(); is not a function

artf

Please avoid opening bug issues without following the issue template. You can start a new discussion with a proper description/use case of what you're looking for.

GJS Helper

The error editor.getSelected().view.enableEditing() is not a function occurs because the enableEditing method is not a public API directly available on the ComponentView instance (which editor.getSelected().view refers to). The GrapesJS ed...

#5109May 13, 2023by yashvi20262 answers
0 reactions

Enableediting not working

i tried enable editing in the console of grapejs i am not getting rte ,i am getting an editor is undefined error

yashvi2026

how to use enable editing editor.getSelected().view.enableEditing(); this gives an error

GJS Helper

The issue "editor is undefined" when trying to use enableEditing in the browser console indicates that the GrapesJS editor instance is not accessible in the current scope of your console. The enableEditing method is part of the GrapesJS ed...

#5107May 11, 2023by siddhi13972 answers
0 reactions

When installing plugins like grapesjs basic block or tui-image-editor it is giving namespace error in node_modules.

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link NA Describe the bug How to reproduce the bug?npm install any plugin from grapesjs-basic-blocksAfter that run the application like in my case it's angular application What is the expected behav...

artf

Please avoid creating bug issues if you don't have any reproducible link

GJS Helper

The "namespace not found" error when installing GrapesJS plugins like grapesjs-basic-blocks or tui-image-editor in an Angular application typically indicates an issue with how the modules are being imported and initialized, or how their de...

Browse all topics