- Fixes naming convention
This commit is contained in:
@@ -25,20 +25,20 @@ tinymce.PluginManager.add('mailpoet_shortcodes', function(editor, url) {
|
|||||||
icon: 'mailpoet_shortcodes',
|
icon: 'mailpoet_shortcodes',
|
||||||
onclick: function() {
|
onclick: function() {
|
||||||
var shortcodes = [],
|
var shortcodes = [],
|
||||||
configshortcodes = editor.settings.mailpoet_shortcodes;
|
configShortcodes = editor.settings.mailpoet_shortcodes;
|
||||||
|
|
||||||
for (var segment in configshortcodes) {
|
for (var segment in configShortcodes) {
|
||||||
if (configshortcodes.hasOwnProperty(segment)) {
|
if (configShortcodes.hasOwnProperty(segment)) {
|
||||||
shortcodes.push({
|
shortcodes.push({
|
||||||
type: 'label',
|
type: 'label',
|
||||||
text: segment,
|
text: segment,
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var i = 0; i < configshortcodes[segment].length; i += 1) {
|
for (var i = 0; i < configShortcodes[segment].length; i += 1) {
|
||||||
shortcodes.push({
|
shortcodes.push({
|
||||||
type: 'button',
|
type: 'button',
|
||||||
text: configshortcodes[segment][i].text,
|
text: configShortcodes[segment][i].text,
|
||||||
onClick: generateOnClickFunc(configshortcodes[segment][i].shortcode)
|
onClick: generateOnClickFunc(configShortcodes[segment][i].shortcode)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user