[wordpress插件] acf-autosizeacf-autosize

wordpress 插件 文章 2020-01-26 04:40 526 0 全屏看文

AI助手支持GPT4.0

评分

94

94

描述

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.

不过,可以通过类停用自动调整大小。

Features

功能

    • Automatically resize wysiwyg and textarea fields in ACF groups
    • 自动调整ACF组中所见即所得和textarea字段的大小

    • 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',以便您可以使用编辑器样式对这些iframe的内容进行样式设置。

    Usage

    用法

      • Install and activate like any other wordpress plugin
      • 像其他任何wordpress插件一样安装并激活

      • [data-wysiwyg-slug] is added to every wysiwyg field!
      • [data-wysiwyg-slug] 已添加到每个 wysiwyg字段!

      • Add autosize as a class to a WYSIWYG or Textarea-Field to enable autosize for this field
      • autosize 作为类添加到WYSIWYG或Textarea-Field中以启用该字段的自动调整大小

      • Set min-height of WYSIWYG-fields via acf-autosize/wysiwyg/min-height-filter.

      • 通过 acf-autosize / wysiwyg / min-height -过滤器设置WYSIWYG字段的 min-height

      • that’s basically it.
      • 基本上就是这样。

      mu-plugin

      mu-plugin

      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 是acf-autosize的单文件插入版本,可用于您的主题或mu-plugins。

      It contains the javascript and is autogenerated!

      它包含javascript并且是自动生成的!

      Development

      发展

      Check out the source code on Github!

      在Github上查看源代码

安装步骤

Install and activate like any other wordpress plugin

像其他任何wordpress插件一样安装并激活

下载地址

https://downloads.wordpress.org/plugin/acf-autosize.1.3.3.zip

https://downloads.wordpress.org/plugin/acf-autosize.1.3.3.zip

-EOF-

AI助手支持GPT4.0