QUESTION: How to programmatically change componentFirst?
Question
Hey @artf, I was trying toggle between using ids and classes for styling so I need to change the componentFirst attribute programmatically. But when I try to change the config, the behaviour doesn't change. This isn't working even in the demo. Steps to reproduce:
- Add two text blocks
- Give them the same class name.
- In the browser console, change the componentFirst property using
editor.getConfig().selectorManager.componentFirst = false - Add some color to the text. It is only added to the selected block
P.S. I also tried doing editor.refresh() after changing the config but that did not change anything.
Answers (1)
You have to retrigger the selection after changing that option editor.trigger('component:toggled')
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3268
QUESTION: How to add javascript in the html without sanitization?
Hey @artf, I am taking javascript input from the user. I need to add this javascript inside the template HTML but it gets sanitized. Is the...
Issue #2514
[Question]: How to change device from dropdown to icon
I'm trying to replace the dropdown with icon for the devices following the example in the newsletter template yet it doesn't work.
Issue #3457
BUG: Custom trait input not working
Hi @artf ! Version: 0.17.3 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? The input is create...
Issue #3626
How to set src of video tag at dynamic?
Hi @artf , Hi I have drag and drop video tag and button from blockmanager, On Clicking the button , I need to change the url to src. But no...
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.