Giter Club home page Giter Club logo

Comments (3)

vinkla avatar vinkla commented on August 24, 2024

How do you mean? Please explain a bit more.

from extended-acf.

MaximVanhove avatar MaximVanhove commented on August 24, 2024

In your editor you can add snippets so I don't have to look at the docs all the time. I would add a minimal, full and documented version for each helper.

"Acf text": {
    "prefix": "acf_wysiwyg",
    "body": [
        "acf_wysiwyg([",
        "\t'name' => '$1',",
        "\t'label' => __('$2', 'acf'),",
        "]),"
    ],
    "description": "Minimal acf wysiwyg helper"
},

"Acf text full": {
    "prefix": "acf_wysiwyg_full",
    "body": [
        "acf_wysiwyg([",
        "\t'name' => '$1',",
        "\t'label' => __('$2', 'acf'),",
        "\t'tabs' => 'all',",
        "\t'toolbar' => 'full',",
        "\t'media_upload' => 1,",
        "\t'default_value' => '',",
        "\t'delay' => 0,",
        "\t'wrapper' => ['width' => '100%'],",
        "]),"
    ],
    "description": "Full acf wysiwyg helper"
},

"Acf text full docs": {
    "prefix": "acf_wysiwyg_full_docs",
    "body": [
        "acf_wysiwyg([",
        "\t'name' => '$1',",
        "\t'label' => __('$2', 'acf'),",
        "\t'tabs' => 'all', // all, visual, text",
        "\t'toolbar' => 'full', // basic or full",
        "\t'media_upload' => 1, // 1 or 0",
        "\t'default_value' => '',",
        "\t'delay' => 0, // 1 or 0",
        "\t'wrapper' => ['width' => '100%'], // styles",
        "]),"
    ],
    "description": "Documented acf wysiwyg helper"
}

Which results in:

acf_wysiwyg([
    'name' => '',
    'label' => __('', 'acf'),
]),
acf_wysiwyg([
    'name' => '',
    'label' => __('', 'acf'),
    'tabs' => 'all',
    'toolbar' => 'full',
    'media_upload' => 1,
    'default_value' => '',
    'delay' => 0,
    'wrapper' => ['width' => '100%'],
]),
acf_wysiwyg([
    'name' => '',
    'label' => __('', 'acf'),
    'tabs' => 'all', // all, visual, text
    'toolbar' => 'full', // basic or full
    'media_upload' => 1, // 1 or 0
    'default_value' => '',
    'delay' => 0, // 1 or 0
    'wrapper' => ['width' => '100%'], // styles
]),

And thought you might already created these. If not, I'll create them myself. Maybe you want to add those to the repo.

from extended-acf.

vinkla avatar vinkla commented on August 24, 2024

Thanks for the suggestion but I think this is out of scope of this package. Personally Iā€™m using intellisense which already describes the functions.

from extended-acf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.