diff --git a/app/Services/Filament/Domain/Posts/PostNotificationService.php b/app/Services/Filament/Domain/Posts/PostNotificationService.php
index f72f09b..a2fa5db 100755
--- a/app/Services/Filament/Domain/Posts/PostNotificationService.php
+++ b/app/Services/Filament/Domain/Posts/PostNotificationService.php
@@ -20,7 +20,11 @@ class PostNotificationService
public function send(Post $post): void
{
// Находим всех пользователей с ролью "editor"
- $editors = Role::findByName('editor')->users;
+ $role = Role::findByName('editor');
+ if (!$role) {
+ return;
+ }
+ $editors = $role->users;
// Отправляем уведомление каждому редактору
foreach ($editors as $editor) {
diff --git a/phpunit.xml b/phpunit.xml
index 9f44a1b..5723e30 100755
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -23,8 +23,8 @@
-
-
+
+
diff --git a/resources/js/Pages/Dashboard/Components/ContentBuilder/blocks/ParagraphBlock.vue b/resources/js/Pages/Dashboard/Components/ContentBuilder/blocks/ParagraphBlock.vue
index 140b42f..33b3a98 100644
--- a/resources/js/Pages/Dashboard/Components/ContentBuilder/blocks/ParagraphBlock.vue
+++ b/resources/js/Pages/Dashboard/Components/ContentBuilder/blocks/ParagraphBlock.vue
@@ -87,12 +87,18 @@ export default {
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
'anchor', 'searchreplace', 'visualblocks', 'code', 'fullscreen',
- 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
+ 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'autoresize'
],
invalid_styles: 'all',
+ paste_as_text: true,
+ paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
+ paste_remove_spans: true,
+ paste_strip_class_attributes: 'all',
paste_merge_formats: true,
+ paste_word_valid_elements: 'b,strong,i,em,p,br,ul,ol,li,span',
+ paste_data_images: false,
toolbar: 'undo redo | blocks | ' +
'bold italic forecolor link | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +