Skip to content

Commit dd9e0af

Browse files
authored
DOC-2178: add fix to for when inserting template. (#3043)
1 parent a2f6074 commit dd9e0af

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
66

77
### Unreleased
88

9+
- DOC-2178: add fix to `live-demos/full-featured/index.js` for `advtemplate` when inserting template.
10+
911
### 2023-12-20
1012

1113
- DOC-1020: add `language_load` option to `ui-localization.adoc` page that configures whether additional plugin/theme languages are loaded when bundling.

modules/ROOT/examples/live-demos/full-featured/index.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,14 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
204204
'common/punctuation/hellip'
205205
],
206206
typography_ignore: [ 'code' ],
207-
advtemplate_list: () => {
208-
return Promise.resolve([
209-
{
210-
id: '1',
211-
title: 'Resolving tickets',
212-
content: '<p>As we have not heard back from you in over a week, we have gone ahead and resolved your ticket.</p>'
213-
},
214-
{
215-
id: '2',
207+
advtemplate_templates: [
208+
{
209+
id: '1',
210+
title: 'Resolving tickets',
211+
content: '<p>As we have not heard back from you in over a week, we have gone ahead and resolved your ticket.</p>'
212+
},
213+
{
214+
id: '2',
216215
title: 'Quick replies',
217216
items: [
218217
{
@@ -223,12 +222,11 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
223222
{
224223
id: '4',
225224
title: 'Progress update',
226-
content: '</p>Just a quick note to let you know we are still working on your case</p>'
225+
content: '<p>Just a quick note to let you know we are still working on your case</p>'
227226
}
228227
]
229-
}
230-
]);
231-
},
228+
}
229+
],
232230
link_list: [
233231
{ title: 'My page 1', value: 'https://www.tiny.cloud' },
234232
{ title: 'My page 2', value: 'http://www.moxiecode.com' }

0 commit comments

Comments
 (0)