=== acf-autosize === Contributors: yeah8000 Donate link: https://yeah.de/ Tags: acf, wysiwyg, autoresize, autosize Requires at least: 3.6.0 Tested up to: 4.9.9 Requires PHP: 7.0 Stable tag: 1.0.3 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html A wordpress plugin to automatically resize and improve upon wysiwyg and textarea fields in Advanced Custom Fields == Description == ## Features - Automatically resize wysiwyg and textarea fields in ACF groups - Add `data-wysiwyg-slug='my-wysiwyg-field'` to the body in tinymce iframes, so you can style those iframe's contents using editor-styles: ```php // functions.php function yeah9346_dashboard_tinymce_editor_styles() { add_editor_style(get_stylesheet_directory_uri().'/path/to/css/editor-styles.css?v=123'); } add_action('admin_init', 'yeah9346_dashboard_tinymce_editor_styles'); ``` ```css /* editor-styles.css */ body[data-wysiwyg-slug="my-wysiwyg-field"] { ... } ``` ## Usage - Install and activate like any other wordpress plugin - `[data-wysiwyg-slug]` is added to *every* wysiwyg field! - Add `autosize` as a class to a WYSIWYG or Textarea-Field to enable autosize for this field - that's basically it. ## mu-plugin `acf-autosize-mu.php` is a single-file drop-in version of acf-autosize for usage in your theme or mu-plugins. It contains the javascript and is AUTOGENERATED! ## Development - Install build tools: `npm install` - Run dev watcher: `npm run dev` - Distribution: `npm run dist` - Compile mu-plugin: `npm run mu` == Installation == Install and activate like any other wordpress plugin == Changelog == = 1.0.3 = * Better documentation * Added tinymce `iframe>body[data-wysiwyg-slug]` feature = 1.0.2 = * Added banner and icons = 1.0.1 = * First release == Upgrade Notice == = 1.0.1 = First release :)