Skip to content

Commit

Permalink
DOC-2412: api-version bump, typo correction in advtemplate-readonly-t…
Browse files Browse the repository at this point in the history
…emplate/index.js.
  • Loading branch information
kemister85 committed Oct 9, 2024
1 parent 22f23a4 commit d523538
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .api-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0
7.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const data = [
items: [
{
title: 'Message received',
content: '<p dir="ltr">Hey {{prefix}}Customer.FirstName\}}!</p>\n<p dir="ltr">Just a quick note to say we&rsquo;ve received your message, and will get back to you within 48 hours.</p>\n<p dir="ltr">For reference, your ticket number is: {{mergetag-open}}Ticket.Number{{suffix}}</p>\n<p dir="ltr">Should you have any questions in the meantime, just reply to this email and it will be attached to this ticket.</p>\n<p><strong>&nbsp;</strong></p>\n<p dir="ltr">Regards,</p>\n<p dir="ltr">{{prefix}}Agent.FirstName{{suffix}}</p>'
content: '<p dir="ltr">Hey {{prefix}}Customer.FirstName{{suffix}}!</p>\n<p dir="ltr">Just a quick note to say we&rsquo;ve received your message, and will get back to you within 48 hours.</p>\n<p dir="ltr">For reference, your ticket number is: {{mergetag-open}}Ticket.Number{{suffix}}</p>\n<p dir="ltr">Should you have any questions in the meantime, just reply to this email and it will be attached to this ticket.</p>\n<p><strong>&nbsp;</strong></p>\n<p dir="ltr">Regards,</p>\n<p dir="ltr">{{prefix}}Agent.FirstName{{suffix}}</p>'
},
{
title: 'Thanks for the feedback',
Expand Down
26 changes: 25 additions & 1 deletion modules/ROOT/pages/apis/tinymce.editor.ui.registry.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= tinymce.editor.ui.Registry
:navtitle: tinymce.editor.ui.Registry
:description: TinyMCE UI registration API.
:keywords: addAutocompleter, addButton, addContextForm, addContextMenu, addContextToolbar, addGroupToolbarButton, addIcon, addMenuButton, addMenuItem, addNestedMenuItem, addSidebar, addSplitButton, addToggleButton, addToggleMenuItem, addView
:keywords: addAutocompleter, addButton, addContext, addContextForm, addContextMenu, addContextToolbar, addGroupToolbarButton, addIcon, addMenuButton, addMenuItem, addNestedMenuItem, addSidebar, addSplitButton, addToggleButton, addToggleMenuItem, addView
:moxie-type: api

TinyMCE UI registration API.
Expand Down Expand Up @@ -29,6 +29,11 @@ via keyboard navigation controls.
For information on creating a basic toolbar button, see:
link:https://www.tiny.cloud/docs/tinymce/7/custom-basic-toolbar-button/[
UI Components - Types of toolbar buttons: Basic button].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
|xref:#addContext[addContext()]|Registers a new context configuration in the registry.
The registry stores all context configurations.
The buttons in editor configuration object can contain a context property.
These button specifications can use the registered contexts to determine
whether to enable or disable the buttons based on the current context.|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
|xref:#addContextForm[addContextForm()]|Registers a new contextual form item.
Similar to a context menu item, a contextual form is an item with an input
form element appearing when a content predicate is matched. An example
Expand Down Expand Up @@ -184,6 +189,25 @@ UI Components - Types of toolbar buttons: Basic button].

'''

[[addContext]]
=== addContext()
[source, javascript]
----
addContext(name: String, pred: Function)
----
Registers a new context configuration in the registry.
The registry stores all context configurations.
The buttons in editor configuration object can contain a context property.
These button specifications can use the registered contexts to determine
whether to enable or disable the buttons based on the current context.

==== Parameters

* `name (String)` - Unique name identifying the new context configuration.
* `pred (Function)` - A predicate function that determines if the context is active

'''

[[addContextForm]]
=== addContextForm()
[source, javascript]
Expand Down

0 comments on commit d523538

Please sign in to comment.