Allow heading tags (h1-h6) in ContentSanitizer so news editor headings render

This commit is contained in:
2026-06-04 07:52:57 +02:00
parent 0b33a1b074
commit 15870ddb1f
191 changed files with 15453 additions and 1786 deletions

View File

@@ -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