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