A plugin for tinymce v5
that selects the fontawesome
icon.
Move the fontawesomepicker
folder to tinymce/plugins
window.tinymce.init({
selector: 'textarea',
plugins: 'fontawesomepicker',
toolbar: 'fontawesomepicker',
fontawesomeUrl: 'https://www.unpkg.com/@fortawesome/fontawesome-free@5.14.0/css/all.min.css',
fontawesomePro: false, //default: false, enable or disable Pro vs Free font
})
Url fontawesomepicker
window.tinymce.init({
selector: 'textarea',
plugins: 'fontawesomepicker',
toolbar: 'fontawesomepicker',
fontawesomeUrl: 'https://www.unpkg.com/@fortawesome/fontawesome-free@5.14.0/css/all.min.css',
fontawesomePro: false, //default: false, enable or disable Pro vs Free font
external_plugins: {
// url
fontawesomepicker: 'https://www.unpkg.com/tinymce-fontawesomepicker/fontawesomepicker/plugin.min.js'
},
})