Answer the question
In order to leave comments, you need to log in
How to remove style attribute when applying styles in ckeditor 4?
How to remove style attribute when applying styles in ckeditor 4? I need that when my style is selected from the list, a certain class is added to the element, but its width and height are removed (or better, the entire style attribute).
Here's what you can prescribe in the styles section to remove the width and height from there?
{
name: 'Full Size Image',
element: 'img',
attributes: { 'class': 'autoSize' },
styles: {
'width':'',
'height':''
}
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question