grommasdietz/kirby-proofreader
最新稳定版本:1.3.2
Composer 安装命令:
composer require grommasdietz/kirby-proofreader
包简介
Typographic suggestions for Kirby CMS
README 文档
README
Kirby Proofreader adds a Panel button on Kirby CMS for reviewing typographic corrections in page and site content before applying them. Field changes are saved to Kirby's changes version, title fixes use Kirby's native title action and save immediately.
Requirements
- Kirby 5+
- PHP 8.2+
Installation
composer require grommasdietz/kirby-proofreader
Tip
If you don’t use Composer, you can download this repository and copy it to site/plugins/kirby-proofreader.
Quickstart
Add the button to a page or site blueprint:
buttons: proofreader: true languages: true status: true settings: true
Options
The default rule order is unicode, ellipsis, quotes, apostrophes, dashes, spaces. dimensions is a predefined optional rule for values such as 5 x 5 cm. Rules can be reordered, disabled or extended. Configure via site/config/config.php:
return [ 'grommasdietz.proofreader.rules' => [ 'unicode', 'ellipsis', 'quotes' => false, 'apostrophes', 'dashes', 'spaces', 'dimensions', 'trademark' => [ 'label' => 'Trademark', 'callback' => static fn (string $text): string => str_replace( 'Label TM', 'Label™', $text ), ], ], ];
The keyed
falseentry disables the built-inquotesrule. The keyedtrademarkarray adds a custom callback rule.
Quote characters, dash characters and dash spacing follow Kirby's native SmartyPants options when configured globally or per language. Single-language installs need SmartyPants configuration to enable quote rule.
Default field coverage includes text, textarea, writer, list,
structure, blocks and layout fields. Custom field names or types can be included or excluded:
return [ 'grommasdietz.proofreader.fields' => [ 'include' => [ 'types' => [ 'custom-writer' => 'html', 'custom-text' => 'plain', 'custom-structure' => 'structure', ], 'names' => [ 'intro' => 'plain', ], ], 'exclude' => [ 'types' => ['text', 'textarea'], 'names' => ['intro'], ], ], ];
Documentation
Full reference for usage, contributions and maintenance lives in documentation.
Changelog
See CHANGELOG.md for version history and changes.
Security
See SECURITY.md for security policies and reporting vulnerabilities.
Contributing
See CONTRIBUTING.md for guidance and expectations.
License
MIT © 2026 Grommas Dietz
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-08
