Skip to content

Commit 1e2665b

Browse files
authored
DOC-2578: Added placeholder support for context form input fields. (#3549)
1 parent 50e87a4 commit 1e2665b

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
@@ -264,6 +264,24 @@ For more information on the `+disabled+` option, see xref:editor-important-optio
264264

265265
// CCFR here.
266266

267+
=== Added placeholder support for context form input fields
268+
// #TINY-11459
269+
270+
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.
271+
272+
.Example: Using a placeholder in a context form input field
273+
[source,js]
274+
----
275+
editor.ui.registry.addContextForm('upload-url', {
276+
launch: {
277+
type: 'contextformtogglebutton',
278+
icon: 'link',
279+
tooltip: 'Upload from URL'
280+
},
281+
placeholder: 'Enter URL here...', ....
282+
});
283+
----
284+
267285

268286
[[changes]]
269287
== Changes

0 commit comments

Comments
 (0)