Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.8 KB

Readme.md

File metadata and controls

64 lines (46 loc) · 1.8 KB

Laravel Nova Editor JS Field

Latest Version on Github Total Downloads

A Laravel Nova implementation of Editor.js by @advoor. Forked by @mpanius

Installation

Install via composer:

composer require advoor/nova-editor-js

Publish the config file

php artisan vendor:publish --provider="Advoor\NovaEditorJs\FieldServiceProvider"

Upgrade

If upgrading from v0.4.0, re-publish the config file!

Usage:

Add this use statement to the top of the your nova resource file:

use Advoor\NovaEditorJs\NovaEditorJs;

Use the field as below:

NovaEditorJs::make('FieldName')

And boom!

You can configure what tools the Editor should use in the config file along with some other settings so make sure to have a look :)

You can use the built in function to generate the response for the frontend:

NovaEditorJs::generateHtmlOutput($user->about);

Each 'block' has it's own view which can be overwritten in resources/views/vendor/nova-editor-js/

Tools included