コンポーネントの設定を textarea/エディタとして作成しますか?

コンポーネントの設定で、コンポーネントの settings.yaml ファイルを使用して、少量のテキストを入力するためのフィールドを簡単に作成できます…

example_setting:
  default: "<p><i>Sample</i> default.</p>"
  description:
    en: "This is an example setting."

https://github.com/json-editor/json-editor#json-schema-support を見ましたが、やりたいことを理解するには十分ではありませんでした。

この設定を次のようなものにしたいと考えています。(House Ads プラグインの設定の 1 つからのスクリーンショット。)

エディタの動作を構成する方法へのポインタもあれば幸いです。

お探しのものはこちらだと思います。site_settings.ymltextarea: true の例は見当たりませんが、テーマコンポーネントには以下のような例があります。

「いいね!」 4

簡単です。:exclamation: 完璧に機能します。ありがとう、ジェイ!

「いいね!」 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.