Kirby TinyMCE is the classic and familliar WYSIWYG editor TinyMCE as a panel field for Kirby 3 CMS.
The plugin is currently in its early development stages. Expect bugs. Check out the develop branch for updates.
- PHP 7.1+
- Kirby 3.0.0+
- Markdownify 2.3
- TinyMCE Vue component 2.1.0
Download or clone the repository and extract it to site/plugins/tinymce
within your project root.
If you're using Git to manage your project, you can add this plugin as a Git submodule.
$ cd your/project/root
$ git submodule add https://github.com/PaulMorel/kirby-tinymce.git site/plugins/tinymce
Once the plugin is installed, you can start using TinyMCE in your blueprints:
text:
label: Text
type: tinymce
plugins:
- work in progress
menubar: format help
toolbar: bold italic anchor
If you wish, you can also set global defaults in your config.php
file:
c::set('plugin.tinymce.plugins', '');
c::set('plugin.tinymce.toolbar, '');
c::set('plugin.tinymce.menubar, '');
These options will be overridden by any options set on individual fields.
If neither are set, the field will use sensible defaults.
Allows you to specify which plugins TinyMCE will attempt to load when starting up. See the TinyMCE documentation for more detailed information.
Type: String
Currently available plugins:
- autolink
- autoresize
- charmap
- code
- codesample
- colorpicker
- contextmenu
- directionality
- hr
- image
- insertdatetime
- link
- lists
- media
- nonbreaking
- paste
- searchreplace
- tabfocus
- table
- template
- visualblocks
- visualchars
- wordcount
Allows you to specify the controls that should appear on TinyMCE's toolbar. See the TinyMCE documentation for more detailed information.
Type: String|Array|Bool
Allows you to specify which menus should appear on TinyMCE's menubar. See the TinyMCE documentation for more detailed information.
Type: String|Bool
- Initial Preview Release
- Internationalisation and localisation where applicable
- Add unit tests where applicable
- Add individual plugin options
- Update theme to match panel styles
Any suggestion or contribution is welcome. Don't hesitate to create Issues and Pull Requests.
This repository is under the GNU LGPL v2.1 license.
Kirby CMS by Bastian Allgeier
TinyMCE by Ephox
Parsedown & Parsedown Extra by Emanuil Rusev
Markdownify by Milian Wolff & Thomas Zilliox