Minor updates related to textarea

This commit is contained in:
Scott Idem
2024-11-06 15:38:12 -05:00
parent 94babed805
commit 6a609646cc
2 changed files with 25 additions and 11 deletions

View File

@@ -13,6 +13,8 @@ import { api } from '$lib/api';
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_stores';
import Tiptap_editor from '$lib/element_tiptap_editor.svelte';
export let lq__archive_content_obj: any;
let create_archive_content_obj_promise: any;
@@ -346,12 +348,23 @@ async function handle_submit_form(event) {
>
</label>
<label for="description">Description
<textarea id="description" name="description" rows="6" cols="80" value={$idaa_slct.archive_content_obj.description ? $idaa_slct.archive_content_obj.description : ''} class="ae_value archive_content__description textarea"></textarea>
<label for="description">
Description
<Tiptap_editor
default_minimal={true}
bind:html_text={$idaa_slct.archive_content_obj.description}
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
bind:new_html={$idaa_slct.archive_content_obj.description_new_html}
/>
</label>
<!-- <label for="content_html">Content (HTML)
<textarea id="content_html" name="content_html" rows="6" cols="80" value={$idaa_slct.archive_content_obj.content_html ? $idaa_slct.archive_content_obj.content_html : ''} class="ae_value archive_content__content_html textarea"></textarea>
<Tiptap_editor
default_minimal={true}
bind:html_text={$idaa_slct.archive_content_obj.content_html}
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
bind:new_html={$idaa_slct.archive_content_obj.content_html_new_html}
/>
</label> -->
<label for="archive_content_type">Type
@@ -512,7 +525,6 @@ async function handle_submit_form(event) {
Admin Options
</h3>
<span class="ae_d_none_content ae_d_none">
<label>Hide
<input
type="checkbox"
@@ -552,12 +564,16 @@ async function handle_submit_form(event) {
</label>
{/if}
<label>Internal Staff Notes
<textarea id="notes" name="notes" class="ae_value archive_content__notes textarea" rows="2" cols="70" value={$idaa_slct.archive_content_obj.notes}></textarea>
<label for="notes">
Internal Staff Notes
<Tiptap_editor
default_minimal={true}
bind:html_text={$idaa_slct.archive_content_obj.notes}
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
bind:new_html={$idaa_slct.archive_content_obj.notes_new_html}
/>
</label>
</span> <!-- END: span ae_show_hide_content -->
</section> <!-- END: section archive_content__admin_options -->
{/if}

View File

@@ -15,10 +15,8 @@ import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_stores';
import Tiptap_editor from '$lib/element_tiptap_editor.svelte';
export let lq__archive_obj: any;
let create_archive_obj_promise: any;
let delete_archive_obj_promise: any;
let update_archive_obj_promise: any;
@@ -437,7 +435,7 @@ async function handle_submit_form(event) {
</label>
{/if}
<label>
<label for="notes">
Internal Staff Notes
<Tiptap_editor
default_minimal={true}