[wp-trac] [WordPress Trac] #27864: Tinymce issue in wordpress 3.9
WordPress Trac
noreply at wordpress.org
Thu Apr 17 16:07:01 UTC 2014
#27864: Tinymce issue in wordpress 3.9
--------------------------+-----------------------------
Reporter: Codstack | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello;
Thanks for the update to WP3.9! It sounds interesting.
However we intend to discuss an issue regarding createControl in Tinymce!
We have recently developed an WP Plugin in which we added some dropdown
menus to tinymce by the help of createControl. But after upgrading to
WP3.9 the dropdown we had added was no longer accessible (visible)!
{{{
jQuery(document).ready(function($) {
tinymce.create('tinymce.plugins.my_plugin_name', {
init : function(ed, url) {
// Nothing
},
createControl : function(n, cm) {
console.log(n); // In wp3.9 is empty
if(n == 'my_plugin_button')
{
var mlb = cm.createListBox('my_plugin_name_pluginList', {
title : 'My plugin name',
onselect : function(v) {
if(v != "")
{
tinyMCE.activeEditor.selection.setContent('[my_plugin_shortcode
id="'+v+'"]');
}
}
});
mlb.add("Some Text 1", "Some Value 1");
mlb.add("Some Text 2", "Some Value 2");
mlb.add("Some Text 3", "Some Value 3");
return mlb;
}
return null;
}
});
});
}}}
The plugin was working well in previous versions of wordpress but it seems
the createControl is not being called at all in the current version!
Is there any advises on how we can fix it?
Thanks in advance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27864>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list