Lots of work related to the IDAA Recovery Meetings. Better pulling in off lookup list data.

This commit is contained in:
Scott Idem
2024-11-04 15:29:16 -05:00
parent 2d047f5a10
commit deac79b861
9 changed files with 361 additions and 351 deletions

View File

@@ -19,6 +19,7 @@ import "./element_tiptap_editor.scss";
export let html_text: string = '';
export let default_minimal: boolean = false;
export let show_menu: boolean = true;
export let placeholder: string = 'Type your text here...';
if (default_minimal) {
show_menu = false;
@@ -415,7 +416,13 @@ function getContent() {
<div
bind:this={element}
class="tiptap bg-slate-100 px-1 py-2"
/>
>
<span
class="placeholder text-sm text-gray-400 italic"
contenteditable="false"
hidden={editor?.getHTML() !== '<p></p>'}
>{placeholder}</span>
</div>
</div>