定制 genealabs/nova-gutenberg 二次开发

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

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

genealabs/nova-gutenberg

最新稳定版本:0.6.1

Composer 安装命令:

composer require genealabs/nova-gutenberg

包简介

Implementation of the Gutenberg editor as a Laravel Nova Field based on Laraberg.

README 文档

README

This package has been archived in favor of using Nova's inbuilt Trix editor. Integrating Gutenberg into Laravel/Nova properly has always been riddled with issues, and it's probably better to move on to something better.

Implementation of the Gutenberg editor as a Laravel Nova Field based on Laraberg.

Gutenberg For Laravel Nova masthead image.

Requirements

  • Laravel Nova
  • PHP 7.1.0+

Implemented Functionality

  • Editor field in form.
  • Field on index listing.
  • Field on resource display.
  • Image upload functionality.

Limitations

  1. Currently you can only have one Gutenberg field on a given page, due to how the Gutenberg library is implemented. Efforts are being made to address this upstream, but it has yet to be determined if that is possible.
  2. The editor UI still allows and prompts for drag-and-drop functionality. Unfortunately that is currently not functional, and the Media Library button must be used instead.

Installation

  1. Install the package:
composer require genealabs/nova-gutenberg
  1. Add the following to your scripts section in composer.json:
        "post-package-update": [
          "@php artisan vendor:publish --provider='VanOns\\Laraberg\\LarabergServiceProvider' --tag='public' --force",
          "@php artisan vendor:publish --tag=lfm_config",
          "@php artisan vendor:publish --tag=lfm_public"
      ]
  1. Run composer update.

Usage

use GeneaLabs\NovaGutenberg\Gutenberg;

class BlogPost extends Resource
{
    // ...

    public function fields(Request $request) : array
    {
        return [
            // ...
            Gutenberg::make("Content"),
            // ...
        ];
    }

    // ...
}

Preview

Screen Shot 2019-05-22 at 12 30 21 PM

统计信息

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

GitHub 信息

  • Stars: 108
  • Watchers: 6
  • Forks: 21
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-22