Skip to content

Commit

Permalink
DOC-2178: add fix to for when inserting template. (#3043)
Browse files Browse the repository at this point in the history
  • Loading branch information
kemister85 authored Jan 10, 2024
1 parent a2f6074 commit dd9e0af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/

### Unreleased

- DOC-2178: add fix to `live-demos/full-featured/index.js` for `advtemplate` when inserting template.

### 2023-12-20

- DOC-1020: add `language_load` option to `ui-localization.adoc` page that configures whether additional plugin/theme languages are loaded when bundling.
Expand Down
24 changes: 11 additions & 13 deletions modules/ROOT/examples/live-demos/full-featured/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,14 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
'common/punctuation/hellip'
],
typography_ignore: [ 'code' ],
advtemplate_list: () => {
return Promise.resolve([
{
id: '1',
title: 'Resolving tickets',
content: '<p>As we have not heard back from you in over a week, we have gone ahead and resolved your ticket.</p>'
},
{
id: '2',
advtemplate_templates: [
{
id: '1',
title: 'Resolving tickets',
content: '<p>As we have not heard back from you in over a week, we have gone ahead and resolved your ticket.</p>'
},
{
id: '2',
title: 'Quick replies',
items: [
{
Expand All @@ -223,12 +222,11 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
{
id: '4',
title: 'Progress update',
content: '</p>Just a quick note to let you know we are still working on your case</p>'
content: '<p>Just a quick note to let you know we are still working on your case</p>'
}
]
}
]);
},
}
],
link_list: [
{ title: 'My page 1', value: 'https://www.tiny.cloud' },
{ title: 'My page 2', value: 'http://www.moxiecode.com' }
Expand Down

0 comments on commit dd9e0af

Please sign in to comment.