Update placeholder properties documentation. see #156

This commit is contained in:
mic 2025-06-16 20:56:32 +02:00
parent 46dc69fa5b
commit f5a02e6fde

View file

@ -20,16 +20,26 @@
================ BASE PROPERTIES ================ 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) 0: always show (when composing a part of the text must be selected if need_selected = 1)
1: show when reading an email 1: show when reading an email
2: show when composing a mail (a part of the text must be selected if need_selected = 1) 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 ================ USER PROPERTIES
Enabled (enabled attribute): enabled attribute:
0: Disabled 0: Disabled
1: Enabled 1: Enabled
text: text of the placeholder (only for custom placeholders)
*/ */
import { transformTagsLabels, getCurrentIdentity } from './mzta-utils.js'; import { transformTagsLabels, getCurrentIdentity } from './mzta-utils.js';