[wp-trac] [WordPress Trac] #38050: Replace formatselect with styleselect in TinyMCE
WordPress Trac
noreply at wordpress.org
Wed Sep 14 19:32:37 UTC 2016
#38050: Replace formatselect with styleselect in TinyMCE
-------------------------+------------------------------
Reporter: mrwweb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by mrwweb):
I just uploaded [https://core.trac.wordpress.org/attachment/ticket/38050
/wp-test-styleselect-0.1.0.zip a plugin to demo the `styleselect`]. This
plugin is intended for use alongside the
[https://wordpress.org/themes/sequential/ Sequential theme].
Once installed, the first item in the TinyMCE toolbar is the "Style
Select" instead of the "Format Select" which is used currently in
WordPress. With the styleselect, you can turn [existing] links into
Buttons (using classes that ship with Sequential) or add a custom "Warning
Paragraph" style that comes with the plugin!
I've "patched" Sequential to have an editor style, but in theory the theme
would ship with one and add the classes to the `styleselect` all by
itself. However, this plugin also shows how a plugin could add to the list
of styles available in the editor.
The modded editor also makes a couple other technically-unrelated tweaks
that you can ignore or comment on in the appropriate ticket:
- Tweaks the editor buttons as proposed in #27159
- Tweaks headings as proposed in #38049
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38050#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list