Skip to content

Commit

Permalink
DOC-2578: Added placeholder support for context form input fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
kemister85 committed Dec 9, 2024
1 parent 5a98843 commit 40ae94e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/ROOT/pages/7.6.0-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,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
Expand Down

0 comments on commit 40ae94e

Please sign in to comment.