Changeset 908040
- Timestamp:
- 05/05/2014 05:56:13 AM (12 years ago)
- Location:
- tinymce-emoticons/trunk
- Files:
-
- 3 edited
-
js/tinyemo-mceplugin.js (modified) (2 diffs)
-
js/tinymce-emoticons.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tinymce-emoticons/trunk/js/tinyemo-mceplugin.js
r861417 r908040 13 13 //cmd : 'TinyEmo', 14 14 image : url + '/button.png', 15 classes: 'widget btn btnTinyEmo', 15 16 onclick : function() { 16 17 … … 33 34 tinymce.PluginManager.add('tinyemo', tinymce.plugins.TinyEmo); 34 35 })(); 36 37 /* 38 ( function() { 39 tinymce.PluginManager.add( 'tinyemo', function( editor, url ) { 40 41 // Add a button that opens a window 42 editor.addButton( 'btnTinyEmo', { 43 44 Title: 'FB Test Button', 45 tooltip: 'TinyMCE Emoticons', 46 icon: false, 47 classes: 'widget btn btnTinyEmo', 48 image : url + '/button.png', 49 onclick: function() { 50 51 } 52 53 } ); 54 55 } ); 56 57 } )(); 58 */ -
tinymce-emoticons/trunk/js/tinymce-emoticons.js
r861417 r908040 183 183 $('html').click(function(e) { 184 184 var clicked = $(e.target).attr('class'); 185 //console.log(clicked); 186 if(clicked != 'mceIcon' && clicked != 'mCSB_dragger_bar'){ 185 //var clicked2 = $(e.target).parent().attr('class'); 186 console.log(clicked); 187 //console.log(clicked2); 188 if((clicked != 'mce-ico mce-i-none') && (clicked != 'mceIcon') && clicked != 'mCSB_dragger_bar'){ 187 189 $('.emoticons-popup').hide(); 188 190 i=1; … … 190 192 }); 191 193 192 $(document).on("click", ".mce_btnTinyEmo img.mceIcon ",function(){194 $(document).on("click", ".mce_btnTinyEmo img.mceIcon, .mce-btnTinyEmo button",function(){ 193 195 //console.log(i); 194 196 if(i==0){ … … 215 217 $(window).load(function(){ 216 218 /* custom scrollbar fn call */ 217 $(".mce_btnTinyEmo ").live("click",function(){219 $(".mce_btnTinyEmo, .mce-btnTinyEmo").live("click",function(){ 218 220 if(scroll_visible != true){ 219 221 $(".emoticons-popup").mCustomScrollbar({ -
tinymce-emoticons/trunk/readme.txt
r866326 r908040 3 3 Tags: emoticon, emoticons, tinymce, smiley 4 4 Requires at least: 3.0 5 Tested up to: 3. 8.16 Stable tag: trunk5 Tested up to: 3.9 6 Stable tag: 1.1 7 7 8 8 TinyMCE Emoticons plugin helps to add emoticons in posts and pages easily. … … 45 45 1. TinyMCE Emoticons settings page 46 46 2. TinyMCE popup in page add screen 47 48 == Changelog == 49 50 = 1.1 = 51 52 * Fixed WP 3.9 compatibility issue.
Note: See TracChangeset
for help on using the changeset viewer.