Skip to content

yodagg/tinymce-fontawesomepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinymce-fontawesomepicker

A plugin for tinymce v5 that selects the fontawesome icon.

example

usage

  • Move the fontawesomepicker folder to tinymce/plugins

    window.tinymce.init({
        selector: 'textarea',
        plugins: 'fontawesomepicker',
        toolbar: 'fontawesomepicker',
        fontawesomeUrl: 'https://www.unpkg.com/@fortawesome/[email protected]/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/[email protected]/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'
        },
    })

preview

icons