Plugin Directory

Changeset 908040


Ignore:
Timestamp:
05/05/2014 05:56:13 AM (12 years ago)
Author:
nazmur.r
Message:

Updated version

Location:
tinymce-emoticons/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tinymce-emoticons/trunk/js/tinyemo-mceplugin.js

    r861417 r908040  
    1313           //cmd : 'TinyEmo',
    1414           image : url + '/button.png',
     15classes: 'widget btn btnTinyEmo',
    1516           onclick : function() {
    1617
     
    3334   tinymce.PluginManager.add('tinyemo', tinymce.plugins.TinyEmo);
    3435 })();
     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',
     46icon: false,
     47classes: '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  
    183183$('html').click(function(e) {
    184184    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'){
    187189   $('.emoticons-popup').hide();
    188190      i=1;
     
    190192      });
    191193
    192 $(document).on("click", ".mce_btnTinyEmo img.mceIcon",function(){
     194$(document).on("click", ".mce_btnTinyEmo img.mceIcon, .mce-btnTinyEmo button",function(){
    193195//console.log(i);   
    194196if(i==0){
     
    215217        $(window).load(function(){
    216218                /* custom scrollbar fn call */
    217                    $(".mce_btnTinyEmo").live("click",function(){
     219                   $(".mce_btnTinyEmo, .mce-btnTinyEmo").live("click",function(){
    218220                if(scroll_visible != true){
    219221                $(".emoticons-popup").mCustomScrollbar({
  • tinymce-emoticons/trunk/readme.txt

    r866326 r908040  
    33Tags: emoticon, emoticons, tinymce, smiley
    44Requires at least: 3.0
    5 Tested up to: 3.8.1
    6 Stable tag: trunk
     5Tested up to: 3.9
     6Stable tag: 1.1
    77
    88TinyMCE Emoticons plugin helps to add emoticons in posts and pages easily.
     
    45451. TinyMCE Emoticons settings page
    46462. 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.