Issue #1156💬 AnsweredOpened June 1, 2018by Deepak8130 reactions

Plugin gjs-style-gradient not found

快速解答by ssabrewolf

you need to inlude the plugin js , here is working live version https://jsfiddle.net/ssabrewolf/7ur0cwq3/32/

Read full answer below ↓

Question

代码片段TEXT
Hi @artf,

I am getting this issue in gradient plugin "Plugin gjs-style-gradient not found".Used below code to include in our file:

editor  = grapesjs.init({     
      plugins: [ 'gjs-style-gradient'], 
      pluginsOpts: {
                  'gjs-style-gradient': {
                      colorPicker: 'default',
                      grapickOpts: {
                          min: 1,
                          max: 99,
                      }
                    },

Also, i have reference this issue #1116 but not found any solution.
Please help us to resolve this issue.

Answers (3)

Deepak813June 5, 2018

Hi @ssabrewolf,

Thanks for the message.

I have used the same code but some time i get the same error "Plugin gjs-style-gradient not found" .See the code below:

editor.StyleManager.addProperty('Page Settings', { name: 'Gradient', property: 'background-image', type: 'gradient', defaults: '100' });

editor.StyleManager.addProperty('Section Settings', { name: 'Gradient', property: 'background-image', type: 'gradient', defaults: '100' });

I have also follow all the errors and discussions regarding the gradient plugin but not able to get the solution. Please provide the valuable solution.

ssabrewolfJune 5, 2018

to discard problems in your enviroment simply create a fork ,is one cilck from the above link and use the same code your using to init

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.