No component change for type tagName #5616
Unanswered
gilsonnetotec
asked this question in
Q&A
Replies: 0 comments
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.
-
I need to change the tagName
editor.on('component:update', (component) => {
const classeComponent = component.getClasses()
if (typeTitle != '') {
console.log(typeTitle) // goes into h2
if (classeComponent != '') {
component.set('tagName', typeTitle) // No to changes
component.save() // No to save
}
console.log(component.get('tagName')) // continue h1
}
})
Beta Was this translation helpful? Give feedback.
All reactions