Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"ext-json": "*",
"codex-team/editor.js": "*",
"guzzlehttp/guzzle": "^7.0",
"illuminate/support": "^10.0 || ^11.0",
"illuminate/events": "^10.0 || ^11.0",
"laravel/nova": "^4.0",
"illuminate/support": "^10.0 || ^11.0||^12.0",
"illuminate/events": "^10.0 || ^11.0||^12.0",
"laravel/nova": "^5.0",
"spatie/image": "^3.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/js/field.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
/*!
* vuex v4.0.2
* (c) 2021 Evan You
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/

/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/

/*! For license information please see editor.js.LICENSE.txt */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
* @license
* Lodash <https://lodash.com/>
Expand Down
3 changes: 3 additions & 0 deletions resources/js/blocks/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ NovaEditorJS.booting((editorConfig, fieldConfig) => {
class: require('@editorjs/list'),
inlineToolbar: fieldConfig.toolSettings.list.inlineToolbar,
shortcut: fieldConfig.toolSettings.list.shortcut,
config: {
defaultStyle: fieldConfig.toolSettings.list.defaultStyle,
},
};
}
});
1 change: 1 addition & 0 deletions src/NovaEditorJs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Advoor\NovaEditorJs;

use Illuminate\Support\HtmlString;
use Illuminate\Support\Facades\Facade;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/NovaEditorJsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct($name, $attribute = null, ?callable $resolveCallback
*
* @throws \Throwable
*/
public function resolveForDisplay($resource, $attribute = null)
public function resolveForDisplay($resource, $attribute = null): void
{
$attribute = $attribute ?? $this->attribute;
if ($attribute === 'ComputedField') {
Expand Down
1 change: 1 addition & 0 deletions src/config/nova-editor-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'activated' => true,
'inlineToolbar' => true,
'shortcut' => 'CMD+SHIFT+L',
'defaultStyle' => 'unordered',
],
'code' => [
'activated' => true,
Expand Down