Issue #1979Opened April 25, 2019by 3dmedium1 reactions

[FEATURE REQUESTS]: StyleManager Option for Editing single Elements allways

Question

I'm using this great Library for Editing only Parts of Pages. I mainly design Compontens ready to use on the Page and when using the style Manager it allways should only take effect to only the selected Elements, not its classes.

So at the Moment I allways have to deselect calsses and edit. Is it possible to add an Option so Style Manager will allways use the ID for generating CSS?

Answers (3)

artfMay 1, 20191 reactions

You can make use of selector:add event

editor.on('selector:add', selector => selector.set({ 
	active: false, // disable the selector
	// or
	private: true, // hide the selector
}));
3dmediumMay 1, 20190 reactions

Thanks for the Solution. This is rather easy.

lock[bot]May 6, 20200 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.