| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/public_html/wp-content/plugins/wemail/assets/js/ |
Upload File : |
;(function($) {
'use strict';
tinymce.create('tinymce.plugins.wemail_forms_button', {
init : function(editor, url) {
var menuItems = wemail_forms_shortcode_button.forms.map(function (form) {
return {
text: form.name,
onclick: function () {
editor.insertContent('[wemail_form id="' + form.id + '"]');
}
};
});
if (!menuItems.length) {
menuItems = [
{
text: 'No form found'
}
];
}
editor.addButton('wemail_forms_button', {
title : wemail_forms_shortcode_button.title,
image: wemail_forms_shortcode_button.icon,
type: 'menubutton',
menu: menuItems
});
},
});
if (window.hasOwnProperty('wemail_forms_shortcode_button')) {
tinymce.PluginManager.add('wemail_forms_button', tinymce.plugins.wemail_forms_button);
}
})(jQuery);