{"id":21754986,"url":"https://github.com/alex290/yii2-bootstrap-editor","last_synced_at":"2026-04-11T06:02:27.327Z","repository":{"id":56944301,"uuid":"227773986","full_name":"alex290/yii2-bootstrap-editor","owner":"alex290","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-05T19:11:29.000Z","size":1435,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T03:16:08.031Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alex290.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":"2019-12-13T06:42:09.000Z","updated_at":"2020-02-05T19:11:32.000Z","dependencies_parsed_at":"2022-08-21T07:20:14.263Z","dependency_job_id":null,"html_url":"https://github.com/alex290/yii2-bootstrap-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alex290/yii2-bootstrap-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex290%2Fyii2-bootstrap-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex290%2Fyii2-bootstrap-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex290%2Fyii2-bootstrap-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex290%2Fyii2-bootstrap-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex290","download_url":"https://codeload.github.com/alex290/yii2-bootstrap-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex290%2Fyii2-bootstrap-editor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266699615,"owners_count":23970529,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-26T09:16:11.826Z","updated_at":"2025-12-30T22:06:48.571Z","avatar_url":"https://github.com/alex290.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bootstrap 4 editor\n==================\nBootstrap 4 editor text Area\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 --prefer-dist alex290/yii2-bootstrap-editor \"*\"\n```\n\nor add\n\n```\n\"alex290/yii2-bootstrap-editor\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n\nПодключение\n-----------\n\nв файле `web.php` в папке `config`\n\nвставить параметр\n\n```php\n'modules' =\u003e [\n    'bs4-editor' =\u003e [\n        'class' =\u003e 'alex290\\bootstrapEditor\\Module',\n    ],\n],\n```\n\n\nUsage\n-----\n\nOnce the extension is installed, simply use it in your code by  :\n\n```php\n\u003c?php\n    use alex290\\bootstrapEditor\\BootstrapEdit;\n?\u003e\n\u003c?= BootstrapEdit::widget(['content' =\u003e $content ]) ?\u003e\n```\n\n\n\nПоле с классом `inputContent` - загружает Html - Bootstrap 4 верстку\n\n```php\n\u003ctextarea id=\"Content\" class=\"form-control\" class=\"inputContent\"\"\u003e\u003c/textarea\u003e\n```\n\n\nДополнительные параметры\n\nСвоя кнопка\n-----------\n\n```php\n'costumButton' =\u003e [\n    [\n        'name' =\u003e 'Название кнопки',\n        'html' =\u003e 'HTML код',\n        'scrypt' =\u003e 'Скрипт активации например слайдер', // Необязательный параметр\n        'style' =\u003e 'Стили для конкретного виджета', // Необязательный параметр\n    ],\n    ...\n]\n```\n\n```php\n\u003c?php\n    use alex290\\bootstrapEditor\\BootstrapEdit;\n?\u003e\n\u003c?= BootstrapEdit::widget(['content' =\u003e $content, 'costumButton' =\u003e $costumButton ]) ?\u003e\n```\n\nСвои стили и скирпты\n--------------------\n\n```php\n'costumCssScrypt' = [\n    'css' =\u003e [\n        \"/web/css/slick.css\",\n    ],\n    'js' =\u003e [\n        \"/web/js/slick.min.js\",\n    ]\n];\n```\n\n```php\n\u003c?php\n    use alex290\\bootstrapEditor\\BootstrapEdit;\n?\u003e\n\u003c?= BootstrapEdit::widget(['content' =\u003e $content, 'costumCssScrypt' =\u003e $costumCssScrypt]) ?\u003e\n```\n\nРедактор CKEDITOR\n-----------------\n\n```php\n'ckeditor' =\u003e [\n    'path' =\u003e '/web/lib/ckeditor/ckeditor.js',\n    'customConfig': '/web/lib/ckeditor/ckeditor_config.js', // Своя конфигурация - Необязательный параметр\n],\n```\n\nДополнительные скрипты и стили\n------------------------------\n\nМожно добавить дополнительные стили с скрипты при помощи полей форм\n\nПоле с классом `inputScrypt` - загружает JavaScrypt\n\n```php\n\u003ctextarea id=\"Scrypt\" class=\"form-control\" class=\"inputScrypt\"\"\u003e\u003c/textarea\u003e\n```\n\nПоле с классом `inputStyle` - загружает сss стили\n\n```php\n\u003ctextarea id=\"Style\" class=\"form-control\" class=\"inputStyle\"\"\u003e\u003c/textarea\u003e\n```\n\n\nВозврат данных при сохранении\n-----------------------------\n\nКнопка с классом `onclickReturnContent` - Возвращает во все поля обновленные данные (Верстка, стили и скрипты);\n\n```php\n\u003cbutton type=\"submit\" class=\"btn btn-success onclickReturnContent\"\u003eСохранить\u003c/button\u003e\n```\n\n\nПарсер CSS стилей\n-----------------\n\nУ модуля есть функция парсинга CSS стилей в массив для работы с элементами\n\n```php\n$classNew = CssParser::getJson($css);\n```\n\nв результате мы получаем json массива стилей","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex290%2Fyii2-bootstrap-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex290%2Fyii2-bootstrap-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex290%2Fyii2-bootstrap-editor/lists"}