One last change
This commit is contained in:
@@ -990,9 +990,26 @@ async function handle_delete_event_obj({event_id, method='disable'}) {
|
|||||||
<label for="recurring_text">Additional information on when and how often
|
<label for="recurring_text">Additional information on when and how often
|
||||||
<!-- <textarea class="ae_value event__recurring_text tinymce_editor editor_less_100 textarea" id="recurring_text" name="recurring_text" placeholder="Additional information on when and how often" value={$lq__event_obj?.recurring_text ?? ''}></textarea> -->
|
<!-- <textarea class="ae_value event__recurring_text tinymce_editor editor_less_100 textarea" id="recurring_text" name="recurring_text" placeholder="Additional information on when and how often" value={$lq__event_obj?.recurring_text ?? ''}></textarea> -->
|
||||||
<Tiptap_editor
|
<Tiptap_editor
|
||||||
html_text={$idaa_slct.event_obj.recurring_text}
|
default_minimal={true}
|
||||||
|
bind:html_text={$idaa_slct.event_obj.recurring_text}
|
||||||
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
|
show_button_kv={{'heading__h1': false, 'heading__h2': false, 'heading__h3': false}}
|
||||||
|
bind:new_html={$idaa_slct.event_obj.recurring_text_new_html}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- If changed then show Save button -->
|
||||||
|
{#if
|
||||||
|
$idaa_slct.event_obj?.recurring_text_new_html &&
|
||||||
|
$idaa_slct.event_obj?.recurring_text_new_html != '<p></p>' &&
|
||||||
|
$idaa_slct.event_obj.recurring_text != $idaa_slct.event_obj.recurring_text_new_html}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-md btn-primary variant-ghost-secondary"
|
||||||
|
on:click={() => $idaa_slct.event_obj.recurring_text = $idaa_slct.event_obj.recurring_text_new_html}
|
||||||
|
>
|
||||||
|
<span class="fas fa-save m-1"></span>
|
||||||
|
Save?
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
</label>
|
</label>
|
||||||
{/if}
|
{/if}
|
||||||
{#if ( $ae_loc.administrator_access || $lq__event_obj && ($lq__event_obj?.show_recurring_text || ($lq__event_obj?.recurring_text && !$lq__event_obj?.recurring_text.includes('*gen*'))) )}
|
{#if ( $ae_loc.administrator_access || $lq__event_obj && ($lq__event_obj?.show_recurring_text || ($lq__event_obj?.recurring_text && !$lq__event_obj?.recurring_text.includes('*gen*'))) )}
|
||||||
|
|||||||
Reference in New Issue
Block a user