plain/kirby-editor
Composer 安装命令:
composer require plain/kirby-editor
包简介
A fully functional built-in file explorer for Kirby CMS
README 文档
README
Overview
Kirby Editor is a fully functional built-in file explorer for Kirby CMS.
Features
⭐️ Easy access to the editor via the Kirby menu bar.
⭐️ Full access to your project folder. You can also set a custom start folder.
⭐️ Preview for several file types (Markdown, PDF, HTML, Media & Fonts).
⭐️ A filetree field included to select files and folders from your project folder.
⭐️ Useful features for organizing files and folders (create, delete, move, rename, download).
⭐️ Edit text files just like you do in VSCode.
⭐️ Prevent overwriting if the file on the server is newer.
⭐️ Smart caching feature for fast file switching.
Upcoming features
🤩 Graphical blueprint editor extension!
⭐️ Extended permissions
⭐️ Popup on right click
Important security notice
Before using this plugin, please note the following:
Changes to files or folders made with this tool may affect the functionality of Kirby.
As a first security measure, access to the editor is restricted to administrators by default. It is recommended to remove the admin role from users without technical knowledge.
Using the plain.editor.access option, you can define which user roles are allowed to access the editor.
⚠️ The developer of this plugin accepts no liability for any damage or data loss.
Installation
Manually
Download and copy the plugin into your plugin folder: /site/plugins/
With Composer
composer require plain/kirby-editor
Options
plain.editor.access
A list of roles that have access to the editor. (Default: admin)
plain.editor.root
A relative path to the start folder. (Default: kirby root)
`
plain.editor.extensions
Redefines mime type by its file extension
plain.editor.mimes.(mime/type)
An array of options for the given mime type. Wildcards allowed text/*
| Key | Description | Default |
|---|---|---|
| icon | Icon that appears in file tree or folder preview | `file` or `folder` |
| component | A preview component to open the file | k-editor-preview-default |
| components | Array of selectable previews.`['preview-component' => 'name-or-translation-key']` | (none) |
| language | Sets the [language](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages) for the text editor. | text |
| options | Props that are given to the preview component. |
License
This plugin is free to use and is published under the MIT license. If you use this plugin for commercial purposes or wish to show your appreciation, support me with a donation.
plain/kirby-editor 适用场景与选型建议
plain/kirby-editor 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 49 次下载、GitHub Stars 达 12, 最近一次更新时间为 2025 年 10 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 plain/kirby-editor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 plain/kirby-editor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-30
