mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
🗃️ refactor(project): rename project support route for clarity and consistency. 🗑️ chore(project): implement delete confirmation for project proposals in the index view. 🔧 fix(editor): adjust initialization delay for SimpleMDE editor to improve responsiveness. 📸 fix(media): update fallback image URL in ProjectProposal model for better asset management.
54 lines
1.6 KiB
PHP
54 lines
1.6 KiB
PHP
<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>
|