From f5a02e6fdee0491ab214d45e1bd7068a88e2508e Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 16 Jun 2025 20:56:32 +0200 Subject: [PATCH] Update placeholder properties documentation. see #156 --- js/mzta-placeholders.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/js/mzta-placeholders.js b/js/mzta-placeholders.js index f640e114..79ec260d 100644 --- a/js/mzta-placeholders.js +++ b/js/mzta-placeholders.js @@ -20,16 +20,26 @@ ================ BASE PROPERTIES - Types (type attribute): + id: unique identifier, used to identify the placeholder + name: name of the placeholder, used for display purposes + default_value: default value of the placeholder, used when the placeholder is not replaced (only for default placeholders) + + type attribute: 0: always show (when composing a part of the text must be selected if need_selected = 1) 1: show when reading an email 2: show when composing a mail (a part of the text must be selected if need_selected = 1) + is_default attribute: + 0: Custom placeholder + 1: Default placeholder (not editable, cannot be deleted) + ================ USER PROPERTIES - Enabled (enabled attribute): + enabled attribute: 0: Disabled 1: Enabled + text: text of the placeholder (only for custom placeholders) + */ import { transformTagsLabels, getCurrentIdentity } from './mzta-utils.js';