CMS MADE SIMPLE FORGE

TinyMCE

 

[#12143] styleselect dropdown mis-labelled

avatar
Created By: Greg Prosser (swdmedia)
Date Submitted: Tue Sep 17 15:25:12 -0400 2019

Assigned To:
Version: 3.3
CMSMS Version: 2.2.11
Severity: Minor
Resolution: None
State: Open
Summary:
styleselect dropdown mis-labelled
Detailed Description:
Previous versions, when the styleselect was added to toolbar, would label the
dropdown as 'Formats' - it now seems to label with whatever the current blocks
tag is (i.e. paragraph or heading 3).

Subsequently, the custom supplied Style formats are not listed in the actual
dropdown.


History

Comments
avatar
Date: 2019-09-17 15:27
Posted By: Greg Prosser (swdmedia)

Disregard the bit about the custom style formats, that does work as before, just
the 'Formats' label is missing.
      
avatar
Date: 2019-09-18 03:44
Posted By: Mathieu Muths (airelibre) (airelibre)

According to:
https://www.tiny.cloud/docs/configure/content-formatting/#style_formats

The way the formats / styleselect stuff works has changed and  have merged in
some way. I'll have to do some tests and update the module.

If you want to make some customization for the moment, you can still use the «
Extra javascript » in the Templates tab.
      
avatar
Date: 2019-09-18 03:57
Posted By: Mathieu Muths (airelibre) (airelibre)

In fact I think we should encourage using the style_formats stuff instead of the
block_formats.

You can easily list the block / titles types with:
title: 'Standard text', block: 'p'
title: 'Title 1', block: 'h1'
title: 'Title 2', block: 'h2'
title: 'Title 3', block: 'h3'

And then add some custom stuff:
title: 'Bold text', inline: 'strong'
title: 'My custom title 2', block: 'h2', classes: 'text-red lighter'

... and even mix them or add section titles. This is powerful !

Here's a complete example by Tiny:
https://www.tiny.cloud/docs/demo/format-custom/

As a TinyMCE power user, how would you manage this in the profile editor? I'd
keep both options, but move the "Use a custom formats dropdown" from the
"Toolbar" tab to a new "Formats" tab.
And then move the « CSS > Style formats » to that new tab too

Something like this, tell me what you think about it
      
Updates

Updated: 2019-09-17 15:27
resolution_id: => 5