A wordpress plugin to automatically resize and improve upon wysiwyg and textarea fields in Advanced Custom Fields.
一个wordpress插件,可自动调整大小并改进“高级自定义字段”中的所见即所得和textarea字段。
Please note: Version 2 will automatically apply autosize to all fields.请注意:第2版将自动将自动调整大小应用于所有字段。It will be possible to deactivate autosizing via class though.
不过,可以通过类停用自动调整大小。 strong> p>
Features
功能 h3>
- Automatically resize wysiwyg and textarea fields in ACF groups
- 自动调整ACF组中所见即所得和textarea字段的大小 li>
- Add
data-wysiwyg-slug='my-wysiwyg-field'
to the body in tinymce iframes, so you can style those iframe’s contents using editor-styles. - 在tinymce iframe中向主体添加
data-wysiwyg-slug ='my-wysiwyg-field' code>,以便您可以使用编辑器样式对这些iframe的内容进行样式设置。 li>
ul>
Usage
用法 h3>
- Install and activate like any other wordpress plugin
- 像其他任何wordpress插件一样安装并激活 li>
[data-wysiwyg-slug]
is added to every wysiwyg field!-
[data-wysiwyg-slug] code>已添加到每个 em> wysiwyg字段! li>- Add
autosize
as a class to a WYSIWYG or Textarea-Field to enable autosize for this field - 将
autosize code>作为类添加到WYSIWYG或Textarea-Field中以启用该字段的自动调整大小 li>- Set
min-height
of WYSIWYG-fields via acf-autosize/wysiwyg/min-height
-filter. - 通过
acf-autosize / wysiwyg / min-height code>-过滤器设置WYSIWYG字段的 min-height code>。
li>
- that’s basically it.
- 基本上就是这样。 li>
ul>
mu-plugin
mu-plugin h3>
acf-autosize-mu.php
is a single-file drop-in version of acf-autosize for usage in your theme or mu-plugins.
acf-autosize-mu.php code>是acf-autosize的单文件插入版本,可用于您的主题或mu-plugins。It contains the javascript and is autogenerated!
它包含javascript并且是自动生成的! p>
Development
发展 h3>
Check out the source code on Github!
在Github上查看源代码! p>