Issue #2165💬 AnsweredOpened July 24, 2019by sdrebel0 reactions

How to extend style manger Sector's property

快速解答by artf

Hi @sdrebel can you show us your implementation of custom asset manager? If you have followed this you should see it also in the Style manager

Read full answer below ↓

Question

代码片段TEXT
Hi @artf ,

We have created a custom asset manager which is working perfectly for image component. However we are not able to call custom asset manager for background image. 

Tried to access using this methods
          var stm = editor.StyleManager;
var fileType = stm.getType('file');
stm.addType('file',{
 model: fileType.model,
view: fileType.view.extend({
        events: {
     ......
   }
})
})

Is there any other method which we can use editor.StyleManager.getSector() and override the function?


Thank you,

Answers (2)

artfAugust 7, 2019

Hi @sdrebel can you show us your implementation of custom asset manager? If you have followed this you should see it also in the Style manager

no-response[bot]August 17, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.