QUESTION: Adding selected component style to a block #3636
Unanswered
aryanchopra
asked this question in
Q&A
Replies: 1 comment
-
Hi @aryanchopra, I would like to help you solve this problem. Can you make a demo on codesandbox something like this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm trying to fetch the selected component and make a block out of it, however, I'm struggling with adding the css of the same. my approach looks like this currently:
editor.BlockManager.add(widgetname, { label: widget name, content: editor.getSelectedAll(), category: panelname, attributes: { title: widgetname, class: iconclass }, });
Any leads would be helpful :)
Beta Was this translation helpful? Give feedback.
All reactions