GrapesJS Issues

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

3464 issues found

#1487October 8, 2018by Skovmissen3 answers
0 reactions

Load from Database

I've got an issue with loading the lory-slider from my mysql db. When i load it back in, the functionality is gone, i cant slide left or right. here is my save code: var cmdm = editor.Commands; cmdm.add('save-db', { run: function (em, sender) { sender.set('active', true); //get full HTML structure after design //var I...

Skovmissen

@artf Im stuck could you maybe help me out?

artf

You don't need that custom command, use the built-in remote storage, just storing HTML is not enough https://grapesjs.com/docs/modules/Storage.html

Skovmissen

Thanks i solved it.

#1486October 8, 2018by Deepak8132 answers
0 reactions

How to add/remove class undo manager

Hi @artf, Can you please provide the way to add/remove class in undo manager. Also,on live demo when we drag countdown and click on undo button then countdown element does not have any effect on it. Thanks in advance

takecore

I have same problem. Anyone resolved?

artf

I'm closing this one in favor of the general improvement of UndoManager API https://github.com/artf/grapesjs/issues/3639

#1485October 8, 2018by Skovmissen3 answers
1 reactions

How to prevent styling html components?

Im trying to create some templates, which should not be editable and styleable. So that when i drag in my blocks then should stay as defined. Is there a way to disable the style manger for certain components? i know about data-gjs-removable="false", data-gjs-editable="false" But they do not do what im tryting to do. T...

cjpollard

Try data-gjs-stylable="false".

artf

Yeah you should use data-gjs-stylable="false"

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.

#1484October 8, 2018by mararn16183 answers
1 reactions

[Question]: Textblock subsequent rows do not give cursor/richtext editor when clicked, but are selected instead

I have noticed a strange behaviour in my adaptation of GrapesJS concerning the richtext editor and the gjs-blocks-basic plugin. Whenever I drop a textblock and start writing, I will end up with one component for the dropped block and several sub-components for each row (see elements in screenshot with data-gjs-type="t...

mcsekar12

https://github.com/artf/grapesjs/issues/761

mararn1618

Thanks, my issue seems to be a duplicate of https://github.com/artf/grapesjs/issues/761 I have tried GrapesJS 0.14.33, which should contain the fix for 761, but unfortunately it gives me a new exception within the richtext editor, which I...

mararn1618

I fail to recreate an isolated demo to reproduce the new exception, but I have found that the exception will also occur with GrapesJS 0.14.25, i.e. it was not introduced recently.

#1483October 8, 2018by krisnaw3 answers
1 reactions

[QUESTIONS] Make a component that can't be removed.

Hi there, Is it possible to make a component that can't be removed or without remove the trach icon when it clicked? Thanks, looking forwards.

Skovmissen

I think what you want is data-gjs-removable="false" add that as an attribute to your div like. <div data-gjs-removable="false">Hello World!</div>

krisnaw

Hi, @Skovmissen Thanks for your responses. It's 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.

#1481October 6, 2018by david-polak3 answers
0 reactions

Component.remove() gets called on drag and on trash

There is no way currently to distinguish between remove() called on component when you are dragging it. And when you pres the trash button. This is currently a blocker for me, I am gonna fork and hack it in myself, but it would very much help if this feature was available.

david-polak

https://github.com/david-polak/grapesjs/blob/2872daad17722895a3c8e80b9a4c2db188112727/src/commands/view/ComponentDelete.js#L20 this works

david-polak

https://github.com/artf/grapesjs/pull/1482 PR

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.

#1480October 6, 2018by david-polak2 answers
0 reactions

[BUG]: "component:remove" event triggers when components are moved

Similar to #868 event is fired on move. https://jsfiddle.net/fnjmxyr4/

david-polak

Sorry, it does not. I was debugging the wrong thing.

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.

#1479October 6, 2018by kuldeepcis2 answers
0 reactions

Custom element with pop-up

hello @artf I've make pop-up for select custom link data but data is save and also display when we click on export html. But data is not reflected after reload the page. This is live Demo: https://jsfiddle.net/gwojsok7/42/ Thanks is advance.

artf

Use the latest version, everything works correctly

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.

#1478October 6, 2018by momu-smartcoach2 answers
0 reactions

how to create a Independent modules not to be dragged

hi! how can i create a Independent modules not to be dragged into,like the built-in blocks in the new project gradedrop https://grapedrop.com/edit/852b059b9b124d3abf640de3d5287106。 Expected reply,thank you so much!

artf

Are just simple blocks, nothing different, I've only added a select which switches the set of blocks to render

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.

#1477October 4, 2018by symmetrically3 answers
0 reactions

assets compilation issue in production phoenix application by GrapesJS

We are using GrapesJS to allow users to design some static pages in our production application build with Phoenix . We are using brunch to install and deploy our assets . Our production site is having a high usage of server side template rendering for performance reasons. GrapesJS works locally well but in production...

artf

You can't use SSR on GrapesJS

symmetrically

@artf We are not rendering GrapesJS server side. It is compiled with asset pipeline where it breaks causing the other server side rendering to go down as well.

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.