Files
ntspi-app/config/filament-forms-tinyeditor.php
2026-03-20 21:47:02 +05:00

116 lines
4.3 KiB
PHP
Executable File

<?php
return [
/*
|--------------------------------------------------------------------------
| Profiles
|--------------------------------------------------------------------------
|
| You can add as many as you want of profiles to use it in your application.
|
*/
'profiles' => [
'default' => [
'plugins' => 'advlist autoresize codesample directionality emoticons fullscreen hr image imagetools link lists media table toc wordcount',
'toolbar' => 'undo redo removeformat | formatselect fontsizeselect | bold italic | rtl ltr | alignjustify alignright aligncenter alignleft | numlist bullist | forecolor backcolor | blockquote table toc hr | image link media codesample emoticons | wordcount fullscreen',
'upload_directory' => null,
],
'simple' => [
'plugins' => 'autoresize directionality emoticons link wordcount',
'toolbar' => 'removeformat | bold italic | rtl ltr | link emoticons',
'upload_directory' => null,
],
'test' => [
'plugins' => 'advlist paste autoresize codesample directionality emoticons fullscreen hr link lists table toc wordcount',
'toolbar' => ' bold italic removeformat | numlist bullist | blockquote table hr | link | fullscreen',
'upload_directory' => null,
'browser_spellcheck' => true,
'custom_configs' => [
'table_advtab' => false,
'table_row_advtab' => false,
'table_cell_advtab' => false,
'contextmenu' => '',
'table_resize_bars' => false,
'browser_spellcheck' => true,
'paste_as_text' => false,
'paste_data_images' => false,
'invalid_styles' => 'color background background-color font-family font-size line-height width height margin padding',
'invalid_elements' => 'img,video,audio,object,embed,iframe,script,applet',
'paste_webkit_styles' => 'none',
'paste_remove_styles_if_webkit' => true,
'paste_merge_formats' => true,
],
],
/*
|--------------------------------------------------------------------------
| Custom Configs
|--------------------------------------------------------------------------
|
| If you want to add custom configurations to directly tinymce
| You can use custom_configs key as an array
|
*/
/*
'default' => [
'plugins' => 'advlist autoresize codesample directionality emoticons fullscreen hr image imagetools link lists media table toc wordcount',
'toolbar' => 'undo redo removeformat | formatselect fontsizeselect | bold italic | rtl ltr | alignjustify alignright aligncenter alignleft | numlist bullist | forecolor backcolor | blockquote table toc hr | image link media codesample emoticons | wordcount fullscreen',
'custom_configs' => [
'allow_html_in_named_anchor' => true,
'link_default_target' => '_blank',
'codesample_global_prismjs' => true,
'image_advtab' => true,
'image_class_list' => [
[
'title' => 'None',
'value' => '',
],
[
'title' => 'Fluid',
'value' => 'img-fluid',
],
],
]
],
*/
],
/*
|--------------------------------------------------------------------------
| Templates
|--------------------------------------------------------------------------
|
| You can add as many as you want of templates to use it in your application.
|
| https://www.tiny.cloud/docs/plugins/opensource/template/#templates
|
| ex: TinyEditor::make('content')->profiles('template')->template('example')
*/
'templates' => [
'example' => [
// content
['title' => 'Some title 1', 'description' => 'Some desc 1', 'content' => 'My content'],
// url
['title' => 'Some title 2', 'description' => 'Some desc 2', 'url' => 'http://localhost'],
],
],
];