Issue #2200Opened August 17, 2019by GoodPHP3 reactions

Customize your GrapesJS

Question

Hi there,

I will offer your my service of customizing your grapesJS editor to any result.

I have experience about 3 years with GrapesJS and 9 years in Web developing.

Example of my work: https://monosnap.com/file/MnXzYlIK5UVe3oVr8dqveDzZG7PVU8

Video: https://monosnap.com/file/Lw0E8VmGdsyWUGe8jsRII6i66P1urm

Email: [email protected] Skype: maxim2356

Best regards :)

Answers (3)

smik3August 19, 20192 reactions

Oh I know that! What I was referring to is that if you try and use the index/block/component files from dist (ie unminified and easier to work from) they don't work outside of a node/webpack environment.

On 19 Aug 2019, at 20:18, Pouya Miralayi [email protected] wrote:

@smik3 you do not need node environment for defining plugins. grapesjs.plugins.add('your-plugin', editor => { your stuff } this will define the behavior and you have the editor instance available to you as argument. then initialize your editor as before and specify the plugin. cheers.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

inaLarAugust 21, 20191 reactions

@smik3 , this is not a good practice, as it won't let you update GrapesJS easy in future. You better separate the custom code in js functions and whichever of them you need to use as a plugin, you can load. Or use node only for compilation of your plugin and put the plugin-name.min.js in production.

var editor = grapesjs.init({ ... plugins: [yourCustomFunction], ... })

ChaitwoAugust 19, 20190 reactions

Hey, @GoodPHP I need help with a challenge I've been facing

I want to hide images with src empty on preview mode and show them on editor mode i.e stop: preview.

I've tried this but it doesn't seem to work for some reason

editor.on('run:preview', () => {
    $('.img[src=""]').hide();
});

Thanks, Chaitu

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.