Opened 11 years ago
Closed 11 years ago
#27864 closed defect (bug) (invalid)
Tinymce issue in wordpress 3.9
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hello Codstack,
please read http://make.wordpress.org/core/2014/01/18/tinymce-4-0-is-in-core/. You have to update your plugin to support the new TinyMCE 4.0 API. The post includes some links to migration guides and API references.
To get it right you can use our forums: https://wordpress.org/support/