GrapesJS Issues

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

1,399 issues found

🔍 outdated
#765Jan 16, 2018by perfect-coders3 answers
2 reactions

Editor.on('block:drag:stop') event doesn't work

I am using this event many times in the application in the previous library. Now I have updated the library. I have updated the following libraries - 1) Grapesjs Library 2) Grapesjs-Preset-Webpage Library 3) Grapesjs-Basic-Blocks Library But it stops working now. Let me know if there is any change in this event.

artf

Hi @perfect-coders, with the latest version https://github.com/artf/grapesjs/releases/tag/v0.13.5 the HTML5 drag and drop is enabled by default (disableable by nativeDnd option) and unfortunately I wasn't able to keep such events with this...

perfect-coders

Thanks very much for the quick answer. I always love your quick feedback. I have some investment options for you. Hope to hear from you soon.

cgatian

This stumped me. The documentation is out of date

#764Jan 16, 2018by vishal50332 answers
0 reactions

Touch support

Hello @artf Can we use editor in touch enabled devices, lets say ipad or touch enabled laptops? Can you please walk-through about it. Thanks,

artf

Nope, but there is an open bounty about touch support https://github.com/artf/grapesjs/issues/241

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.

#763Jan 16, 2018by austinbiggs3 answers
2 reactions

Disable AssetManager while in "Preview Mode"

After reviewing code, I'm not sure how to disable opening the AssetManager while in Preview Mode. Has anyone done this successfully?

artf

Try to use events

austinbiggs

That worked perfectly!

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.

#762Jan 15, 2018by goldengrisha3 answers
0 reactions

Require

Please help, how can I require or import grapesjs-blocks-basic, not through <script/> tag?

austinbiggs

@goldengrisha - Can you clarify exactly what you're trying to achieve?

goldengrisha

for example if I want to include this plugin I need to add tag like this <script src="path/to/grapesjs-plugin-export.min.js"></script> and then plugins: ['gjs-plugin-export'], can it be achieved by import or require ?

artf

You mean something like this?!?

#760Jan 15, 2018by raphaelraj10352 answers
0 reactions

Is this supported with angular 4?

we didn't find any mode to contact you , so we had generated issue over here, please feel free to close it we also into startup mode, we are interested to discuss further on this

artf

Hi @raphaelraj1035 GrapesJS is framework-agnostic so you can use it wherever you want

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.

#759Jan 15, 2018by gordon-matt3 answers
0 reactions

Problems trying to load and save

Could someone please let me know the required format of the response from the storage save action? I originally posted an issue under the mjml repo regarding this, but there's been no answer and moreover, I think it's probably more suited to be asked here in the main GrapesJS repo (as it pertains to GrapesJS in genera...

gordon-matt

I have updated the original issue with a workaround and made a suggestion. Feel free to close either this issue or the original under the MJML repo, as per your preference.

artf

Hi @gordon-matt and apologize for the late response. As you already get it, the store expects nothing, but onResponse callback is always executed therefore you get that error. Probably just putting typeJson && text && typeof text === 'stri...

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.

#757Jan 14, 2018by suchithmahadi2 answers
0 reactions

Attributes of ChildNodes

Hello @artf , In toHTML function, How to fetch all attributes of parent & child nodes. Because i see only attribute id is fetched. Thanks.

artf

toHTML prints everything inside its component, be sure to add you attributes inside the model, not the view

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.

#755Jan 13, 2018by punkt22 answers
0 reactions

Left and right Panel

Hi, for my project i need two panels, left and right, to show blocks/layers and style simultaneously. The panel id is hard coded in the command view files (OpenBlocks, OpenLayers). It would be good if this is configurable. I can do a pull request, but i am not sure, in which files I should put the configuration (panel...

artf

I'd just add in PanelView and put some checks in PanelView.render (just to avoid those hard coded attrs), then when you create panels you just pass attributes key

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.

#754Jan 12, 2018by punkt22 answers
1 reactions

ES6 class in component script

I would like to use ES6 classes in the components script attribute. When I drop the component onto the canvas the error message "_classCallCheck is not defined" appears. Component code: Error message:

punkt2

I solved the problem. It turns out babel is transforming the javascript class and calls the helper function classCallCheck which is not passed to grapesjs. In the latest version (7) of babel, you can enable the loose mode for the transform...

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.

#753Jan 12, 2018by vishal50332 answers
0 reactions

Help wanted : Search child models of domComponent

Hello, I have to change content of nth child model of component available in the editor. Lets say there is a table with 3 TR. every TR as TD and every TD has div with some content within in it. I want to replace that content with some other content. I have assigned some custom html tags to every div. How do i find tha...

artf

@vishal5033 you can make use of model.find('tr > td[something]')[0], in this way you get the model (use the v0.12.60 as it fixes some stuff related to find)

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