承接 androsamp/filament-rich-editor-textcolor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

androsamp/filament-rich-editor-textcolor

Composer 安装命令:

composer require androsamp/filament-rich-editor-textcolor

包简介

Filament Rich Editor text color plugin (TipTap) for FilamentPHP.

README 文档

README

Latest Version on Packagist Total Downloads

Plugin for Filament Rich Editor: text color selection (TipTap/ProseMirror).

Installation

composer require androsamp/filament-rich-editor-textcolor

Usage

->toolbarButtons(['textColorPicker'])
->floatingToolbars([
    'paragraph' => [
        'textColorPicker'
    ]
])

Rendering:

use Filament\Forms\Components\RichEditor\RichContentRenderer;

// Fetch the post and its content
$post = Post::first();

// Render the content using Filament's RichContentRenderer
$renderer = RichContentRenderer::make($post->content);

// $renderer now contains the final HTML with text color support

Localization

The package includes translations for English and Russian languages. The translations are automatically loaded when the package is installed.

Available Translation Keys

'filament-rich-editor-textcolor::text-color.label' // Button label
'filament-rich-editor-textcolor::text-color.modal_heading' // Modal heading

Publishing Translations

To customize the translations, you can publish them to your project:

php artisan vendor:publish --tag=filament-rich-editor-textcolor-translations

This will copy the translation files to resources/lang/vendor/filament-rich-editor-textcolor/.

Supported Languages

  • English (en) - Default
  • Russian (ru)

License

MIT

统计信息

  • 总下载量: 1.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固