by Rudy Affandi (2016)
This addon allows you to add various Redactor plugins to Statamic v2.x
By default, it comes precompiled with the following addons:
- fontcolor
- fontfamily
- fontsize
- fullscreen
- scriptbuttons
- video
- Copy or clone this repo to your
site/addons/RedactorPlugins
git clone https://github.com/lesaff/statamicv2-redactorplugins.git RedactorPlugins
Edit site/settings/system.yaml
and add the following to your redactor
settings
plugins:
- fontcolor
- fontfamily
- fontsize
- fullscreen
- scriptbuttons
- table
- video
redactor:
-
name: Standard
settings:
plugins:
- fontcolor
- fontfamily
- fontsize
- fullscreen
- scriptbuttons
- table
- video
I've included a gulpfile
in the addon to somewhat automate the concatenation process.
- Drop the plugin js file in the
site/addons/RedactorPlugins/resources/assets/js/plugins
folder - Initialize gulp, run
npm install
(if you have not done so) - Run
gulp
orgulp --production
- Add the newly added plugin to the
site/settings/system.yaml
- Remove the plugin js file(s) from the
site/addons/RedactorPlugins/resources/assets/js/plugins
folder - Initialize gulp, run
npm install
(if you have not done so) - Run
gulp
orgulp --production
- Remove plugin(s) from the
site/settings/system.yaml