[wp-trac] [WordPress Trac] #24067: TinyMCE 4.0
WordPress Trac
noreply at wordpress.org
Fri Feb 14 00:14:16 UTC 2014
#24067: TinyMCE 4.0
-------------------------+-----------------------
Reporter: josh401 | Owner: azaozz
Type: enhancement | Status: accepted
Priority: high | Milestone: 3.9
Component: TinyMCE | Version: 3.8
Severity: minor | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------
Comment (by josh401):
Hi Andrew,
I'm adding a tinymce split button from one of my addons:
{{{
editor.addButton('cleardiv', {
type: 'splitbutton',
tooltip: 'Clear Div',
//text: 'Clear',
image: url + '/images/cleardiv.gif',
menu:
[
{
text: 'Clear Left',
onclick: function() { insertClear('left'); } //
Execute function to clear left
},
{
text: 'Clear Right',
onclick: function() { insertClear('right'); } //
Execute function to clear right
},
{
text: 'Clear Both',
onclick: function() { insertClear('both'); } //
Execute function to clear both
}
]
});
}}}
I cannot seem to get the image for the icon to appear. I've tried using
the `image:` and the `icon:` settings... but nothing. Everything else
works perfectly.. just no image. The text will display fine if I use that
setting; but I'd prefer to use an icon.
I see when adding a normal button, tinymce will add a style of
`background-image` to the button; which displays the icon. I don't see
this happening when it is a split button (the style isn't applied).
Does WordPress filter this setting? Or is it perhaps a tinymce bug?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24067#comment:127>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list