所以,我正在使用CKEditor进行wordpress。但是当我选择 B 更改为粗体时,它使用<strong>
标签。我想将其更改为<b>
我如何以及在哪里做到这一点?
版本: 4.5.3.3
将
粗体样式应用于文本的样式定义,定义如下:
插件/基本样式/插件.js
config.coreStyles_bold = { element : 'b', overrides : 'strong' };
config.coreStyles_bold = {
element : 'span',
attributes : { 'class' : 'Bold' }
};
查看文档以获取更多信息(它非常全面,因此请做好准备:)(:
https://docs-old.ckeditor.com/ckeditor_api/symbols/CKEDITOR.config.html#.coreStyles_bold