first commit
This commit is contained in:
62
modules/ets_cfultimate/views/js/tinymce/plugins/emoticons/plugin.min.js
vendored
Normal file
62
modules/ets_cfultimate/views/js/tinymce/plugins/emoticons/plugin.min.js
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* 2007-2021 ETS-Soft
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
|
||||
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
|
||||
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please contact us for extra customization service at an affordable price
|
||||
*
|
||||
* @author ETS-Soft <etssoft.jsc@gmail.com>
|
||||
* @copyright 2007-2021 ETS-Soft
|
||||
* @license Valid for 1 website (or project) for each purchase of license
|
||||
* International Registered Trademark & Property of ETS-Soft
|
||||
*/
|
||||
! function() {
|
||||
"use strict";
|
||||
var t = tinymce.util.Tools.resolve("tinymce.PluginManager"),
|
||||
e = tinymce.util.Tools.resolve("tinymce.util.Tools"),
|
||||
n = [
|
||||
["cool", "cry", "embarassed", "foot-in-mouth"],
|
||||
["frown", "innocent", "kiss", "laughing"],
|
||||
["money-mouth", "sealed", "smile", "surprised"],
|
||||
["tongue-out", "undecided", "wink", "yell"]
|
||||
],
|
||||
i = function(i) {
|
||||
var o;
|
||||
return o = '<table role="list" class="mce-grid">', e.each(n, function(t) {
|
||||
o += "<tr>", e.each(t, function(t) {
|
||||
var e = url_basic_ets+"modules/ets_contactform7/views/img/emoticons/smiley-"+t+".gif";
|
||||
o += '<td><a href="#" data-mce-url="' + e + '" data-mce-alt="' + t + '" tabindex="-1" role="option" aria-label="' + t + '"><img src="' + e + '" style="width: 18px; height: 18px" role="presentation" /></a></td>'
|
||||
}), o += "</tr>"
|
||||
}), o += "</table>"
|
||||
},
|
||||
o = function(a, t) {
|
||||
var e = i(t);
|
||||
a.addButton("emoticons", {
|
||||
type: "panelbutton",
|
||||
panel: {
|
||||
role: "application",
|
||||
autohide: !0,
|
||||
html: e,
|
||||
onclick: function(t) {
|
||||
var e, i, o, n = a.dom.getParent(t.target, "a");
|
||||
n && (e = a, i = n.getAttribute("data-mce-url"), o = n.getAttribute("data-mce-alt"), e.insertContent(e.dom.createHTML("img", {
|
||||
src: i,
|
||||
alt: o
|
||||
})), this.hide())
|
||||
}
|
||||
},
|
||||
tooltip: "Emoticons"
|
||||
})
|
||||
};
|
||||
t.add("emoticons", function(t, e) {
|
||||
o(t, e)
|
||||
})
|
||||
}();
|
||||
Reference in New Issue
Block a user