Skip to content

Commit

Permalink
add markdown x
Browse files Browse the repository at this point in the history
  • Loading branch information
bebo925 committed Oct 5, 2022
1 parent 61ac33e commit 3161e24
Show file tree
Hide file tree
Showing 4 changed files with 1,624 additions and 1 deletion.
77 changes: 77 additions & 0 deletions config/markdownx.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

/*
* This file is the config file for MarkdownX https://devdojo.com/markdownx.
*
* (c) Tony Lea <[email protected]>
*
*/

return [

/*
|--------------------------------------------------------------------------
| Image functionality
|--------------------------------------------------------------------------
|
| This option specifies image functionality in the MarkdownX editor
|
| allowed_file_type - the allowed file types
| max_file_size - max file size in KB
|
*/

'image' => [
'allowed_file_types' => ['png', 'jpg', 'jpeg', 'gif'],
'max_file_size' => 5000
],

/*
|--------------------------------------------------------------------------
| Storage Config
|--------------------------------------------------------------------------
|
| Specify the storage disk for file uploads in the MarkdownX Editor
|
*/

'storage' => [
'disk' => 'public',
],

/*
|--------------------------------------------------------------------------
| Dropdown Items Config
|--------------------------------------------------------------------------
|
| Below you can specify the items you want to be shown in your MarkdownX
| dropdown menu.
|
*/

'dropdown_items' => [
"text",
"heading",
"heading_2",
"heading_3",
"image",
"code",
"link",
"divider",
"bulleted_list",
"numbered_list",
"quote",
//"giphy",
// "codepen",
// "codesandbox",
// "youtube",
// "buy_me_a_coffee"
],

'integrations' => [
'giphy' => [
'api_key' => env('MARKDOWNX_GIPHY_API_KEY', '')
]
]

];
Loading

0 comments on commit 3161e24

Please sign in to comment.