Merge pull request #876 from mailpoet/manage_subscription_shortcode_fix

Depreciates and removes certain link shortcodes [MAILPOET-895]
This commit is contained in:
Tautvidas Sipavičius
2017-04-27 15:51:26 +03:00
committed by GitHub
4 changed files with 39 additions and 96 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);
};
};