Skip to content

Commit 40ae94e

Browse files
committed
DOC-2578: Added placeholder support for context form input fields.
1 parent 5a98843 commit 40ae94e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/ROOT/pages/7.6.0-release-notes.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,24 @@ For more information on the `+disabled+` option, see xref:editor-important-optio
238238

239239
// CCFR here.
240240

241+
=== Added placeholder support for context form input fields
242+
// #TINY-11459
243+
244+
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.
245+
246+
.Example: Using a placeholder in a context form input field
247+
[source,js]
248+
----
249+
editor.ui.registry.addContextForm('upload-url', {
250+
launch: {
251+
type: 'contextformtogglebutton',
252+
icon: 'link',
253+
tooltip: 'Upload from URL'
254+
},
255+
placeholder: 'Enter URL here...', ....
256+
});
257+
----
258+
241259

242260
[[changes]]
243261
== Changes

0 commit comments

Comments
 (0)