Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

TinyMCE Field Type for Statamic

Add TinyMCE v5 wysiwyg as a Statamic field type.

Installation

  1. Unzip and move the folder TinyMceWysiwyg to your site/addons/
  2. That's it. You're done.

Configuration

Essentially all of TinyMCE's configuration options for tinymce.init() are supported in the configuration - TinyMCE v5 docs.

NOTE: To use additional plugins, they need to be bundled, so you'll have to do more work (see "Adding Plugins and Development").

  1. You can customize options using the addon > settings interface or directly editing site/settings/addons/tiny_mce_wysiwyg.yaml

Adding Plugins and Development

You'll need yarn installed globally.

  1. From the addon folder, run yarn install
  2. If you need additional TinyMCE plugins, you'll have to:
    • Add import statements in resources/assets/src/tinymce.js for the plugins you want.
    • Be sure to include them in your settings plugins array and toolbar locations as desired.

Build commands

  • yarn watch - Build (dev) and watch
  • yarn build - Build (dev)
  • yarn build:prod - Build (production)

About

A TinyMCE WYSIWYG fieldtype for Statamic.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages