It is wymeditor (Refinery's default HTML/wysiwig editor) which does these conversions.
There are settings you can change to accept more tags:
in
config/iniitializers/refinery/core.rb you can write (for instance)
# Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}}
# config.wymeditor_whitelist_tags = {'span' => {
# 'attributes' => {
# '1' => 'data-tooltip'
# }}}
config.wymeditor_whitelist_tags = {
'video' => {
'attributes' => {
'1' => 'width',
'2' => 'height',
'3' => 'poster'
}
},
'source' => {
'attributes' => {
'1' => 'src',
'2' => 'type'
}
}
}
This example shows setting a tag and some element attributes.
I use FontAwesome, as does the refinery backend. However, I tend to set a class on the element then add the font-awesome icons via matching css.
Or just match some elements that I want to add icons to.
e.g.
>li {
@include icon(green, 'check');
}
which will add the check icon, in green to the list elements that match. (size and padding have default values).