This commit is contained in:
Ludovic CANDELLIER
2022-11-11 13:05:40 +01:00
parent f89acd9399
commit 7df2421373
104 changed files with 1212 additions and 764 deletions

View File

@@ -5,11 +5,11 @@
@isset($label)
<label for="{{ $id }}">{!! __($label) !!}</label>
@endisset
<textarea id="{{ $id }}" name="{{ $name }}"{!! !empty($attributes) ? ' '.$attributes : '' !!} style="visibility:hidden">{!! old($name, $value ?? $slot ?? '') !!}</textarea>
<textarea id="{{ $id }}" name="{{ $name }}"{!! !empty($attributes) ? ' '.$attributes : '' !!} style="visibility:hidden{{ $minHeight ?? false ? ';min-height:'.$minHeight.'px' : '' }}">{!! old($name, $value ?? $slot ?? '') !!}</textarea>
@if($help ?? false)
<small class="form-text text-muted">@lang($help)</small>
@endif
@error($name)
@error($nameDot)
<div class="error-bubble"><div>{{ $message }}</div></div>
@enderror
</div>
@@ -17,9 +17,11 @@
@component('boilerplate::minify')
<script>
whenAssetIsLoaded('{!! mix('/plugins/tinymce/tinymce.min.js', '/assets/vendor/boilerplate') !!}', () => {
tinymce.init({
window.{{ 'MCE_'.\Str::camel($id) }} = tinymce.init({
selector: '#{{ $id }}',
toolbar_sticky: {{ ($sticky ?? false) ? 'true' : 'false' }},
{{ $minHeight ?? false ? 'min_height:'.$minHeight.',' : '' }}
{{ $maxHeight ?? false ? 'max_height:'.$maxHeight.',' : '' }}
@if(setting('darkmode', false) && config('boilerplate.theme.darkmode'))
skin : "boilerplate-dark",
content_css: 'boilerplate-dark',
@@ -27,7 +29,7 @@
skin : "oxide",
content_css: null,
@endif
@if(App::getLocale() !== 'en')
@if(App::getLocale() !== 'en')
language: '{{ App::getLocale() }}'
@endif
});