Include a div button into TinyMce


Hello all,

I would like to be able to include a div button into my TinyMce to be able to include some html content iside and set a class to it though the styles. This could be really usefull for me as I need to include this HTML code to collapse it and the HTML elements that the TinyMce provide me doesn't allow me to do it.

Thanks in advance.

Jun 05, 2018 10:54

Is dropping a block out of the question? This works with both the new and old TinyMCE.

Jun 11, 2018 23:50

You could include it as a template. I did a post about implementing them here. The template you implement could be solely the code for the button that the editor will have the option to add into the TinyMCE.

Nov 07, 2018 6:05
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.