Skip to content

Commit

Permalink
add status bar; updates
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed Apr 26, 2022
1 parent 273fdff commit b182285
Show file tree
Hide file tree
Showing 9 changed files with 226 additions and 354 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stepanenko3/nova-markdown",
"description": "A Laravel Nova info cards.",
"description": "Nova Markdown advanced field",
"keywords": [
"laravel",
"nova"
Expand Down
100 changes: 20 additions & 80 deletions config/nova-markdown.php
Original file line number Diff line number Diff line change
@@ -1,84 +1,24 @@
<?php

/**
* Configuration for nova-markdown
*/

return [

/**
* Enable or disable uploads entirely
*/

'uploads' => env('NOVA_MARKDOWN_UPLOADS', true),

/**
* Enable uploads by default.
* Note, this has no effect up uploads are disabled entirely.
*/

'uploads-default-enabled' => env('NOVA_MARKDOWN_UPLOADS_DEFAULT_ENABLED', true),

/**
* The path prefix that will be used by nova-markdown routes
*/

'route-prefix' => env('NOVA_MARKDOWN_ROUTE_PREFIX', 'nova-markdown'),

/**
* The disk on which to store uploaded images, choose a disk as
* configured in config/filesystems.php.
*/

'disk' => env('NOVA_MARKDOWN_DISK', 'public'),

/**
* The directory where to place uploaded images within the disk.
*
* Can be a string with the directoryname. Alternatively, it's possible
* to configure a function, which takes the uploading $user as argument and
* returns the directory. This can be used to group uploads in a folder
* by user.
*
* Example:
* function($user) { return 'uploads/' . \Str::slug($user->name); }
*/

'directory' => env('NOVA_MARKDOWN_DIRECTORY', 'uploads'),

/**
* The maximum size for uploaded images in kilobytes
*/

'max-size' => env('NOVA_MARKDOWN_MAX_SIZE', 8 * 1024),

/**
* The maximum width for uploaded images in pixels.
* Uploaded images will be scaled down to this width.
* Use null to disable image scaling.
*/

'max-width' => env('NOVA_MARKDOWN_MAX_WIDTH', 1920),

/**
* Uploaded images will be converted to this quality.
* Integer between 0 and 100. Use null to disable quality adjustments.
*/

'quality' => env('NOVA_MARKDOWN_QUALITY', 85),

/**
* Define the middleware stack to be used by nova-markdown routes.
* A sensible default has been set.
*/

'middleware' => config('nova.middleware'),

/**
* Uploaded images will be stored by default using a slug version of its
* original filename. You can set this to true to use a random filename.
*/

'random_filename' => env('NOVA_MARKDOWN_RANDOM_FILENAME', false),

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

'statusbar' => ['lines', 'words', 'cursor'],
];
2 changes: 1 addition & 1 deletion dist/js/entry.js

Large diffs are not rendered by default.

Loading

0 comments on commit b182285

Please sign in to comment.