Styles dropdown list in TinyMCE

Questions about how to use the online - editors and suggestions how to improve them
Tata
Posts: 2316
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Styles dropdown list in TinyMCE

Postby Tata » Tue Nov 22, 2016 7:58 pm

One more question:
The use of Styles dropdown in TinyMCE is very practical feature. However, in the list are to many styles, even the styles which don't need to be (e.g. navigation classes and other special template classes) because they have actually very seldom usage in the editor.
How can the stylesheet be written such a way that only the classes usable in the content would be included in the Styles dropdown list. There are the content headings, paragraph, DIV, code etc. in the first left dropdown list. The rest of styles taken from the stylesheet used in content are e.g.:
text emphasizing (color, font, size, style, shadowing)
text/image, DIVs, image standard dimensions, bordering, shadowing, floating, positioning, backgrounds
etc.
It would be also nice if the classes/IDs would be sorted by alphabet for easier orientation.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 11140
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Styles dropdown list in TinyMCE

Postby cmb » Wed Nov 23, 2016 3:05 pm

Tata wrote:How can the stylesheet be written such a way that only the classes usable in the content would be included in the Styles dropdown list.

See http://cmsimpleforum.com/viewtopic.php?f=7&t=4762&p=28591.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+


Return to “Editors”

Who is online

Users browsing this forum: No registered users and 1 guest