GrapesJS Issues

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

1,399 issues found

πŸ” outdated
#1922Mar 26, 2019by sakshigarg92 answers
0 reactions

InnerText/textContent not working on model

I'm using model.view.el.innerText to capture the innerText of the component in use when I update/change the text using an event, but it returns an empty string (ideally it should return the updated text), although if i use model.view.el.tagName or model.view.el.id it gives the desirable output(h2 and trial respectivel...

sakshigarg9

Used a setTimeout function, worked with mdel.getEl().innerText realised there's a delay

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1921Mar 25, 2019by Nagavijay-kolla2 answers
0 reactions

Image/Video resizing - Not working from all the sides

Hi @artf , I am trying to resize the image/Video, When I drag in/out from the right side it is working fine but when I drag it using left side buttons it is resizing from the right side. What I suppose to say is the video/ image is sticking to the left side and it is not shrinking from the left side. I have used the o...

artf

This is how the default static positioning works in HTML...

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1919Mar 25, 2019by sharmilasivakumar2 answers
0 reactions

Dynamic id generating in selected component

Hi, In on select component, automatically grape editor will generate some dynamic id for giving css. In my case, that id is changing randomly once applied styles also... Even tab structure id also changing as 1-2- If div having some id grape editor will use the same id for styling but now it's generating existing id w...

artf

Update to the latest version. In case you still face the issue, create a new issue and with a reproducible demo

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1917Mar 24, 2019by trafalmejo2 answers
0 reactions

Icons on Block Manager

Hi, I want to change the icon of a Block in the Block Manager: I know it is part of the attributes in the manner: attributes: { class:'gjs-fonts gjs-f-b1' } and the class defines the icon to be used. Where is the list of icons? I didn't find it in the documentation: Block Manager. Thanks!

artf

There is no list of icons, we used fontawesome and some custom one but we're planning to remove them from the core

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1916Mar 24, 2019by sunhillbd2 answers
0 reactions

How to change the dragging nature?

Hi, We have been working with GrapesJs for sometime. I know you have already been asked about the designer mode (Free drag) and you said it was on the roadmap. What I want to ask is, do you have any rough guideline on how we can achieve the free drag? Should we go for integrating any 3rd party library or plugin? thank...

artf

Take a look here please https://github.com/artf/grapesjs/issues/1890 for now I can't add more about this topic

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1915Mar 22, 2019by arachnosoft3 answers
0 reactions

Grapesjs strips   entities (mostly inserted by CKEditor)

Hi @artf , We have just noticed that, if you import this code into grapesjs: <label class="c3100 c3152 c3212" style="box-sizing: border-box;">My label field 1</label>&nbsp; <label class="c3111 c3163 c3223" style="box-sizing: border-box;">My label field 2</label> With an &nbsp; between the two label tags, the &nbsp; is...

artf

I think the issue might be here https://github.com/artf/grapesjs/blob/0a122cd7b558bcf391cfd7e4608dffad3ba9de53/src/parser/model/ParserHtml.js#L169-L172 unfortunately nodeValue returns already processed string, without &nbsp; Try to use thi...

arachnosoft

Thank you very much for the tip @artf , this (undocumented?) Parser config option seems to solve my issue! Of course, I had to set it to true, not 0, as I wanted to keep those empty spaces ;) And had to set it on the editor.Parser.getConfi...

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1913Mar 21, 2019by SylvainBigonneau3 answers
2 reactions

Specifying background-size in background's properties breaks grapesjs

Using latest versions of grapesjs (0.14.55) and grapesjs-preset-webpage (0.1.10), I have configured my editor as such: The library crashes with a "TypeError: values[0] is undefined" error, as referenced in this issue. If I add all the other properties in the array, such as: the error disappears, but I don't need all o...

artf

Ok, I think I found where is the issue, I'll fix it for the next release

SylvainBigonneau

Can confirm it's fixed on v0.14.57. Thanks @artf !

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1912Mar 21, 2019by simplecommerce2 answers
0 reactions

Custom component default children

Hi, I am trying to understand how I can achieve the following.Create a component with a default content as children.Create a block to add that component to the canvas.Edit the component children to anything else and save the HTML result.Reload the component in the editor later on and continue editing. My issue is the...

artf

@simplecommerce a working example of a custom component with default children (it uses local storage) https://jsfiddle.net/t5yw48cs/ Try to review the way you store/load templates, maybe the issue is there https://grapesjs.com/docs/modules...

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1911Mar 21, 2019by sakshigarg92 answers
0 reactions

Is Knockout.js compatible with Grapesjs?

I'm trying to implement an attr binding on one of my components using Knockout.js. It works perfectly fine otherwise but the same implementation does not work in a grapesjs-preset-webpage format. What could the issue be?

artf

Sorry @sakshigarg9 but this question is out of scope of this issue tracker

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Browse all topics