Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helick/better-excerpt
Enable TinyMCE editor for post excerpt
https://github.com/helick/better-excerpt
composer wordpress wordpress-plugin
Last synced: 30 days ago
JSON representation
Enable TinyMCE editor for post excerpt
- Host: GitHub
- URL: https://github.com/helick/better-excerpt
- Owner: helick
- License: mit
- Created: 2019-06-13T13:36:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T20:17:31.000Z (over 5 years ago)
- Last Synced: 2024-10-14T16:41:05.117Z (3 months ago)
- Topics: composer, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Helick Better Excerpt
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total Downloads][ico-downloads]][link-downloads]
[![Software License][ico-license]](LICENSE.md)
[![Quality Score][ico-code-quality]][link-code-quality]The plugin enables TinyMCE editor for post excerpt.
## Requirements
Make sure all dependencies have been installed before moving on:
* [PHP](http://php.net/manual/en/install.php) >= 7.1
* [Composer](https://getcomposer.org/download/)## Install
Via Composer:
``` bash
$ composer require helick/better-excerpt
```## Usage
### Custom post type support
Control supported post types:
``` php
add_filter('helick_better_excerpt_supported_post_types', function (array $postTypes) {
$postTypes[] = 'your-custom-post-type';return $postTypes;
});
```Control the editor settings:
``` php
add_filter('helick_better_excerpt_editor_settings', function (array $settings) {
$settings['media_buttons'] = true;return $settings;
});
```Control the editor buttons:
``` php
add_filter('helick_better_excerpt_editor_buttons', function (array $buttons) {
$buttons[] = 'alignleft';
$buttons[] = 'alignright';
$buttons[] = 'aligncenter';return $buttons;
});
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Evgenii Nasyrov][link-author]
- [All Contributors][link-contributors]## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/helick/better-excerpt.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/helick/better-excerpt.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/helick/better-excerpt.svg?style=flat-square[link-packagist]: https://packagist.org/packages/helick/better-excerpt
[link-code-quality]: https://scrutinizer-ci.com/g/helick/better-excerpt
[link-downloads]: https://packagist.org/packages/helick/better-excerpt
[link-author]: https://github.com/nasyrov
[link-contributors]: ../../contributors