/** * PanelHtml.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ import Tools from 'tinymce/core/api/util/Tools'; const emoticons = [ ['cool', 'cry', 'embarassed', 'foot-in-mouth'], ['frown', 'innocent', 'kiss', 'laughing'], ['money-mouth', 'sealed', 'smile', 'surprised'], ['tongue-out', 'undecided', 'wink', 'yell'] ]; const getHtml = function (pluginUrl) { let emoticonsHtml; emoticonsHtml = ''; Tools.each(emoticons, function (row) { emoticonsHtml += ''; Tools.each(row, function (icon) { const emoticonUrl = pluginUrl + '/img/smiley-' + icon + '.gif'; emoticonsHtml += ''; }); emoticonsHtml += ''; }); emoticonsHtml += '
'; return emoticonsHtml; }; export default { getHtml };