{"id":13532249,"url":"https://github.com/laravel-admin-extensions/UEditor","last_synced_at":"2025-04-01T20:31:41.204Z","repository":{"id":34051428,"uuid":"155031900","full_name":"laravel-admin-extensions/UEditor","owner":"laravel-admin-extensions","description":"UEditor extension for laravel-admin","archived":false,"fork":false,"pushed_at":"2022-03-15T06:07:04.000Z","size":15,"stargazers_count":62,"open_issues_count":10,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T19:36:59.285Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laravel-admin-extensions.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}},"created_at":"2018-10-28T03:33:01.000Z","updated_at":"2023-04-05T06:21:24.000Z","dependencies_parsed_at":"2022-08-08T00:00:16.375Z","dependency_job_id":null,"html_url":"https://github.com/laravel-admin-extensions/UEditor","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2FUEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2FUEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2FUEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-admin-extensions%2FUEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-admin-extensions","download_url":"https://codeload.github.com/laravel-admin-extensions/UEditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709923,"owners_count":20821297,"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-01T07:01:09.420Z","updated_at":"2025-04-01T20:31:36.190Z","avatar_url":"https://github.com/laravel-admin-extensions.png","language":"PHP","funding_links":[],"categories":["扩展包"],"sub_categories":["字段类扩展包"],"readme":"UEditor extension for laravel-admin\n======\n\n这是一个 `laravel-admin` 扩展，用来将 [UEditor](https://ueditor.baidu.com/website/index.html) 集成进 `laravel-admin` 的表单中，~~依赖 [overtrue/laravel-ueditor](https://github.com/overtrue/laravel-ueditor)~~ 依赖 [codingyu/laravel-ueditor](https://github.com/codingyu/laravel-ueditor)\n\n## 安装\n\n```bash\ncomposer require codingyu/ueditor\n```\n\n发布资源\n```bash\n// V3.*\nphp artisan vendor:publish --provider=Codingyu\\LaravelUEditor\\UEditorServiceProvider\n// V2.*\nphp artisan vendor:publish --provider=Overtrue\\LaravelUEditor\\UEditorServiceProvider\n```\n\n## 配置\n\n在`config/admin.php`文件的`extensions`，加上属于这个扩展的一些配置\n```php\n\n    'extensions' =\u003e [\n\n        'ueditor' =\u003e [\n\n            // 如果要关掉这个扩展，设置为false\n            'enable' =\u003e true,\n\n            // 编辑器的前端配置 参考：http://fex.baidu.com/ueditor/#start-config\n            'config' =\u003e [\n                'initialFrameHeight' =\u003e 400, // 例如初始化高度\n            ],\n            // 'field_type' =\u003e '自定义名字'\n        ]\n    ]\n\n```\n\n后端配置 `config/ueditor.php`，参考 ~~[overtrue/laravel-ueditor](https://github.com/overtrue/laravel-ueditor)~~ [codingyu/laravel-ueditor](https://github.com/codingyu/laravel-ueditor)\n\n## 使用\n\n### 2.* | 3.*\n组件名可配置，默认 `UEditor`\n\n\n在form表单中使用它：\n```php\n$form-\u003eUEditor('content');\n// options 中参数会覆盖 extensions.ueditor.config 中参数\n$form-\u003eUEditor('content')-\u003eoptions(['initialFrameHeight' =\u003e 800]);\n\n// 如果 extensions.ueditor.field_type 定义为 xxxEditor\n// $form-\u003exxxEditor('content');\n```\n\n### 1.*\n在form表单中使用它：\n```php\n$form-\u003eeditor('content');\n// options 中参数会覆盖 extensions.ueditor.config 中参数\n$form-\u003eeditor('content')-\u003eoptions(['initialFrameHeight' =\u003e 800]);\n\n// 升级2.* 后，不改代码兼容 1.*：可以配置  extensions.ueditor.field_type 为 editor\n```\n\n## 大感谢\n- [laravel-admin](https://github.com/z-song/laravel-admin)\n- [overtrue/laravel-ueditor](https://github.com/overtrue/laravel-ueditor)\n\nLicense\n------------\nLicensed under [The MIT License (MIT)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-admin-extensions%2FUEditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-admin-extensions%2FUEditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-admin-extensions%2FUEditor/lists"}