embedCode is a Redactor plugin that allows users to insert embed codes from e.g. social websites (Instagram, Twitter, Facebook, Pinterest etc.)
Based on the Redactor Video Plugin code.
- Include the file.
- Add the 'embedCode' to Redactor configuration object under 'plugins'.
Example:
$('#redactor').redactor({
'plugins': [ 'embedCode' ]
});
Note:
The plugin is assuming the usage of Font Awesome icon set. If you'd like to change the class used, edit the following per your liking:
<i class="fa fa-code"></i>