From 6b154af9611178336bbb41ce948ca8febff1caab Mon Sep 17 00:00:00 2001 From: Ingo Date: Sun, 31 Mar 2024 22:45:23 +0200 Subject: [PATCH] Add Emoji Toolbox Plugin (#956) * add new emoj plugin for unicode emojis toolbar * added optional EmojiMart picker --- src/plugins/emojis.js | 86 ++++++++++++++++++++++++++++++++ src/themes/icons/famfamfam.less | 1 + src/themes/icons/famfamfam.png | Bin 4583 -> 12429 bytes src/themes/inc/defaultbase.less | 10 ++++ 4 files changed, 97 insertions(+) create mode 100644 src/plugins/emojis.js diff --git a/src/plugins/emojis.js b/src/plugins/emojis.js new file mode 100644 index 000000000..404a82008 --- /dev/null +++ b/src/plugins/emojis.js @@ -0,0 +1,86 @@ +/** + * SCEditor Paragraph Formatting Plugin + * http://www.sceditor.com/ + * + * Copyright (C) 2011-2024, Sam Clarke (samclarke.com) + * + * SCEditor is licensed under the MIT license: + * http://www.opensource.org/licenses/mit-license.php + * + * @fileoverview SCEditor Paragraph Formatting Plugin + * @author Sam Clarke + */ +/*global EmojiMart*/ +(function (sceditor) { + 'use strict'; + + sceditor.plugins.emojis = function () { + const base = this; + + /** + * Function for the exec and txtExec properties + * + * @param {node} caller + * @private + */ + var emojisCmd = function (caller) { + const editor = this, + content = document.createElement('div'), + emojis = editor.opts.emojis || [], + perLine = Math.sqrt(Object.keys(emojis).length); + + if (!emojis.length) { + const pickerOptions = { onEmojiSelect: handleSelect }; + const picker = new EmojiMart.Picker(pickerOptions); + + content.appendChild(picker); + } else { + var line = document.createElement('div'); + + sceditor.utils.each(emojis, + function (_, emoji) { + const emojiElem = document.createElement('span'); + + emojiElem.className = 'sceditor-option'; + emojiElem.style = 'cursor:pointer'; + + emojiElem.appendChild(document.createTextNode(emoji)); + + emojiElem.addEventListener('click', + function (e) { + editor.closeDropDown(true); + + editor.insert(e.target.innerHTML); + + e.preventDefault(); + }); + + if (line.children.length >= perLine) { + line = document.createElement('div'); + } + + content.appendChild(line); + + line.appendChild(emojiElem); + }); + } + + editor.createDropDown(caller, 'emojis', content); + + function handleSelect(emoji) { + editor.insert(emoji.native); + + editor.closeDropDown(true); + } + }; + + base.init = function () { + this.commands.emojis = { + exec: emojisCmd, + txtExec: emojisCmd, + tooltip: 'Insert emoji', + shortcut: 'Ctrl+E' + }; + }; + }; +})(sceditor); diff --git a/src/themes/icons/famfamfam.less b/src/themes/icons/famfamfam.less index a0f6edc0c..b47f130f8 100644 --- a/src/themes/icons/famfamfam.less +++ b/src/themes/icons/famfamfam.less @@ -38,6 +38,7 @@ div.sceditor-grip, .sceditor-button div { .sceditor-button-format div { background-position: 0px -448px; } .sceditor-button-font div { background-position: 0px -464px; } .sceditor-button-emoticon div { background-position: 0px -480px; } +.sceditor-button-emojis div { background-position: 0px -660px; } .sceditor-button-email div { background-position: 0px -496px; } .sceditor-button-date div { background-position: 0px -512px; } .sceditor-button-cut div { background-position: 0px -528px; } diff --git a/src/themes/icons/famfamfam.png b/src/themes/icons/famfamfam.png index 488c72aca95abf57bd15d3544696eddaa4a60750..ce0adb48ecdeea2a308bc00762db64e0fc4929bc 100644 GIT binary patch literal 12429 zcmX9^18^YC65behv2FWe<6`S#+qN&ZZ95m|V%xdcw(aEQueViGyEWU>(>uM>-Sc&a z$;*nt!D7P#001W;F0A-Y6TltNRf@=`gLgr+AC}KL%O{R*gcT`8v=k0{vEu)8v>J=xl+ ztO%$eg!b`kZsnkA6%YHAf~7Oy;kX!T^NeY8^_#BzF>xXRq}ybqDJzces}5|aeisk` zCkiw+!E%gG48DA774xfhwa?!7y_iB$_=XM!N^I|sRV>pk$Ww2Qlld4{P)S?Sf7p*g zt{wXncN#uqn<+*AjfdI7g!#5#!Ju|-KoXIWk^}3#Ea;#cGNwhUZtx3f%o}a zAB4AY+9``zTrY7lpNl(vxtAv~tuA5uAT2aT2ijanxVlrQ&w$N! zje#-=2C7VOA%^H%Cdj)B(5m2FF9L4aQ*dZLFjbEsT}#mVoI-XkjWcM>HAwnD-05{t zS{Fc{T(H&XAJjrB)QIj^EN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r53jo zn``|>pt$hD3sI1LNQcqlD+^+ps)J$F(^NF$E+h7;3Wi&w31$o3b0uQwtpwlZf(l}q zgMkrjVZtH_D-%{xTtH3>kusKEF!KTi^o8@!KOgq*-w*G<|9&6E>AdmA8}RYRAA`+i z>!UawTzbI=AAA5Ge)wS@#F;WbyR&nvEqBS1CE3~YH7G7M3rKTSMMnLnMIi;;lBjtGv5xShzYEu)2wIx*zIb?8nmTH57q7ZFK>jV@NcCwq6#Zps|O2p#bt%n*~9C#%a z)jJmhnX7Yhva+%~kT=xqX&6)`Rkcp9sE|KO)dB0H17zC0p_xBH*n(m`>`hA#6p6An? z#55EeRkA3a2D(^Pk}UGld}38&z)8#lNZK?yM*ja}*s9APk|_zA?w;=?MgwH#yL<3B ze9X#~-rjS)F&<<*yp^$sGWJ%+9?ICe_ZV2*FO+2_tije{0VELgb*8s R^t1o~002ovPDHLkV1hp-8@>Pl diff --git a/src/themes/inc/defaultbase.less b/src/themes/inc/defaultbase.less index f3f51097a..3ce6d11b2 100644 --- a/src/themes/inc/defaultbase.less +++ b/src/themes/inc/defaultbase.less @@ -250,6 +250,16 @@ div.sceditor-dropdown div { cursor: pointer; margin: 2px; } + + .sceditor-emojis span { + padding: 0; + cursor: pointer; + margin: 2px; + } + + .sceditor-emojis > div > div:not(:last-child) { + margin-bottom: 6px; + } .sceditor-more { border-top: 1px solid #bbb;