astappiev/pico-editor

为 Pico 提供在线 Markdown 编辑器和文件管理器。

安装: 82

依赖项: 0

建议者: 0

安全: 0

星标: 3

关注者: 2

分支: 30

公开问题: 0

语言:JavaScript

类型:pico-plugin

dev-master 2020-11-17 12:56 UTC

This package is auto-updated.

Last update: 2024-09-17 21:51:30 UTC


README

为 Pico CMS 提供在线 Markdown 编辑器和文件管理器。

这是 theshka/Pico-Editor-Plugin 的一个分支,而后者又是 gilbitron/Pico-Editor-Plugin 的分支。

功能

  • 与 Pico CMS 的最新版本兼容(目前版本)
  • 树状网站结构
  • 编辑页面
  • 管理页面
    • 创建文件(页面)
    • 创建子文件夹
    • 在子文件夹中创建文件
    • 编辑文件标题(重命名)
    • 删除文件
  • 密码保护访问,可自定义 URL

安装

  1. 将插件副本提取到您的 Pico "plugins" 文件夹中(应为 plugins/PicoEditor/PicoEditor.php)
    • 使用 Composer composer require astappiev/pico-editor dev-master
    • cd plugins && git clone https://github.com/astappiev/pico-editor.git PicoEditor
  2. 打开 http://<your domain>/?editor,更新密码(检查 配置 或按照页面上的说明进行操作)并登录

配置

配置可以在 config/config.yml 中指定

# Pico Editor Configuration
PicoEditor:
    enabled: true                           # Force the plugin to be enabled or disabled
    password: SHA512-HASHED-PASSWORD        # You have to use your own password (you should use hash, not raw password! https://sha512.online/)
    url: editor                             # You can change editor url