Is there a way to wrap a <table>
in a div with TinyMCE?
Preferably something natively by extending TinyMCE, I know I can get it to work with pure JS.
I was attempting to do something like this with no luck. (by following this doc: https://www.tiny.cloud/docs/configure/content-formatting/#formatparameters) But I can't seem to even get this to work:
$settings['formats'] = json_encode([
...
"table" => [
[
"selector" => "table",
"classes" => "test"
]
]
...
])
Ultimately I'd like to see the HTML output on the client side as:
<div class="my_class">
<table>
...
</table>
</div>