Depreciates and removes server-side rendering of subscription_unsubscribe,

subscription_manage and newsletter_view_in_browser
This commit is contained in:
Vlad
2017-04-26 17:47:52 -04:00
parent 1639741e55
commit b02e9f5ab3
3 changed files with 38 additions and 69 deletions

View File

@@ -11,13 +11,13 @@
/*jshint unused:false */
/*global tinymce:true */
tinymce.PluginManager.add('mailpoet_shortcodes', function(editor, url) {
var appendLabelAndClose = function(text) {
editor.insertContent('[' + text + ']');
var appendLabelAndClose = function(shortcode) {
editor.insertContent(shortcode);
editor.windowManager.close();
},
generateOnClickFunc = function(id) {
generateOnClickFunc = function(shortcode) {
return function() {
appendLabelAndClose(id);
appendLabelAndClose(shortcode);
};
};