GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 393 forks source link

Make Bold to able to remove <strong> tags #533

Closed jnnkB closed 4 years ago

jnnkB commented 5 years ago

I think this really would be helpful if you edit HTML files that use <strong> instead of <b>.

anthonyjb commented 5 years ago

@jnnkB I'm not sure what the request is here sorry, however, you can easily change the base tag generated by the bold tool if you need ro, for example:

ContentTools.Tools.Bold.tagName = 'strong'

This would switch the bold tool from using b currently to use strong. This doesn't effect the native browser behaviour for modifier (e.g ctrl) + b though.