定制 g4b0rdev/filament-markdown-editor-cheatsheet 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

g4b0rdev/filament-markdown-editor-cheatsheet

最新稳定版本:1.0

Composer 安装命令:

composer require g4b0rdev/filament-markdown-editor-cheatsheet

包简介

Add markdown cheatsheet to the RichEditor form field in Filament

README 文档

README

The filament-markdown-editor-cheatsheet module provides a comprehensive cheatsheet for Markdown syntax, designed to be integrated with the Filament RichEditor and MarkdownEditor component. This module helps users quickly reference Markdown syntax and apply it.

Features

  • Comprehensive Markdown Syntax: Covers all basic and advanced Markdown syntax.
  • Easy Integration: Can be easily integrated with the Filament RichEditor & MarkdownEditor component.
  • User-Friendly: Provides a clean and easy-to-navigate interface for users.

Installation

To install the filament-markdown-editor-cheatsheet module, you can use the following command:

composer require g4b0rdev/filament-markdown-editor-cheatsheet

Usage

Integrating with Filament RichEditor & MarkdownEditor Component

To integrate the markdown cheatsheet with the Filament RichEditor / MarkdownEditor component, follow these steps:

use Filament\Forms\Components\RichEditor;

RichEditor::make('content')
    ->withCheatsheet()
    ->...,

// or

use Filament\Forms\Components\MarkdownEditor;

MarkdownEditor::make('content')
    ->withCheatsheet()
    ->...,

If you want to change the modal behavior, enable the slide over mode:

use Filament\Forms\Components\RichEditor;

RichEditor::make('content')
    ->withCheatsheet(slideOver: true)
    ->...,

// or

use Filament\Forms\Components\MarkdownEditor;

MarkdownEditor::make('content')
    ->withCheatsheet(slideOver: true)
    ->...,

Publishing and Customizing Translations

To publish the translation files for customization, use the following command:

php artisan vendor:publish --tag=filament-markdown-editor-cheatsheet-translations

This command will publish the translation files to the resources/lang/vendor/filament-markdown-editor-cheatsheet directory. You can then customize the translations as needed.

Example of Customizing Translations

  1. Open the published translation file, e.g., resources/lang/vendor/filament-markdown-editor-cheatsheet/en/cheatsheet.php.

  2. Modify the translation strings as needed

  3. Save the changes.

Versioning

This project follow the Semantic Versioning guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固