How to change type on allready inserted elements in canvas. #4794
Unanswered
ikenderham
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You need to update the property of the component and not the attribute |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hello everyone.
I need a solution to change type on default components to "section". I figured out how to change type on new elements, but all the allready inserted, is still "default".
//const wrapper = editor.DomComponents.getWrapper();
//wrapper.find('.row.segment').forEach(comp => comp.addAttributes({ type: 'sektion' }));
please can anyone help? Just to save time and not have to remake all my designs to get type "sektion"
Beta Was this translation helpful? Give feedback.
All reactions