Hi,
i think that using this method you'll probably run into the same problem i did, you insert a div but can't wrap several p inside it and, if ever you hit enter, it will just cerate another div
same thing if you select two or three p and try the div option, it will simply transform each p into a div
fortunately Ryan's article helped me find the right solution, here https://processwire.com/blog/posts/using-tinymce-6-in-processwire/#example-of-configuring-the-template-plugin
a few tries later i ended with this kind of thing
{
"add_toolbar": "template",
"add_plugins": "template",
"templates": [
{
"title": "Wrapping div",
"description": "add a div with content",
"content": "<div class='foo_wrapper'><h3>zi fabulous title</h3><p>a paragraphe.</p><p>an other one just for fun</p></div>"
}
]
}
now you have a div with rich content you can modify, add other p or whatever you need, just click where you need it in the field and hit the template button, job done
you may have noticed that the class is wrapped with single quotes for json reasons ? but when you insert it in your field tintmce changes them into double quotes by itself
in case it helps
have a nice day