acf-autosize

Description

A wordpress plugin to automatically resize and improve upon wysiwyg and textarea fields in Advanced Custom Fields

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:

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
  • Set min-height of WYSIWYG-fields via acf-autosize/wysiwyg/min-height-filter.
  • 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

Check out the source code on Github!

Installation

Install and activate like any other wordpress plugin

Reviews

Perfect

It works like a charm! Just add "autosize" as a class and this plugin does the trick! Thanks to the author!

Does not work

Idea is good. Tried on repeater field with WYSIWYG fields - nothing happens (yes I cleared the chache) - ACF Pro 5.7.4.
Read all 4 reviews

Contributors & Developers

“acf-autosize” is open source software. The following people have contributed to this plugin.

Contributors

Translate “acf-autosize” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.3.0

  • Add acf-autosize/wysiwyg/min-height-filter to set min-height of wysiwyg-fields
  • Update dependencies to fix security issues

1.2.3

  • Fix issue with WordPress 5.0 and Gutenberg

1.1.2

  • Fix safari issue with position:sticky by externalizing css and adding autoprefixer

1.1.0–1.1.1

  • Make tinymce toolbars sticky
  • Fix bug with double plugin activation

1.0.4

  • Fix README

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