Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halo-sigs/plugin-stackedit
为 Halo 2.0 集成 StackEdit 编辑器
https://github.com/halo-sigs/plugin-stackedit
editor halo halo-plugin markdown markdown-editor stackedit
Last synced: 3 days ago
JSON representation
为 Halo 2.0 集成 StackEdit 编辑器
- Host: GitHub
- URL: https://github.com/halo-sigs/plugin-stackedit
- Owner: halo-sigs
- License: gpl-3.0
- Created: 2022-12-19T03:40:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T08:30:39.000Z (5 months ago)
- Last Synced: 2024-12-09T03:39:46.010Z (4 days ago)
- Topics: editor, halo, halo-plugin, markdown, markdown-editor, stackedit
- Language: Vue
- Homepage: https://halo.run/store/apps/app-hDXMG
- Size: 1.46 MB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-halo - plugin-stackedit - 为 Halo 2.0 集成 StackEdit 编辑器 (Halo 2.0 / 插件)
README
# plugin-stackedit
集成 [StackEdit](https://github.com/benweet/stackedit) 到 Halo。
> 需要注意的是,StackEdit 并不支持在项目内直接集成,所以此插件是参考了 [stackedit.js](https://github.com/benweet/stackedit.js) 以 iframe 的方式集成。
## 开发环境
```bash
git clone [email protected]:halo-sigs/plugin-stackedit.git# 或者当你 fork 之后
git clone [email protected]:{your_github_id}/plugin-stackedit.git
``````bash
cd path/to/plugin-stackedit
``````bash
# macOS / Linux
./gradlew pnpmInstall# Windows
./gradlew.bat pnpmInstall
``````bash
# macOS / Linux
./gradlew build# Windows
./gradlew.bat build
```修改 Halo 配置文件:
```yaml
halo:
plugin:
runtime-mode: development
classes-directories:
- "build/classes"
- "build/resources"
lib-directories:
- "libs"
fixedPluginPath:
- "/path/to/plugin-stackedit"
```## 使用方式
1. 在 [Releases](https://github.com/halo-sigs/plugin-stackedit/releases) 下载最新的 JAR 文件。
2. 在 Halo 后台的插件管理上传 JAR 文件进行安装。
3. 启动插件之后,即可在新建文章时选择此编辑器。