From 1e2665b6ddd0b49520a5ad48c59cf78983bff045 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Tue, 10 Dec 2024 15:00:49 +1000 Subject: [PATCH] DOC-2578: Added placeholder support for context form input fields. (#3549) --- modules/ROOT/pages/7.6.0-release-notes.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/ROOT/pages/7.6.0-release-notes.adoc b/modules/ROOT/pages/7.6.0-release-notes.adoc index e1b8f53d36..5c2a52e90a 100644 --- a/modules/ROOT/pages/7.6.0-release-notes.adoc +++ b/modules/ROOT/pages/7.6.0-release-notes.adoc @@ -264,6 +264,24 @@ For more information on the `+disabled+` option, see xref:editor-important-optio // CCFR here. +=== Added placeholder support for context form input fields +// #TINY-11459 + +A new `placeholder` option has been introduced to the context form API, addressing the need for inline guidance within input fields. This feature enables developers to specify placeholder text that appears inside input fields until the field is focused or a value is entered. By providing contextual hints, this enhancement improves usability and enhances the user experience. + +.Example: Using a placeholder in a context form input field +[source,js] +---- +editor.ui.registry.addContextForm('upload-url', { + launch: { + type: 'contextformtogglebutton', + icon: 'link', + tooltip: 'Upload from URL' + }, + placeholder: 'Enter URL here...', .... +}); +---- + [[changes]] == Changes