GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#4385June 15, 2022by froodian1 answer
0 reactions

BUG: index.d.ts says that run commands should return void but docs say their return value may be used

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Any Reproducible demo link https://grapesjs.com/docs/modules/Commands.html#stateful-commands Describe the bug How to reproduce the bug? in a typescript setup, What is the expected behavior? it is allowed, as in the "Let's...

artf

Thanks @froodian I'll update them

#4384June 15, 2022by froodianNo answers
0 reactions

BUG: index.d.ts says that components must be Backbone.Collection<Component> but the docs say Component[] is also accepted

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? AnyReproducible demo link https://grapesjs.com/docs/modules/Components.html#component-definitionDescribe the bug How to reproduce the bug?https://github.com/artf/grapesjs/blob/dev/index.d.ts#L2055 shows components as Backbon...

#4383June 14, 2022by Singwai1 answer
1 reactions

BUG: A "." character is injected when inserting two whitespaces when editing any text component in grapesjs

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://grapesjs.com/demo.html Describe the bug Double click any text component Put the cursor between a word Insert 2 whitespaces Expected Behavior: 2 whitespaces are inserted Current Behavio...

Singwai

This is a behavior introduced by macOS, not a bug from Grapesjs https://howchoo.com/macos/disable-double-space-bar-period-dot-macos

#4376June 13, 2022by iamqinglong1 answer
0 reactions

BUG: Unselected custom component will also listen to event 'styleable:change'

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome 100 Reproducible demo link https://grapesjs.com/demo.html Describe the bug How to reproduce the bug?Drop two or more custom component <img width="1230" alt="Screen Shot 2022-06-10 at 3 11 54 PM" src="https://user-im...

artf

Hi @iamqinglong this is the expected behavior as you're creating a listener on the editor model, but you can check the selected component in this way

#4371June 10, 2022by clonefunnels3 answers
3 reactions

BUG: All editors broken after last update that broke storage manager.

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://www.teamfunnels.net/login.php demo demo Describe the bug Please help me understand how to fix everything that this update broke. I don't understand why you wouldn't make it compatible...

Vac1911

@clonefunnels I made a quick function to load data with backwards compatibility:

Vac1911

@artf Quick sidenote: editor.loadProjectData should be added to the type declarations

artf

Please, read the release notes carefully https://github.com/artf/grapesjs/releases/tag/v0.19.4 https://github.com/artf/grapesjs/pull/4223#issuecomment-1152331298

#4370June 9, 2022by Vac19112 answers
0 reactions

BUG: LayerManager becomes unresponsive after StorageManager.load()

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 102Reproducible demo link https://codesandbox.io/s/grapesjs-4370-niizlcDescribe the bug How to reproduce the bug?Enable remote storageCall editor.StorageManager.load (doesn't matter what this actually returns) Then ca...

artf

Good catch, thanks @Vac1911

zhangdongxu-web

我也遇到同样的问题,重新加载储存的数据后 LayerManager 变得无响应 只有一个 body box 怎么办呢

#4362June 2, 2022by tuongnguyendev1 answer
1 reactions

BUG: Background image preview show error link

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 102.0.5005.61 Reproducible demo link https://jsfiddle.net/tuongnguyendev/25kcypuj/ Describe the bug How to reproduce the bug?Thow a column in canvas.Select component test backgroundDecoration => Background =...

tuongnguyendev

Hi @artf Updated new bug from #4350 Thank you.

#4357May 31, 2022by adiux1 answer
0 reactions

BUG: A border on the mj-column is shown twice in the editor

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 102.0.5005.61 Reproducible demo link https://codepen.io/adiux/pen/BaYrEXR?editors=1111 Describe the bug How to reproduce the bug?Add grapesjs-mjml to the project with any version newer than 0.5.6Add a border to a se...

adiux

sorry, I just realized I posted this to the wrong repo. Created another issue at grapesjs-mjml.

#4356May 31, 2022by Justin83031 answer
0 reactions

BUG: selector:remove event does not exist

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 101 Reproducible demo link https://jsfiddle.net/sdrf72wx/1/ Describe the bug How to reproduce the bug?execute the code below on the initialization of the editoradd and remove a selector of a componentLook at the con...

artf

Hi @Justin8303 selector:remove refers to the global container of selectors so it's only triggered when the selector is actually removed from the global collection and not from the component. When you remove the selector from the component,...

#4352May 27, 2022by rubjo2 answers
1 reactions

Add Norwegian language

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v101 Reproducible demo link NA Describe the bug Not a bug, just an issue for upcoming PR for Norwegian support Code of Conduct [X] I agree to follow this project's Code of Conduct

rubjo

Someone beat me to it - so recently that it seems that it isn't released yet. :)

ZaheerNiazi007

@rubjo i18n: { locale: "en", detectLocale: false, messagesAdd: { en: en, }, }, try this use norweigen lang file (https://github.com/GrapesJS/grapesjs/blob/master/src/i18n/locale/en.js)