{"id":15963771,"url":"https://github.com/zacksleo/yii2-ueditor","last_synced_at":"2026-05-04T05:43:28.141Z","repository":{"id":57089068,"uuid":"82913830","full_name":"zacksleo/yii2-ueditor","owner":"zacksleo","description":"yii2 ueditor extend","archived":false,"fork":false,"pushed_at":"2017-09-16T07:46:07.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T22:30:31.516Z","etag":null,"topics":["ueditor","yii2-extension","yii2-ueditor"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zacksleo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-23T10:06:20.000Z","updated_at":"2017-02-23T12:54:58.000Z","dependencies_parsed_at":"2022-08-20T16:00:36.799Z","dependency_job_id":null,"html_url":"https://github.com/zacksleo/yii2-ueditor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-ueditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-ueditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-ueditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-ueditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacksleo","download_url":"https://codeload.github.com/zacksleo/yii2-ueditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182337,"owners_count":20897379,"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":["ueditor","yii2-extension","yii2-ueditor"],"created_at":"2024-10-07T17:00:27.298Z","updated_at":"2026-05-04T05:43:23.122Z","avatar_url":"https://github.com/zacksleo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Yii2 135编辑/秀米编辑器器扩展\n\n[![Latest Stable Version](https://poser.pugx.org/zacksleo/yii2-ueditor/version)](https://packagist.org/packages/zacksleo/yii2-ueditor)\n[![Total Downloads](https://poser.pugx.org/zacksleo/yii2-ueditor/downloads)](https://packagist.org/packages/zacksleo/yii2-ueditor)\n[![License](https://poser.pugx.org/zacksleo/yii2-ueditor/license)](https://packagist.org/packages/zacksleo/yii2-ueditor)\n\n[![Travis](https://img.shields.io/travis/zacksleo/yii2-ueditor.svg)]()\n[![Build Status](https://travis-ci.org/zacksleo/yii2-ueditor.svg?branch=master)](https://travis-ci.org/zacksleo/yii2-ueditor)\n[![Code Climate](https://img.shields.io/codeclimate/github/zacksleo/yii2-ueditor.svg)]()\n[![Scrutinizer](https://img.shields.io/scrutinizer/g/zacksleo/yii2-ueditor.svg)]()\n[![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/zacksleo/yii2-ueditor.svg)]()\n\n该插件根据[135编辑器企业插件](http://www.135plat.com/135_ueditor_plugin.html)\n和[秀米编辑器Ueditor插件](http://hgs.xiumi.us/uedit/)封装而来\n\n## 用法\n\n### 1. 在 config/main 中配置 module 为:\n\n```\n 'ueditor' =\u003e [\n     'class' =\u003e 'zacksleo\\yii2\\ueditor\\Module'\n ]\n     \n```\n\n### 2. 在页面中使用\n\n加载135编辑器插件:\n \n ```\n use zacksleo\\yii2\\ueditor\\assets\\Editor135Asset;\n Editor135Asset::register($this); \n \n $this-\u003eregisterJsFile('/admin/ueditor/i25/script',[\n     'depends'=\u003e[\n         'kucha\\ueditor\\UeditorAsset'\n     ]\n ]);\n \n echo \\kucha\\ueditor\\UEditor::widget([\n     'name' =\u003e 'ueditor',\n     'clientOptions' =\u003e [\n         //编辑区域大小\n         'initialFrameHeight' =\u003e '200',\n         //设置语言\n         'lang' =\u003e 'zh-cn', //中文为 zh-cn\n         'zIndex' =\u003e '9995',\n         //定制菜单\n         'toolbars' =\u003e [\n             [\n                 'fullscreen', 'source', 'undo', 'redo', '|',\n                 'fontsize',\n                 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat',\n                 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|',\n                 'forecolor', 'backcolor', '|',\n                 'lineheight', '|',\n                 'indent', '|', '135editor'\n             ],\n         ]\n     ]\n ]);\n \n ```\n \n 加载秀米编辑器插件:\n  \n  ```\n  use zacksleo\\yii2\\ueditor\\assets\\EditorXiumiAsset;\n  EditorXiumiAsset::register($this); \n  \n  $this-\u003eregisterJsFile('/admin/ueditor/xiumi/script',[\n      'depends'=\u003e[\n          'kucha\\ueditor\\UeditorAsset'\n      ]\n  ]);\n  \n  echo \\kucha\\ueditor\\UEditor::widget([\n      'name' =\u003e 'ueditor',\n      'clientOptions' =\u003e [\n          //编辑区域大小\n          'initialFrameHeight' =\u003e '200',\n          //设置语言\n          'lang' =\u003e 'zh-cn', //中文为 zh-cn\n          'zIndex' =\u003e '9995',\n          //定制菜单\n          'toolbars' =\u003e [\n              [\n                  'fullscreen', 'source', 'undo', 'redo', '|',\n                  'fontsize',\n                  'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat',\n                  'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|',\n                  'forecolor', 'backcolor', '|',\n                  'lineheight', '|',\n                  'indent', '|', '135editor'\n              ],\n          ]\n      ]\n  ]);\n  \n  ```\n### 3. 更多关于 \\kucha\\ueditor\\UEditor 的用法见[文档](https://github.com/BigKuCha/yii2-ueditor-widget)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fyii2-ueditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacksleo%2Fyii2-ueditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fyii2-ueditor/lists"}