Commit a6c326d8edc4d643071a8d5bbacb716229b6aff7

Authored by Андрей Ларионов
1 parent 2b96ca557d
Exists in master

Обновление2

Showing 2 changed files with 10 additions and 3 deletions Side-by-side Diff

resources/views/employers/cabinet45.blade.php
1 1 @extends('layout.frontend', ['title' => 'Образование и образовательные программы - РекаМоре'])
2 2  
3 3 @section('scripts')
4   -
  4 + <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
  5 + <script>
  6 + ClassicEditor
  7 + .create( document.querySelector( '#txtarea' ) )
  8 + .catch( error => {
  9 + console.error( error );
  10 + } );
  11 + </script>
5 12 @endsection
6 13 @section('content')
7 14 <section class="cabinet">
... ... @@ -118,7 +125,7 @@
118 125 <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
119 126 <label class="form-group__label">О компании</label>
120 127 <div class="form-group__item">
121   - <textarea name="text" class="textarea" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea>
  128 + <textarea name="text" id="txtarea" name="txtarea" class="textarea ckeditor" required>{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea>
122 129 @error('text')
123 130 <span class="text-xs text-red-600">
124 131 {{ $message }}
resources/views/info_company_new.blade.php
... ... @@ -106,7 +106,7 @@
106 106 @endif
107 107  
108 108 <h1 class="thing__title">{{ $company[0]->name_company }}</h1>
109   - <p class="thing__text">{{ $company[0]->text }}</p>
  109 + <p class="thing__text">{!! $company[0]->text !!}</p>
110 110 <div class="thing__buttons">
111 111 <button type="button" class="button">
112 112 <svg>