TinyMCE templates and contents
Hello i am working try to integrate tinymce templates and phpmaker, so i have this code on my edit page - client script
$(document).on("create.editor", function(e, args) {
// Uncomment to view the arguments in the browser console
// console.log(args);
if (args && args.id == "x_Desired_Schedule_Notes") {
// Modify the plugins, toolbar, and other settings for this editor
args.settings.plugins += " template";
args.settings.plugins += " lists checklist";
// args.settings.toolbar += " checklist";
args.settings.toolbar += " template";
// Define your template samples
args.settings.templates = [
{
title: 'Select One',
description: '',
content: ''
},
{
title: 'Admision Completed',
description: 'This is email for Admision.',
content: '<p>Insert your content here for Sample Template 1.</p>'
},
{
title: 'Discharge Completed',
description: 'This is email for client discharged.',
content: '<h2>Sample Template 2</h2><p>Insert your content here for Sample Template 2.</p>'
}
// Add more templates as needed
];
}
});
my question is if there any way to get values like NAME while i am on edit page and populate auto on my tinymce template when i load on the content editor? i try to use as {{{Name}}}
but do not work
thanks