BUG: appendTo not working with trait manager
Question
I have a basic example as follow
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.
Issue #2207
[BUG]: Can't drag component if there is some space on top/left with Mode Absolute
Given the following code example... Results in no ability to drag and drop elements to correct position using drag icon on the panel. See F...
Issue #2018
BUG When import as module Angular 6
in Version: "grapesjs": "^0.14.61", "grapesjs-preset-newsletter": "^0.2.20", i import the script as: and the context is the code: And only...
Issue #519
No Blocks by default
Using this code I get an editor but there are no blocks. I also do not get the icons for the screen size but other icons are there. As you...
Issue #5487
BUG: Style Manager doesn't display multiple rules for the same class
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox Reproducible demo link https://jsf...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.