定制 stepanenko3/nova-markdown 二次开发

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

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

stepanenko3/nova-markdown

Composer 安装命令:

composer require stepanenko3/nova-markdown

包简介

Nova Markdown advanced field

README 文档

README

Latest Version on Packagist Total Downloads License

screenshot of field

Description

Extended Markdown Field for Laravel Nova based on native Nova field

Features

  • Many toolbar actions
  • Status bar
  • Toolbar actions toggable
  • Customizable toolbar and status bar
  • Dark mode
  • Responsive
  • Full screen
  • Preview

Requirements

  • php: >=8.0
  • laravel/nova: ^4.0

Installation

# Install the package
composer require stepanenko3/nova-markdown

Publish the config file:

php artisan vendor:publish --provider="Stepanenko3\NovaMarkdown\FieldServiceProvider" --tag="config"

Usage

Add the use declaration to your resource and use the fields:

use Stepanenko3\NovaMarkdown\Markdown;
...

Markdown::make('Excerpt', 'excerpt')
    ->rules('required', 'max:1000')
    ->alwaysShow(),

Configuration

All the configuration is managed from a single configuration file located in config/nova-markdown.php

You can change the presence and order of the toolbar actions from the list

[
    'h1',
    'h2',
    'h3',
    // 'headingSmaller',
    // 'headingBigger',
    'bold',
    'italic',
    'strikethrough',
    'quote',
    'unorderedList',
    'orderedList',
    'link',
    'image',
    'table',
    // 'horizontalRule',
    'code',
]

And status bar

[
    'lines', // Show number of lines
    'words', // Show number of words
    'cursor', // Current cursor position line:word
]

Screenshots

screenshot of field screenshot of field

Credits

Contributing

Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固