Allow heading tags (h1-h6) in ContentSanitizer so news editor headings render
This commit is contained in:
@@ -20,7 +20,11 @@
|
||||
</select>
|
||||
|
||||
<label class="label-control">Description:</label>
|
||||
<textarea name="description" class="form-control summernote_lite" style="width:100%;height:100px">{{ old('description', $artwork->description) }}</textarea>
|
||||
<textarea name="description" class="form-control" rows="6" style="width:100%">{{ old('description', $artwork->description) }}</textarea>
|
||||
<p class="help-block">Basic Markdown-style formatting and emoji are allowed. Raw HTML tags are not accepted.</p>
|
||||
@error('description')
|
||||
<div class="text-danger" style="margin-top:6px;">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-5">
|
||||
@@ -58,18 +62,3 @@
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('.summernote_lite').summernote({
|
||||
toolbar: [
|
||||
['style', ['bold', 'italic', 'underline', 'clear']],
|
||||
['font', ['strikethrough']],
|
||||
['fontsize', ['fontsize']],
|
||||
['color', ['color']],
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user