# Cherry-Markdown-LayUI **Repository Path**: moleft/Cherry-Markdown-LayUI ## Basic Information - **Project Name**: Cherry-Markdown-LayUI - **Description**: 基于腾讯CherryMarkdown以及Layui封装的简易操作,功能完整的Markdown编辑器 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2023-09-08 - **Last Updated**: 2025-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Cherry Markdown For Layui 更适合中国宝宝使用的LayUI Markdown组件。 基于 [Tencent Cherry Markdown](https://github.com/Tencent/cherry-markdown) 整合layui ![预览图](preview.png) ### 使用 layui 推荐的方法扩展模块 参考:[LayUI 模块规范](https://layui.dev/2.7/docs/base/modules.html#extend) ```js layui.config({ base: '/res/js/' // 扩展模块的文件夹 }).extend({ cherry: 'cherry-markdown' // 本仓库文件夹 }); ``` ### 在项目中使用 ```html
``` ### API文档 | 方法 | 说明 | 参数 | |-------------------------------------------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------| | init(element: str, isReadOnly: boolean = false): void | 初始化 markdown 编辑器 |