Issue #3690Opened August 10, 2021by throne19860 reactions

BUG: appendTo not working with trait manager

Question

I have a basic example as follow

Code SnippetTEXT
HTML
        <div id="gjs">
        
        <div class="traits-container"></div>
          <div style="padding: 25px">Hello World!!!</div>
        
        </div>
        
        <h1>
        Append trait manager 
        </h1>
        
        <div class="traits-container"></div>
        

Js

      const editor = grapesjs.init({
	      container: '#gjs',
        fromElement: true,
        height: '100%',
        storageManager: false,
        traitManager: {
                appendTo: document.querySelector('#traits-container'),
          },
        plugins: ['gjs-blocks-basic'],
        dragMode: 'absolute'
      });

Jsfiddle here:  [https://jsfiddle.net/tuw32kjo/4/](url)

Why trait manager is not appended to the custom container?

Answers (0)

No answers yet.

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.