Yup! it is possible with the TinyMCE plugin template.
In this example (file: tinymce.override.json) I have configured the plugin to insert a table structure with custom class and random image.
It is possible to configure more templates that are activated with the new button in the toolbar2.
For more informations see https://www.tiny.cloud/docs/plugins/opensource/template/#
{
"toolbar2": "template styleselect formatselect searchreplace hr readmore removeformat undo redo restoredraft charmap nonbreaking visualchars visualblocks sourcecode",
"plugins": "template charmap nonbreaking advlist autolink autosave link image lists hr pagebreak searchreplace media table paste autoresize emoticons textpattern toc visualchars visualblocks",
"template_replace_values": {
"immagine": "",
"testo": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
},
"template_preview_replace_values": {
"immagine": "",
"testo": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
},
"templates": [
{
"title": "Griglia home",
"description": "Griglia a due colonne responsive per home page",
"content": "<table class='grid-2c'<tr><td>{$immagine}</td><td>{$testo}</td></tr></table>"
}
]
}