Include a div button into TinyMce

Vote:
 

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.

#193791
Jun 05, 2018 10:54
Vote:
 

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

#194039
Jun 11, 2018 23:50
Vote:
 

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.

#198800
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.