/* Import plugin specific language pack */ tinyMCE.importPluginLanguagePack('wphelp', ''); function TinyMCE_wphelp_getControlHTML(control_name) { switch (control_name) { case "wphelp": var titleHelp = tinyMCE.getLang('lang_help_button_title'); var buttons = ''; var hiddenControls = '
' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '
'; return buttons+hiddenControls; } return ""; } function TinyMCE_wphelp_execCommand(editor_id, element, command, user_interface, value) { // Handle commands switch (command) { case "mceWordPressHelp": var template = new Array(); template['file'] = tinyMCE.baseURL + '/wp-mce-help.php'; template['width'] = 480; template['height'] = 380; args = { resizable : 'yes', scrollbars : 'yes' }; tinyMCE.openWindow(template, args); return true; } // Pass to next handler in chain return false; }