[pbs-devel] [PATCH v2 widget-toolkit] textareafield: add emptyText message to show markdown is possible

Gabriel Goller g.goller at proxmox.com
Wed Nov 27 12:52:36 CET 2024


Just like in our `Notes` fields show a emptyText message that explains
that markdown can be used.

Reported-by: Lukas Wagner <l.wagner at proxmox.com>
Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---

v2, thanks @Lukas:
 - use gettext
 - fix typo

 src/form/TextAreaField.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/form/TextAreaField.js b/src/form/TextAreaField.js
index 267b40c87d74..c9a6ff5e5ac4 100644
--- a/src/form/TextAreaField.js
+++ b/src/form/TextAreaField.js
@@ -10,6 +10,7 @@ Ext.define('Proxmox.form.field.Base64TextArea', {
         width: 600,
         height: 400,
         scrollable: 'y',
+        emptyText: gettext('You can use Markdown for rich text formatting.'),
     },
 
     setValue: function(value) {
-- 
2.39.5





More information about the pbs-devel mailing list