GrapesJS Issues

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

1180 issues found

#2916July 24, 2020by mcottret2 answers
1 reactions

[Bug]: Text component content not retrieved properly when using custom RTE

Version: 0.16.12 Are you able to reproduce the bug from the demo ? [ ] Yes [x] No (it does not include a custom RTE) What is the expected behavior ? When using a custom RTE, the generated / exported code should correspond to the RTE's generated code What is the current behavior ? The generated code corresponds to the...

artf

Your solution seems to be correct 👍 a PR would be really helpful

mcottret

Awesome ! artf/grapesjs-plugin-ckeditor#39 & #2977 opened.

#2913July 23, 2020by neon123452 answers
1 reactions

BUG: src is stored twice with image

The output of "JSON.stringify(editor.getComponents())" shows that the src of an image is stored twice. { "type": "image", "void": true, "status": "selected", "content": "", "attributes": { "id": "iy3c7", "src": "data:image/png;base64,..." <--- 1. }, "src": "data:image/png;base64,...", <--- 2. "activeOnRender": 0, "ope...

artf

@longdoan7421 I think we can delete it in toJSON method when the src is equal to attribute.src and ensure is loaded back correctly on load

longdoan7421

Hi @artf, I just took a quick look through ComponentImage. I think it is possible to drop the src property in image model and replace the code which use src in ComponentImage and ComponentImageView with the attribute.src. But I am not sure...

#2911July 22, 2020by FlowingCloudRTL1 answer
0 reactions

BUG: Infinite Recursion by dragging and dropping an component into itself on firefox

Version: 0.16.18 Are you able to reproduce the bug from the demo? [X ] Yes [ ] No What is the expected behavior? You should not be able to drag a component into itself Describe the bug detailed On firefox, you can drag a component into itself by directly clicking on the element and then drag it within itself. This get...

artf

Thanks for the report @FlowingCloudRTL. The issue will be fixed in the next release

#2906July 21, 2020by neon123453 answers
0 reactions

BUG: editor.refresh() not working in custom setup

I have a problem with a custom setup where the canvas iframe is moved around with js. The "editor.refresh()" call does not fix the positioning of the tools after the move. I think the problem is due to the offset cache not cleared on refresh. If I call this before refresh, the tools are positioned as expected: editor....

artf

@nedim1511 can you please provide a reproducible demo, please?

neon12345

https://jsfiddle.net/3gqh6p5a/ Click select the "Hello World" and drag the vertical splitter to the left to resize the split window. The "editor.refresh()" called on dragEnd should align the tools but it does not seem to work. It is more o...

artf

On my local copy, your example works correctly so probably in the next release it will be fixed

#2902July 18, 2020by nlnbich1 answer
0 reactions

FEAT: reset current frame view

Version: 0.16.12 Are you able to reproduce the bug from the demo? [ ] Yes [x ] No What is the expected behavior? Reset window content of current frame view Describe the bug detailed I want to implement a component to help user do certain action by attaching event to widow (ex: scroll or resize event) or add some data...

artf

You can get the canvas inner window in this way editor.Canvas.getWindow()

#2899July 16, 2020by TOM90ek1 answer
0 reactions

BUG: Incorrect imports in main.scss (?)

Version: ^0.16.17 Are you able to reproduce the bug from the demo? [ ] Yes [X] No According to tutorial i want to override styles for my editor. https://grapesjs.com/docs/getting-started.html#theming But I cannot compile my project due to an error in main.scss: Are these imports correct? grapesjs/src/styles/scss/main....

artf

Yeah there is an attempt to solve it here https://github.com/artf/grapesjs/pull/2859

#2892July 14, 2020by metatick2 answers
0 reactions

BUG: CanvasView.clearOff not called when parent element is scrolled

v0.16.18 (also tested v0.16.22) Are you able to reproduce the bug from the demo? [X] Yes [ ] No What is the expected behavior? grapesjs should behave correctly inside a scrolling element Describe the bug detailed When grapesjs run within a scrolling parent element (except for window), the canvas does not clear it's of...

artf

Thanks for the report @metatick are you able to confirm if it's the same issue as #2722? In that case, this should be closed (but might worth reporting the same codesandbox).

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...

#2887July 10, 2020by jgui1129No answers
0 reactions

BUG: Embedding Youtube Playlist Breaks the URL

Version: v.0.16.18 Are you able to reproduce the bug from the demo? [x] Yes [ ] No What is the expected behavior? It should render the playlist Describe the bug detailed Upon adding the playlist url using the embed code, it breaks and omit some parts of the url Ex: <iframe width="560" height="315" src="https://www.you...