Files
aibuddytool/config/laravel_editorjs.php
Charles T ded1643e5f Add (post manage)
Add (post country viewing)
2023-07-28 02:29:11 +08:00

147 lines
4.8 KiB
PHP

<?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',
// ]
],
],
];