PHP Classes

File: public/js/tinymce/src/plugins/emoticons/src/main/js/ui/PanelHtml.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/emoticons/src/main/js/ui/PanelHtml.js   Download  
File: public/js/tinymce/src/plugins/emoticons/src/main/js/ui/PanelHtml.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,360 bytes
 

Contents

Class file image Download
/** * 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 */ define( 'tinymce.plugins.emoticons.ui.PanelHtml', [ 'tinymce.core.util.Tools' ], function (Tools) { var emoticons = [ ["cool", "cry", "embarassed", "foot-in-mouth"], ["frown", "innocent", "kiss", "laughing"], ["money-mouth", "sealed", "smile", "surprised"], ["tongue-out", "undecided", "wink", "yell"] ]; var getHtml = function (pluginUrl) { var emoticonsHtml; emoticonsHtml = '<table role="list" class="mce-grid">'; Tools.each(emoticons, function (row) { emoticonsHtml += '<tr>'; Tools.each(row, function (icon) { var emoticonUrl = pluginUrl + '/img/smiley-' + icon + '.gif'; emoticonsHtml += '<td><a href="#" data-mce-url="' + emoticonUrl + '" data-mce-alt="' + icon + '" tabindex="-1" ' + 'role="option" aria-label="' + icon + '"><img src="' + emoticonUrl + '" style="width: 18px; height: 18px" role="presentation" /></a></td>'; }); emoticonsHtml += '</tr>'; }); emoticonsHtml += '</table>'; return emoticonsHtml; }; return { getHtml: getHtml }; } );