{"id":13532388,"url":"https://github.com/ShermanTsang/laravel-admin-ext-editormd","last_synced_at":"2025-04-01T20:32:00.578Z","repository":{"id":57048977,"uuid":"168509072","full_name":"ShermanTsang/laravel-admin-ext-editormd","owner":"ShermanTsang","description":"EditorMD for laravel-admin.","archived":false,"fork":false,"pushed_at":"2020-11-03T07:23:02.000Z","size":1602,"stargazers_count":17,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-21T13:53:34.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://share-man.com/blog/148","language":"JavaScript","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/ShermanTsang.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":"2019-01-31T10:46:27.000Z","updated_at":"2022-01-22T06:52:29.000Z","dependencies_parsed_at":"2022-08-23T19:10:17.756Z","dependency_job_id":null,"html_url":"https://github.com/ShermanTsang/laravel-admin-ext-editormd","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShermanTsang%2Flaravel-admin-ext-editormd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShermanTsang%2Flaravel-admin-ext-editormd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShermanTsang%2Flaravel-admin-ext-editormd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShermanTsang%2Flaravel-admin-ext-editormd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShermanTsang","download_url":"https://codeload.github.com/ShermanTsang/laravel-admin-ext-editormd/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:10.609Z","updated_at":"2025-04-01T20:31:55.560Z","avatar_url":"https://github.com/ShermanTsang.png","language":"JavaScript","funding_links":[],"categories":["扩展包"],"sub_categories":["字段类扩展包"],"readme":"![](https://socialify.git.ci/ShareManT/laravel-admin-ext-editormd/image?font=Inter\u0026forks=1\u0026issues=1\u0026owner=1\u0026stargazers=1\u0026theme=Light)\n\n# EditorMD extension for laravel-admin\n\nThis is a `laravel-admin` extension that integrates [EditorMD](http://pandao.github.io/editor.md/) into the `laravel-admin` form.\nTo adopt to laravel-admin, I made some tiny changes in editormd aseets.\nPlease feel free to contact me if you encounter any difficulties when you use this extension.\n\n## Screenshot\n\n![screenshot](https://user-images.githubusercontent.com/4065724/52049451-d02e8380-2588-11e9-96b8-1cf66b18f934.jpg)\n\n## Installation\n\n```bash\ncomposer require sharemant/laravel-admin-ext-editormd\nphp artisan vendor:publish --tag=laravel-admin-ext-editormd\n```\n\n## Configuration\n\nIn the `extensions` section of the `config/admin.php` file, add some configuration that belongs to this extension.\n\n### Example\n\n```php\n\u003c?php\n\n// file: {Your_project}/config/admin.php\n\nreturn [\n\n        'extensions' =\u003e [\n\n            'editormd' =\u003e [\n        \n                // Set to false if you want to disable this extension\n                'enable' =\u003e true,\n        \n                // Set to true if you want to take advantage the screen length for your editormd instance.\n                'wideMode' =\u003e false,\n        \n                // Set to true when the instance included in larave-admin tab component.\n                'dynamicMode' =\u003e false,\n        \n                // Editor configuration write in PHP array grammar\n                'config' =\u003e [\n                    'path' =\u003e '/vendor/laravel-admin-ext/editormd/editormd-1.5.0/lib/',\n                    'width' =\u003e '100%',\n                    'height' =\u003e 600,\n                ],\n        \n                // Editor configuration write in Javascript object grammar\n                'configJS' =\u003e '{onload: function() { alert(\"Hello!\");}}'\n            ]\n\n    ]\n\n];\n```\n\n### Notice\n\nThe `config` (PHP array grammar) and `configJS` (Javascript object grammar) options will be merged into a new JavaScript object.\n\nYou can set the configuration in the grammar you prefer.\n\nIf you write a configuration item that corresponds to a static value, best practice is to use the PHP array syntax.\n\nInstead, when it comes to Editor's listen function, you are left with the option of using JS's object syntax.\n\n\n### Default configuration list\n\nIf you want to enable more functions of EditorMd , you could add the following configurations to your config.\n\nThe configuration of the editor can be found in [EditorMD Documentation](http://pandao.github.io/editor.md/).\n\n## Usage\n\nUse it in the form form:\n```php\n$form-\u003eeditormd('content');\n```\n\n## ChangeLog\n2020-07-18(East 8 time)\n\nfix: fix the bug that the associated properties of the model are not available.\n\nfeat: support JS Configuration Editor mode. (support for editor event monitoring)\n\nfeat: redesign the UI of the component to be consistent with Laravel-admin.\n\ndocs: improve basic documentation\n\ndocs: add Chinese readme document.\n\n## License\nLicensed under [The MIT License (MIT)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShermanTsang%2Flaravel-admin-ext-editormd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShermanTsang%2Flaravel-admin-ext-editormd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShermanTsang%2Flaravel-admin-ext-editormd/lists"}