Add (post manage)
Add (post country viewing)
This commit is contained in:
@@ -162,7 +162,6 @@
|
||||
Barryvdh\Debugbar\ServiceProvider::class,
|
||||
Stevebauman\Location\LocationServiceProvider::class,
|
||||
|
||||
|
||||
/*
|
||||
* Application Service Providers...
|
||||
*/
|
||||
@@ -171,7 +170,7 @@
|
||||
// App\Providers\BroadcastServiceProvider::class,
|
||||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
App\Providers\ViewServiceProvider::class,
|
||||
App\Providers\ViewServiceProvider::class,
|
||||
])->toArray(),
|
||||
|
||||
/*
|
||||
|
||||
146
config/laravel_editorjs.php
Normal file
146
config/laravel_editorjs.php
Normal file
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'config' => [
|
||||
'tools' => [
|
||||
'paragraph' => [
|
||||
'text' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'i,b,a[href],code[class],mark[class]',
|
||||
],
|
||||
],
|
||||
'header' => [
|
||||
'text' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'a[href],mark[class]',
|
||||
],
|
||||
'level' => [1, 2, 3, 4, 5, 6],
|
||||
],
|
||||
'list' => [
|
||||
'type' => [
|
||||
0 => 'ordered',
|
||||
1 => 'unordered',
|
||||
],
|
||||
'items' => [
|
||||
'type' => 'array',
|
||||
'data' => [
|
||||
'-' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'i,b,a[href],code[class],mark[class]',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'linkTool' => [
|
||||
'link' => 'string',
|
||||
'meta' => [
|
||||
'type' => 'array',
|
||||
'data' => [
|
||||
'title' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
'description' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
'url' => [
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'domain' => [
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
],
|
||||
'image' => [
|
||||
'type' => 'array',
|
||||
'required' => false,
|
||||
'data' => [
|
||||
'url' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'image' => [
|
||||
'file' => [
|
||||
'type' => 'array',
|
||||
'data' => [
|
||||
'width' => [
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'height' => [
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
],
|
||||
'url' => 'string',
|
||||
],
|
||||
],
|
||||
'caption' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'i,b,a[href],code[class],mark[class]',
|
||||
],
|
||||
'withBorder' => 'boolean',
|
||||
'withBackground' => 'boolean',
|
||||
'stretched' => 'boolean',
|
||||
],
|
||||
'table' => [
|
||||
'withHeadings' => 'boolean',
|
||||
'content' => [
|
||||
'type' => 'array',
|
||||
'data' => [
|
||||
'-' => [
|
||||
'type' => 'array',
|
||||
'data' => [
|
||||
'-' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'i,b,a[href],code[class],mark[class]',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'quote' => [
|
||||
'text' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'i,b,a[href],code[class],mark[class]',
|
||||
],
|
||||
'caption' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => 'i,b,a[href],code[class],mark[class]',
|
||||
],
|
||||
'alignment' => [
|
||||
0 => 'left',
|
||||
1 => 'center',
|
||||
],
|
||||
],
|
||||
'code' => [
|
||||
'code' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => '*',
|
||||
],
|
||||
],
|
||||
'delimiter' => [],
|
||||
'raw' => [
|
||||
'html' => [
|
||||
'type' => 'string',
|
||||
'allowedTags' => '*',
|
||||
],
|
||||
],
|
||||
// 'attaches' => [
|
||||
// 'file' => [
|
||||
// 'type' => 'array',
|
||||
// 'data' => [
|
||||
// 'url' => 'string',
|
||||
// 'size' => 'integer',
|
||||
// 'name' => 'string',
|
||||
// 'extension' => 'string',
|
||||
// ],
|
||||
// ],
|
||||
// 'title' => 'string',
|
||||
// ]
|
||||
],
|
||||
],
|
||||
];
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user