I would like to configure formats in the TinyMCE formatselect dropdown list to support css class attributes.
Example. If you want to select formatselect <h2 class='foo'>instead <h2>of as the format in the drop-down list.
<h2 class='foo'>
<h2>
Does anyone have an idea how I can do this?
There is no reasonable way to do this in the current version of TinyMCE according to its main developer :
. , , , .. JSON.,Spocke - TinyMCE
. , , , .. JSON.
,
Spocke - TinyMCE
... "" :
CSS- h2.foo, TinyMCE content_css, styleselect dropdown foo.
h2.foo
content_css
<h2> - foo styleselect. <h2 class='foo'>.
Source: https://habr.com/ru/post/1706965/More articles:Sound sampling at low frequencies - filteringUINavigationController Auto-Rotation to Landscape не обновляет фрейм UIView - user-interfacePython3 Http web server: virtual hosts - pythonASP.NET C #: which design pattern should I use and why? - c #Authenticating Maven Server as Profile Properties - authenticationHow to find out the size of callbacks in ASP.NET AJAX? - asp.net-ajaxSplit algorithm - time complexity - time-complexityHow to debug a single .cpp file in Visual Studio? - c ++SqlServer ASP.NET Session Replication - sql-serverHow to collect logs in jboss related to a single request? - javaAll Articles