Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
social-warfare
/
lib
/
admin
/
assets
/
js
/
File Content:
tmclicktotweet_plugin.js
(function() { tinymce.create('tinymce.plugins.TMClickToTweet', { init: function(ed, url) { ed.addButton('tmclicktotweet', { title: 'tmclicktotweet.quickaddd', image: url.replace( "/js", "" ) + '/img/twitter-little-bird-button.png', onclick: function() { var m = prompt( "Click To Tweet", "Enter your tweets" ); if (m != null && m != 'undefined' && m != 'Enter your tweets' && m != '') { ed.execCommand( 'mceInsertContent', false, '[Tweet "' + m + '"]' ); } } }); }, createControl: function(n, cm) { return null; }, getInfo: function() { return { longname: "Click To Tweet by Todaymade", author: 'Todaymade', authorurl: 'http://coschedule.com/', infourl: 'http://coschedule.com/click-to-tweet', version: "1.0" }; } }); tinymce.PluginManager.add( 'tmclicktotweet', tinymce.plugins.TMClickToTweet ); })();
Submit
FILE
FOLDER
Name
Size
Permission
Action
clickToTweet.js
5207 bytes
0644
clickToTweet.min.js
3194 bytes
0644
tmclicktotweet_plugin.js
912 bytes
0644
N4ST4R_ID | Naxtarrr