Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/Divi/epanel/shortcod.../js
File: editor_plugin.js
(function(){
[0] Fix | Delete
tinymce.create('tinymce.plugins.etquicktags', {
[1] Fix | Delete
/**
[2] Fix | Delete
* Initializes the plugin, this will be executed after the plugin has been created.
[3] Fix | Delete
* This call is done before the editor instance has finished it's initialization so use the onInit event
[4] Fix | Delete
* of the editor instance to intercept that event.
[5] Fix | Delete
*
[6] Fix | Delete
* @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
[7] Fix | Delete
* @param {string} url Absolute URL to where the plugin is located.
[8] Fix | Delete
*/
[9] Fix | Delete
init : function(ed, url) {
[10] Fix | Delete
ed.addButton('et_learn_more', {
[11] Fix | Delete
title : et_quicktags_strings.learn_more,
[12] Fix | Delete
image : url + '/../images/icon-toggle.gif',
[13] Fix | Delete
onclick : function() {
[14] Fix | Delete
CustomButtonClick('learn_more');
[15] Fix | Delete
}
[16] Fix | Delete
});
[17] Fix | Delete
ed.addButton('et_box', {
[18] Fix | Delete
title : et_quicktags_strings.box,
[19] Fix | Delete
image : url + '/../images/icon-boxes.gif',
[20] Fix | Delete
onclick : function() {
[21] Fix | Delete
CustomButtonClick('box');
[22] Fix | Delete
}
[23] Fix | Delete
});
[24] Fix | Delete
ed.addButton('et_button', {
[25] Fix | Delete
title : et_quicktags_strings.button,
[26] Fix | Delete
image : url + '/../images/icon-buttons.gif',
[27] Fix | Delete
onclick : function() {
[28] Fix | Delete
CustomButtonClick('button');
[29] Fix | Delete
}
[30] Fix | Delete
});
[31] Fix | Delete
ed.addButton('et_tabs', {
[32] Fix | Delete
title : et_quicktags_strings.tabs,
[33] Fix | Delete
image : url + '/../images/icon-tabs.gif',
[34] Fix | Delete
onclick : function() {
[35] Fix | Delete
CustomButtonClick('tabs');
[36] Fix | Delete
}
[37] Fix | Delete
});
[38] Fix | Delete
ed.addButton('et_author', {
[39] Fix | Delete
title : et_quicktags_strings.author,
[40] Fix | Delete
image : url + '/../images/icon-author.gif',
[41] Fix | Delete
onclick : function() {
[42] Fix | Delete
CustomButtonClick('author');
[43] Fix | Delete
}
[44] Fix | Delete
});
[45] Fix | Delete
},
[46] Fix | Delete
/**
[47] Fix | Delete
* Creates control instances based in the incomming name. This method is normally not
[48] Fix | Delete
* needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
[49] Fix | Delete
* but you sometimes need to create more complex controls like listboxes, split buttons etc then this
[50] Fix | Delete
* method can be used to create those.
[51] Fix | Delete
*
[52] Fix | Delete
* @param {String} n Name of the control to create.
[53] Fix | Delete
* @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
[54] Fix | Delete
* @return {tinymce.ui.Control} New control instance or null if no control was created.
[55] Fix | Delete
*/
[56] Fix | Delete
createControl : function(n, cm) {
[57] Fix | Delete
return null;
[58] Fix | Delete
},
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* Returns information about the plugin as a name/value array.
[62] Fix | Delete
* The current keys are longname, author, authorurl, infourl and version.
[63] Fix | Delete
*
[64] Fix | Delete
* @return {Object} Name/value array containing information about the plugin.
[65] Fix | Delete
*/
[66] Fix | Delete
getInfo : function() {
[67] Fix | Delete
return {
[68] Fix | Delete
longname : "Elegant Themes " + et_quicktags_strings.shortcodes,
[69] Fix | Delete
author : 'Elegant Themes',
[70] Fix | Delete
authorurl : 'http://www.elegantthemes.com/',
[71] Fix | Delete
infourl : 'http://www.elegantthemes.com/',
[72] Fix | Delete
version : "1.0"
[73] Fix | Delete
};
[74] Fix | Delete
}
[75] Fix | Delete
});
[76] Fix | Delete
[77] Fix | Delete
tinymce.PluginManager.add('et_quicktags', tinymce.plugins.etquicktags);
[78] Fix | Delete
})()
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function