GrapesJS Issues

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

1180 issues found

#1003April 4, 2018by Siddharth-ss422793 answers
0 reactions

[Question/ bug]"Uncaught TypeError: t.get is not a function" on adding select-comp

on adding button "select" component { id : 'select', className : 'fa fa-mouse-pointer', command : 'select-comp', }, in button's panels getting error on button clickgrapes.min.js:2 Uncaught TypeError: t.get is not a function \n at R.i.run (grapes.min.js:2) at R.i.updateActive (grapes.min.js:11) at y (grapes.min.js:2) a...

Piterden

Maybe you share your run config for test?

Siddharth-ss42279

solved, it was related to the fonts loading.

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.

#1000April 3, 2018by sublimekaushik3 answers
1 reactions

[Question/Bug] how to show plain text as trait

I want to show plain text within the trait under the setting button. In the above image 'Configuration_Type' I want to show as plain text. How can I achieve this?

Piterden

Try to And then use CSS to hide what you don't need.

sublimekaushik

Thanks. It worked.

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.

#998April 3, 2018by tonygiang3 answers
0 reactions

[BUG] Asset Manager sends empty request when uploading image

Description: GrapesJS editor is initialized in an editor.html file as follows: localhost:9001 is a local IIS server running PHP5. The content of uploadimage.php is as follows: Since images uploaded from GrapesJS is expected to be in the $FILES array, I dump all of its content to a log file everytime a request reaches...

artf

What about the client-side? Do you see the upload request correctly (eg. from the inspector)?

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

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.

#997April 3, 2018by alimajed932 answers
0 reactions

[BUG] Modal is not scrollable

Hello everyone, I noticed that if the size of the screen is smaller than height of modal, the modal is cropped, and the user cannot scroll to the bottom of the modal, in other words, a part of the modal becomes unaccessible. The following attached image shows how the image block modal is cropped (one small part of the...

artf

This behavior was just adapted for the demo (where there is shouldn't be an issue with the size) you can tweak it easily with CSS

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.

#989March 29, 2018by tommedema3 answers
1 reactions

[BUG] Consecutive spans render whitespace differently in grapes' editor than in ordinary window

I've spent the greater part of an afternoon trying to debug this. While I have reduced this to a small and easy to reproduce test case, I didn't find the root cause of this issue yet. Hopefully someone can help. Note the following HTML template: If you render this in a browser, it renders as: <img width="133" alt="scr...

artf

Yeah Tom thanks, I think a configurable option (eg. keepWhitespace?!?) might be a good solution

artf

This is due to the node cleaning while traversing https://github.com/artf/grapesjs/blob/dev/src/parser/model/ParserHtml.js#L155-L158

tommedema

Thanks @artf, I see. I would suggest removing this or at least making this configurable (defaulting to true then to prevent breaking changes). Would you accept a PR for this?

#987March 29, 2018by baxxos3 answers
0 reactions

[BUG/Question] Dropdown indicator not displayed for a custom trait

Hello, the dropdown (select) element arrow indicator icon is not rendered when adding a custom trait to a component: I'm using following code to add the custom trait to the link component: Is there anything I'm missing? An extra attribute perhaps? Everything else works fine, except for this detail (which is apparently...

nojacko

I think you have to override the CSS.

baxxos

Successfully resolved via a "dirty hack" (overloading the initialize method) referenced here: #972

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.

#986March 29, 2018by nojacko2 answers
2 reactions

[BUG]: Exported CSS cannot override body's background-color

When a body background style is defined in the style option of the init function it's not possible to override. Given the style: After changing the background-color in Grapes, the CSS output is: Due to the ordering, the original colour will take precedence when used. While not necessarily an issue, the repetition of b...

artf

Thanks James, we already aware of it #552 but unfortunately not yet provided any fix :/ The main problem is that GrapesJS doesn't handle well body/wrapper styling and so, as a result, we have the body coming from 3 different spots:from pro...

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.

#985March 29, 2018by tomichal3 answers
1 reactions

Can GrapesJS allow uploading arbitrary file through the built in asset manager?

I looked at the asset manager code as well as the wiki and it seems like despite the docs claiming that the asset manager can handle uploading arbitrary files (i.e. by adding an arbitrary asset type), the actual asset manager code hardcodes file type image/* on the file input field of the file upload form https://gith...

artf

Good question, I think the issue is the OpenAssets command itself that should be renamed in OpenImageAssets (indeed it renders only images types). So, what you can try to do is to create another command (eg. a more generic one or just for...

tomichal

@artf I created the referenced pull request. I admit my motivation was my specific use case, but hopefully it was coded generically enough to be acceptable in the core editor codebase.

tomichal

... oh and just to clarify - another chunk of code written alongside this pull request resides in a custom plugin of my project. It's a plugin that essentially does the following:Customises the Link DOM component such that upon creating a...

#980March 26, 2018by v8jupiter2 answers
0 reactions

[BUG] Related with task https://github.com/artf/grapesjs/issues/873

Hello, After restoring editor from db still have some part of bug present. It seems inside of script: function () traits will have old value. Short explanations: script: function() { var startfrom = '{[ startfrom ]}'; var endTxt = '{[ endText ]}'; In variable startfrom and endTxt we will have old values Video explanat...

artf

Thanks for the catch Vlad, it'll be fixed in the next release

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.

#977March 22, 2018by alimajed932 answers
0 reactions

[BUG] Video block - Controls option in case of Vimeo provider

Hello everyone, I noticed that when you select Vimeo as a provider in a video block, and uncheck the "Control" option, the controls will still be there and you cannot remove them. Regards.

artf

Seems like now it's only a feature for Pro accounts... https://help.vimeo.com/hc/en-us/articles/224969968-Embedding-videos-overview I'll remove it then

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.