{"id":13760127,"url":"https://github.com/yeah8000/acf-autosize","last_synced_at":"2025-05-10T10:31:27.072Z","repository":{"id":42236493,"uuid":"137866492","full_name":"yeah8000/acf-autosize","owner":"yeah8000","description":"Autoresize wysiwyg and textarea fields in ACF","archived":false,"fork":false,"pushed_at":"2023-03-14T20:07:19.000Z","size":1698,"stargazers_count":20,"open_issues_count":5,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-16T17:41:00.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeah8000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-19T09:01:28.000Z","updated_at":"2022-02-12T20:22:44.000Z","dependencies_parsed_at":"2024-11-16T17:31:06.347Z","dependency_job_id":"f4830490-d0e4-4e22-82a2-8609bee1dfe6","html_url":"https://github.com/yeah8000/acf-autosize","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeah8000%2Facf-autosize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeah8000%2Facf-autosize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeah8000%2Facf-autosize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeah8000%2Facf-autosize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeah8000","download_url":"https://codeload.github.com/yeah8000/acf-autosize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253401242,"owners_count":21902637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T13:01:03.732Z","updated_at":"2025-05-10T10:31:26.706Z","avatar_url":"https://github.com/yeah8000.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# acf-autosize\nA wordpress plugin to automatically resize and improve upon wysiwyg and textarea fields in Advanced Custom Fields\n\n## Features\n- Automatically resize wysiwyg and textarea fields in ACF groups\n- Add `data-wysiwyg-slug='my-wysiwyg-field'` to the body in tinymce iframes, so you can style those iframe's contents using editor-styles:\n\n```php\n// functions.php\n\nfunction yeah9346_dashboard_tinymce_editor_styles() {\n\tadd_editor_style(get_stylesheet_directory_uri().'/path/to/css/editor-styles.css?v=123');\n}\nadd_action('admin_init', 'yeah9346_dashboard_tinymce_editor_styles');\n\n```\n\n```css\n/* editor-styles.css */\n\nbody[data-wysiwyg-slug=\"my-wysiwyg-field\"] {\n\t...\n}\n```\n\n- Set `min-height` of WYSIWYG-fields via `acf-autosize/wysiwyg/min-height`-filter. \n\n```php\n// functions.php\n\nadd_filter('acf-autosize/wysiwyg/min-height', function() {\n\treturn 200;\n});\n\n```\n\n- Disable autosizing by default width `acf-autosize/enabledByDefault`-filter (is enabled by default).\n  \n```php\n// functions.php\n\nadd_filter('acf-autosize/enabledByDefault', function() {\n\treturn false;\n});\n\n```\n\n\n## Usage\n- Install and activate like any other wordpress plugin\n- `[data-wysiwyg-slug]` is added to *every* wysiwyg field!\n- The plugin is enabled by default on all textareas and wysiwyg fields. You can disable it by adding the class `no-autosize` to a field.\n- You can set the the default behaviour to false via the `acf-autosize/enabledByDefault`-filter. After that you can reenable single fields by adding the class `autosize`.\n- Set `min-height` of WYSIWYG-fields via `acf-autosize/wysiwyg/min-height`-filter. \n\n\n## mu-plugin\n`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!\n\n## Development\n\n- Install build tools: `npm install`\n- Run dev watcher: `npm run dev`\n- Distribution: `npm run dist`\n- Compile mu-plugin: `npm run mu`\n- deploy to wordpress.org: `npm run deploy your-username`\n\n### Versions need a bump in:\n- 2 × `acf-autosize.php`\n- 1 × `package.json`\n- 1 × `readme.txt` + Changelog!\n\n… and don't forget to `npm run dist`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeah8000%2Facf-autosize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeah8000%2Facf-autosize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeah8000%2Facf-autosize/lists"}