Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 878 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 878 Bytes

FontAwesome Plugin for React FileManager

This is client side plugin and has server side plugin dependency.

Dependencies

FileManager: https://github.com/react-filemanager

Back-end Support: https://github.com/themexpert/rfms-plugin-fontawesome

Installation

npm i @themexpert/rfm-plugin-fontawesome

or

yarn add @themexpert/rfm-plugin-fontawesome

Usage:

Include @themexpert/rfm-plugin-fontawesome in babel loader in your webpack config

    import initFM from '@themexpert/react-filemanager'
    import FontAwesome from '@themexpert/rfm-plugin-fontawesome'
    
    const openFilemanager = initFM('server');
   
    window.ReactFileManager.registerPlugin(FontAwesome);
    

Instruction

Double click on the icons to select

Return value is an object

    {
        type: 'svg',
        svg: 'raw svg data for icon'
    }