Plugin Directory

Changeset 1412011

Timestamp:
05/06/2016 10:19:32 PM (8 years ago)
Author:
ericlewis
Message:

Version 0.1.4

Location:
super-emoji-plus
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • super-emoji-plus/trunk/readme.txt

    r1408429 r1412011  
    2020== Changelog ==
    2121
     22
     23
     24
    2225= 0.1.3 =
    2326* Open autocomplete results after 2 letters have been typed rather than 3.
  • super-emoji-plus/trunk/super-emoji-plus.php

    r1408429 r1412011  
    44Description: Insert Emoji in your post content editor.
    55Author: Eric Andrew Lewis
    6 Version: 0.1.3
     6Version: 0.1.
    77Author URI: https://ericandrewlewis.com/
    88*/
    99
    10 define( 'SEP_VERSION', '0.1.3' );
     10define( 'SEP_VERSION', '0.1.' );
    1111
    12 function sep_admin_enqueue_scripts( $hook_suffix ) {
    13   $load_on = array( 'post.php', 'post-new.php' );
    14   if ( ! in_array( $hook_suffix, $load_on ) ) {
    15     return;
    16   }
    17   echo '<style>
    18   /** Use .sep-emoji-input as a selector to override specificity of TinyMCE default styles. **/
    19   .sep-emoji-input .sep-emoji-autocomplete {
    20     width: 232px;
    21     padding: 5px;
    22     margin: 10px 10px 0 10px;
    23   }
    24   .sep-emoji-input.text-input-hidden .sep-emoji-autocomplete {
    25     display: none;
    26   }
    27   .sep-emoji-input .sep-emoji-buttons {
    28     height: 116px;
    29     width: 232px;
    30     margin: 10px 7px 15px;
    31     overflow-x: hidden;
    32     overflow-y: hidden;
    33     white-space: normal;
    34   }
    35   .sep-emoji-input .sep-emoji-buttons button {
    36     padding: 2px;
    37     border-radius: 4px;
    38     cursor: pointer;
    39   }
    40   .sep-emoji-input .sep-emoji-buttons button.does-not-match-filter {
    41     display: none;
    42   }
    43   .sep-emoji-input .sep-emoji-buttons button.selected {
    44     background-color: #C5C2C2;
    45   }
    46   .sep-emoji-input .sep-emoji-buttons button:hover {
    47     background-color: #E4E4E4;
    48   }
    49   .sep-emoji-input .sep-emoji-buttons img.emoji {
    50     font-size: 24px;
    51   }
    52   .sep-emoji-input .sep-emoji-buttons img.emoji {
    53     font-size: 24px;
    54   }
    55   .sep-emoji-input .sep-emoji-buttons-and-navigation {
    56     width: 262px;
    57     height: 136px;
    58     position: relative;
    59   }
    60   .sep-emoji-input .sep-emoji-navigation {
    61     position: absolute;
    62     left: 237px;
    63     top: 35px;
    64   }
    65   .sep-emoji-input .sep-emoji-navigation button {
    66     cursor: pointer;
    67   }
    68   .sep-emoji-input .sep-emoji-navigation [data-navigation-direction="down"] {
    69     position: absolute;
    70     top: 30px;
    71     left: 0;
    72   }
    73   i.mce-i-sep_emoji, i.sep-i-up, i.sep-i-down {
    74     font: normal 20px/1 dashicons;
    75     padding: 0;
    76     vertical-align: top;
    77     speak: none;
    78     -webkit-font-smoothing: antialiased;
    79     -moz-osx-font-smoothing: grayscale;
    80     margin-left: -2px;
    81     padding-right: 2px;
    82   }
    83   i.sep-i-up:before {
    84     content: "\f342";
    85   }
    86   i.sep-i-down:before {
    87     content: "\f346";
    88   }
    89   i.mce-i-sep_emoji:before {
    90     content: "\f328";
    91   }
    92   </style>';
     12function sep_wp_enqueue_editor() {
     13  wp_enqueue_style( 'sep-style', plugins_url( '/style.css', __FILE__ ) . '?version=' . SEP_VERSION );
    9314}
    94 add_action( 'admin_enqueue_scripts', 'sep_admin_enqueue_scripts');
     15add_action( ');
    9516
    9617function sep_mce_external_plugin( $plugins ) {
Note: See TracChangeset for help on using the changeset viewer.