-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyMCE shows empty (useless) formatting options by default #154
Comments
If no Formats exist then the option doesn't need to show at all, no need to provide an example. The same applies for Tiny Templates, if none exist then don't provide the option. |
This bloats TinyMCE, as well as seeming broken to users it reflects badly on the CMS. |
Is this still a valid issue? I checked in a fresh install and both templates and format are not showing. |
I believe this is specific to CWP, @muskie9. I'm running the latest |
Haven't done a whole lot with CWP, but I'll take a peak. |
So as best I can tell, there is an This makes me wonder a couple things:
If I get pointed in the right direction on the what and where for this if the latter would be preferred I can dig around a bit and see what I can come up with. In the mean time, you could probably remove the format dropdown from your installation in an $cwpEditor = \SilverStripe\Forms\HTMLEditor\HTMLEditorConfig::get('cwp');
$cwpEditor->removeButtons('styleselect'); |
Both "Formats" and "Templates" are options in a TinyMCE editor field. This is slightly weird when there are no templates:
But very weird when there are no formats:
This was raised in a content author training and I happened to be sitting next to @clarkepaul at the time. I think the opinion was that we should perhaps provide a default "format" but just not even show "templates" by default. @clarkepaul will have to confirm.
The text was updated successfully, but these errors were encountered: