FontAwesome recommends displaying its icons using <i class="fab fa-facebook"></i>
(an empty i
tag). However CKEditor removes empty tags.
One way around this is to enable source mode in CKEditor, add the empty i
tag and then save the entity without turning off source mode (so CKEditor doesn't remove the tag). However I'm wanting to use this in a block and, because of https://github.com/backdrop/backdrop-issues/issues/1259, this workaround doen't work.
The proper solution to allow empty tags in CKEditor is to add some code to a config.js file, however I'm not sure how to do that in Backdrop without hacking core... Is there another way I can do this, or can we add a UI option in core to specify allowed empty tags?
Recent comments
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform
After alot of trials, i have done the obvious and translated the whole block for different languages with each property condition as follows: ->propertyCondition('langcode', 'en...
How to get the current page language?
Thanks so much! It's working now: I was able to transfer the docroot files to the containing directory without the need for a second database or any manual configuration export/import/sync...
Backup & Migrate Config: There was a problem creating field...database table with the name already exists.