{"id":13411332,"url":"https://github.com/trntv/yii2-aceeditor","last_synced_at":"2025-05-08T21:21:44.219Z","repository":{"id":18926423,"uuid":"22145686","full_name":"trntv/yii2-aceeditor","owner":"trntv","description":"Yii2 Ace Editor widget","archived":false,"fork":false,"pushed_at":"2018-04-04T06:43:27.000Z","size":4630,"stargazers_count":43,"open_issues_count":2,"forks_count":24,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-30T01:02:38.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/trntv/yii2-starter-kit","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/trntv.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":"2014-07-23T12:20:38.000Z","updated_at":"2021-10-09T05:52:10.000Z","dependencies_parsed_at":"2022-09-11T06:20:47.981Z","dependency_job_id":null,"html_url":"https://github.com/trntv/yii2-aceeditor","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trntv%2Fyii2-aceeditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trntv%2Fyii2-aceeditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trntv%2Fyii2-aceeditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trntv%2Fyii2-aceeditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trntv","download_url":"https://codeload.github.com/trntv/yii2-aceeditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242030706,"owners_count":20060573,"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-07-30T20:01:12.973Z","updated_at":"2025-05-08T21:21:44.201Z","avatar_url":"https://github.com/trntv.png","language":"PHP","funding_links":[],"categories":["Extension 扩展"],"sub_categories":[],"readme":"Ace Editor Widget For Yii2\n=======================\n\nAbout\n-----\nIt is [Ace Editor](https://ace.c9.io/#nav=about) integration for Yii2 framework.\n\nDemo\n----\nSince this package was created as a part of (Yii2 Starter Kit)[yii2-starter-kit](https://github.com/trntv/yii2-starter-kit) it's demo can be found in starter kit demo [here](http://backend.yii2-starter-kit.terentev.net/widget-menu/create) (login: webmaster, password: webmaster)\n\nAce Editor demo can be found [here](https://ace.c9.io/#ace_editor_demo=\u0026nav=about)\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require trntv/yii2-aceeditor\n```\n\nor add\n\n```\n\"trntv/yii2-aceeditor\": \"^2.0.0\"\n```\n\nto the require section of your `composer.json` file.\n\nUsage\n-----------------------\n\nUsing model\n\n```php\ntrntv\\aceeditor\\AceEditor::widget([\n\t// You can either use it for model attribute\n\t'model' =\u003e $my_model,\n\t'attribute' =\u003e 'my_field',\n\n\t// or just for input field\n\t'name' =\u003e 'my_input_name',\n\n    'mode'=\u003e'html', // programing language mode. Default \"html\"\n    'theme'=\u003e'github', // editor theme. Default \"github\"\n    'readOnly'=\u003e'true' // Read-only mode on/off = true/false. Default \"false\"\n]);\n```\n\nWith active field\n\n```php\n$form-\u003efield($model, 'field')-\u003ewidget(\n        'trntv\\aceeditor\\AceEditor',\n        [\n            'mode'=\u003e'html', // programing language mode. Default \"html\"\n            'theme'=\u003e'github', // editor theme. Default \"github\"\n            'readOnly'=\u003e'true' // Read-only mode on/off = true/false. Default \"false\"\n        ]\n    )\n```\nLists of all available modes and themes see [here](https://github.com/ajaxorg/ace)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrntv%2Fyii2-aceeditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrntv%2Fyii2-aceeditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrntv%2Fyii2-aceeditor/lists"}