You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/7.6.0-release-notes.adoc
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,8 +278,6 @@ tinymce.init({
278
278
});
279
279
----
280
280
281
-
For more details on the `back` function, see xref:contextform.adoc#formapi[Context Form - ContextFormApi].
282
-
283
281
=== New `QuickbarInsertImage` command that is executed by the `quickimage` button.
284
282
// #TINY-11399
285
283
@@ -314,30 +312,26 @@ tinymce.init({
314
312
315
313
A new `+onSetup+` API has been introduced for context forms, enabling integrators to execute a function when the form is rendered and handle cleanup when it is closed. This enhancement addresses the previous limitation of not being able to detect or trigger actions during the lifecycle of context forms. The `+onSetup+` API streamlines lifecycle management by supporting initialization at form rendering and providing a return function for cleanup, enhancing integration with plugins and applications.
316
314
317
-
For more details on the `+onSetup+` function, see xref:contextform.adoc#form[Context Form].
315
+
For more details, refer to xref:contextform.adoc#form[Context Form].
318
316
319
317
=== Added placeholder support for context form input fields
320
318
// #TINY-11459
321
319
322
-
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 has a value. By providing contextual hints, this enhancement improves usability and enhances the user experience.
320
+
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.
323
321
324
322
.Example: Using a placeholder in a context form input field
325
323
[source,js]
326
324
----
327
-
tinymce.init({
328
-
selector: 'textarea',
329
-
setup: (editor) => {
330
-
editor.ui.registry.addContextForm('my-form', {
331
-
predicate: () => true,
332
-
placeholder: 'Placeholder goes here...',
333
-
commands: []
334
-
});
325
+
editor.ui.registry.addContextForm('upload-url', {
326
+
launch: {
327
+
type: 'contextformtogglebutton',
328
+
icon: 'link',
329
+
tooltip: 'Upload from URL'
335
330
},
331
+
placeholder: 'Enter URL here...', ....
336
332
});
337
333
----
338
334
339
-
For more details on the `placeholder` option, see xref:contextform.adoc#form[Context Form].
340
-
341
335
=== New `+disabled+` option for disabling all user interactions
342
336
343
337
A new `+disabled+` option has been introduced to {productname} in version {release-version}. This option allows integrators to disable all user interactions with the editor, including cursor placement, content modifications, and UI components. When set to `+true+`, the editor behaves similarly to the readonly mode changes introduced in {productname} 7.4.0 but ensures complete non-interactivity.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/contextform.adoc
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,6 @@ This relates to the form itself. The form specifications are:
41
41
|Name |Details
42
42
|`+launch+` |This is the specification for the launching button that can appear in a context toolbar only. It will be either type: `+contextformbutton+` or `+contextformtogglebutton+`, and will be identical to those definitions below except it will *not* have an `+onAction+`.
43
43
|`+label+` |This is the label that will appear in the form.
44
-
|`+placeholder+` |This specifies placeholder text that appears inside the input field until the field has a value.
45
44
|`+initValue+` |This is the initial value the input will have in the form.
46
45
|`+predicate+` |This controls when the context toolbar will appear.
47
46
|`+position+` |This controls where the context toolbar will appear with regards to the current cursor.
0 commit comments