commit
2d838bd683
|
|
@ -47,6 +47,10 @@
|
|||
|
||||
<textarea v-validate="'{{ $validations }}'" class="control" id="{{ $name }}" name="{{ $name }}" data-vv-as=""{{ trans($field['title']) }}"">{{ old($nameKey) ?: core()->getConfigData($nameKey, $channel, $locale) ?: (isset($field['default_value']) ? $field['default_value'] : '') }}</textarea>
|
||||
|
||||
@elseif ($field['type'] == 'editor')
|
||||
|
||||
<textarea v-validate="'{{ $validations }}'" class="editor control" id="{{ $name }}" name="{{ $name }}" data-vv-as=""{{ trans($field['title']) }}"">{{ old($nameKey) ?: core()->getConfigData($nameKey, $channel, $locale) ?: (isset($field['default_value']) ? $field['default_value'] : '') }}</textarea>
|
||||
|
||||
@elseif ($field['type'] == 'select')
|
||||
|
||||
<select v-validate="'{{ $validations }}'" class="control" id="{{ $name }}" name="{{ $name }}" data-vv-as=""{{ trans($field['title']) }}"" >
|
||||
|
|
@ -305,3 +309,21 @@
|
|||
</script>
|
||||
@endif
|
||||
@endpush
|
||||
|
||||
|
||||
@pushonce('scripts')
|
||||
@include('admin::layouts.tinymce')
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
tinyMCEHelper.initTinyMCE({
|
||||
selector: 'textarea.editor',
|
||||
height: 200,
|
||||
width: "100%",
|
||||
plugins: 'image imagetools media wordcount save fullscreen code table lists link hr',
|
||||
toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor link hr | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | code | table',
|
||||
image_advtab: true,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpushonce
|
||||
|
|
|
|||
Loading…
Reference in New Issue