停止ckeditor添加非amp代码

停止ckeditor添加非amp代码,ckeditor,amp-html,Ckeditor,Amp Html,有没有办法使ckeditor与AMP兼容? ckeditor不断向图像标签添加内联样式,这会破坏AMP.如果无法对在ckeditor中创建的内容使用任何内联样式,请尝试使用以下(无法禁用高级内容过滤器(ACF)以使其正常工作): 如果您只想禁止图像的样式,请使用: var editor = CKEDITOR.replace( 'editor1', { disallowedContent : 'img{width,height}' });

有没有办法使ckeditor与AMP兼容?
ckeditor不断向图像标签添加内联样式,这会破坏AMP.

如果无法对在ckeditor中创建的内容使用任何内联样式,请尝试使用以下(无法禁用高级内容过滤器(ACF)以使其正常工作):

如果您只想禁止图像的样式,请使用:

var editor = CKEDITOR.replace( 'editor1', {             
                 disallowedContent : 'img{width,height}'
});
要了解有关ACF的更多信息,请参阅:

var editor = CKEDITOR.replace( 'editor1', {             
                 disallowedContent : 'img{width,height}'
});