Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list defaultStyle option to config #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
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
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