GrapesJS Issues

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

3464 issues found

#1456September 25, 2018by Gyanxie3 answers
0 reactions

npm start not work at version 0.14.33

I downloaded source by zip, and run 'npm i', but I can't run 'npm start'. Here is how I fixed the problem.It works when I change package.json before: after:

artf

Ok but -- -w is intended for the watch on SCSS files, with your change, I think it will not work. (I guess you're using Windows) Probably we should do something like this to make it run cross-platform: Please @Gyanxie try it and let me kno...

Gyanxie

@artf Yes, I use window.I have just try it with your change, but not works.here is an example that it works.npm version

Gyanxie

@artf I has run 'npm list', if it is necessary. npmList.txt

#1455September 24, 2018by CCsoh2 answers
0 reactions

the GrapeJS no function under another DIV

I'm going to put the grapejs div inside another ajax div but That makes grape's frame invisible and I need to put the div under the body to display , so there has any solution to solve?

CCsoh

the code sample like this, I use ajax to change the div inside content to GrapeJS

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.

#1453September 22, 2018by DanielRuf3 answers
0 reactions

big repository size

Currently the repository is 40 MB big. It looks like built / dist files and dev files are tracked and not ignored. List of deleted files:

artf

Hi Daniel, to be honest, I never looked at the size of the repo so thanks for the report. I can run git gc --aggressive --prune=now but it's not that effective (-15% in size). Unfortunately, skipping dist files is not an option because thi...

DanielRuf

because this is what you actually use when you callimport grapesjs from 'grapesjs' Which should be generally just published with npm publish and be in .gitignore in the ideal case ;-)

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.

#1451September 22, 2018by snehalseth2 answers
0 reactions

[QUESTION] how to use custom jQuery plugin ?

I am trying to use a custom jQuery plugin for the block but the plgin is not working coz of the iframe as i am not able to access it inside the iframe. how can i run jQuery plugin for the block ?

artf

https://grapesjs.com/docs/modules/Components-js.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.

#1450September 22, 2018by besingamkb2 answers
0 reactions

[QUESTIONS] Devices panel appendTo

Hi Everyone. I manage to redesign the grapesjs editor by using appendTo on the styleManager, layerManager and blockManager on its own division. I also use the grapesjs-preset-newsletter. But the device panel is still stick on the editor workspace. Is it possible to append on its own division? and I also notice. Some b...

artf

Device buttons are inserted by grapesjs-preset-newsletter, you have to move them on load via JS

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.

#1449September 22, 2018by comedydriving1 answer
0 reactions

Asset Manager Pops up for every component

Is there a reason why the default asset manager would pop up for every component added? It is doing it for columns, text, etc.

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.

#1448September 21, 2018by prestonkscott3 answers
1 reactions

Child component not selectable when using custom view

I'm trying to create a custom component that creates it's own view with nested HTML. I do not want this HTML to be rendered as a component so I use (using jQuery) view: defaultType.view.extend({ init: function () { $(this.el).html('<div class="container"></div>'); }, getChildrenSelector: function () { return '.contain...

artf

If you add elements via View you can't select them, only Models can be selectable Read this page https://grapesjs.com/docs/modules/Components.html you also create new types without isComponent

prestonkscott

@artf I understand how to use isComponent. I will be using fromElement: false so it's not required for how I intend to use grapes. I do not want the elements added to the view to be selected, I do however want nested components to be selec...

artf

Ok, now I got it. The getChildrenContainer should work as you expect, I'll just try to remove those pointer-events stuff and make the hover work more like the select. BTW you don't need jquery, grapesjs under the hood uses cash (which has...

#1447September 21, 2018by kevinkt2 answers
0 reactions

How do you add a box element?

Not sure how to add a boxed element into the editor. Can anyone help?

artf

https://grapesjs.com/docs/getting-started.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.

#1445September 20, 2018by YashPrince1 answer
0 reactions

Display Preview based on JSON data

@artf How can we display preview based on JSON data into the next page. Currently we are saving josn html & css and plain css and Html for edit we are using JSON and for display we are using plain HTML/CSS. I want to know is there any way to display preview based on JSON data in different page (As like you are showing...

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.

#1444September 20, 2018by Abhisheknanda13444632 answers
0 reactions

How to generate uniminified file of js?

Hi @artf Can you please tell me.How to generate readable unminified javascript file like when i do npm run build i get only minified file(grapesjs-preset-newsletter.min.js) in dist folder I want to get unminified file in dist folder for newsletter plugin and in grapesjs "grapes.js" is present i want to generate same f...

artf

npm run build-dev

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.