Issue #2964Opened August 21, 2020by Nikesh-hub1 reactions

Traits are not created by default if not requested, indeed I'm doing this in the demo https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1407-L1408

Question

Traits are not created by default if not requested, indeed I'm doing this in the demo https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1407-L1408

Originally posted by @artf in https://github.com/artf/grapesjs/issues/1627#issuecomment-445216188

Hello artf can you please give here proper example how we can request for Traits

Answers (1)

Ju99ernautAugust 24, 20201 reactions
const openTmBtn =  editor.Panels.getButton('views', 'open-tm');
openTmBtn && openTmBtn.set('active', 1);

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.