Add reusable Blade components for inputs and layouts: FilePond, navigation groups, and notification buttons

This commit is contained in:
HolgerHatGarKeineNode
2026-01-18 13:23:20 +01:00
parent 22c8ad3588
commit 30e78711c9
33 changed files with 1853 additions and 349 deletions

View File

@@ -0,0 +1,53 @@
<div
wire:ignore
x-data="{
value: $wire.entangle('{{ $model }}'),
init() {
this.$nextTick(() => {
setTimeout(() => {
let editor = new EasyMDE({
element: this.$refs.editor,
lineNumbers: true,
uploadImage: false,
spellChecker: false,
showIcons: [
'heading',
'heading-smaller',
'heading-bigger',
'heading-1',
'heading-2',
'heading-3',
'code',
'table',
'quote',
'strikethrough',
'unordered-list',
'ordered-list',
'clean-block',
'horizontal-rule',
'undo',
'redo',
//'upload-image',
],
});
editor.value(this.value);
editor.codemirror.on('change', () => {
this.value = editor.value();
});
}, 100); // Adjust the delay as needed
});
},
}"
class="w-full"
>
<div class="prose max-w-none">
<textarea x-ref="editor"></textarea>
</div>
<style>
.EasyMDEContainer {
background-color: white;
}
</style>
</div>